XMC™ Forum Discussions
text.format{('custom.tabs.no.results')}
Sort by:
XMC™
Hello All,XMC_UART_CH_Transmit() in xmc_uart.c clears TBIF before writing TBUF.I don't see a reason in the reference manual, can somebody tell me what...
Show More
Hello All,
XMC_UART_CH_Transmit() in xmc_uart.c clears TBIF before writing TBUF.
I don't see a reason in the reference manual, can somebody tell me what it's good for / whether it's needed?
Oliver Show Less
XMC_UART_CH_Transmit() in xmc_uart.c clears TBIF before writing TBUF.
I don't see a reason in the reference manual, can somebody tell me what it's good for / whether it's needed?
Oliver Show Less
XMC™
Hello,I would like to use the sensor SHT1x with the XMC4800 board.It can be connected on a I2C bus, but it uses its own version of an I2C protocol.It ...
Show More
Hello,
I would like to use the sensor SHT1x with the XMC4800 board.
It can be connected on a I2C bus, but it uses its own version of an I2C protocol.
It has its own START condition, and then sends directly the addressee (3 bits) and the command (5 bits) after.
On the left, the START condition of the XMC4800 manual, and on the right the one of the SHT1x sensor.
To signal the data are ready to be sent, the slave puts SDA low, and then the master sends the CLK to receive the data
Do you think it is possible to implement that ?
By modifying the Start condition ?
Or it is much better to choose one sensor which are using the normal I2C protocol ?
Thank you,
Nicolas Show Less
I would like to use the sensor SHT1x with the XMC4800 board.
It can be connected on a I2C bus, but it uses its own version of an I2C protocol.
It has its own START condition, and then sends directly the addressee (3 bits) and the command (5 bits) after.
On the left, the START condition of the XMC4800 manual, and on the right the one of the SHT1x sensor.
To signal the data are ready to be sent, the slave puts SDA low, and then the master sends the CLK to receive the data
Do you think it is possible to implement that ?
By modifying the Start condition ?
Or it is much better to choose one sensor which are using the normal I2C protocol ?
Thank you,
Nicolas Show Less
XMC™
Hello,
I am using xmc4800 to control stepper motors, is there any way to generate a desire amount of pulses using timers?
Thank you!
I am using xmc4800 to control stepper motors, is there any way to generate a desire amount of pulses using timers?
Thank you!
XMC™
Hi everyone,on my XMC4400, I have added an instance of the ADC_MEASUREMENT (v 4.1.20) app with 10 measurements. I selected the 10 bit fast conversion ...
Show More
Hi everyone,
on my XMC4400, I have added an instance of the ADC_MEASUREMENT (v 4.1.20) app with 10 measurements. I selected the 10 bit fast conversion mode with 67ns sample time, I enabled continuous conversion and I chose to start the conversions after initialization.
The app initializes fine, returning success, but when I try to ask for a result (here for a DC current) by either calling
uint32_t result = ADC_MEASUREMENT_GetDetailedResult(&ADC_MEASUREMENT_I_DC_handle) & VADC_G_RES_RESULT_Msk;
or by calling
uint32_t result = (uint32_t)ADC_MEASUREMENT_GetResult(&ADC_MEASUREMENT_I_DC_handle);
both routines will give me just a zero. For every of my 10 channels. Of course the actual voltage to be measured is NOT zero and of course I have assigned the right pins to the 10 channels.
When I change the app configuration parameter to 10-bit normal conversion mode instead, everything works just fine!!! Is there a bug in the app in the fast 10-bit mode, maybe something with the continuous conversion or the start after initialization?
It would be great to get some help! Thank you and kind regards
Niklas Show Less
on my XMC4400, I have added an instance of the ADC_MEASUREMENT (v 4.1.20) app with 10 measurements. I selected the 10 bit fast conversion mode with 67ns sample time, I enabled continuous conversion and I chose to start the conversions after initialization.
The app initializes fine, returning success, but when I try to ask for a result (here for a DC current) by either calling
uint32_t result = ADC_MEASUREMENT_GetDetailedResult(&ADC_MEASUREMENT_I_DC_handle) & VADC_G_RES_RESULT_Msk;
or by calling
uint32_t result = (uint32_t)ADC_MEASUREMENT_GetResult(&ADC_MEASUREMENT_I_DC_handle);
both routines will give me just a zero. For every of my 10 channels. Of course the actual voltage to be measured is NOT zero and of course I have assigned the right pins to the 10 channels.
When I change the app configuration parameter to 10-bit normal conversion mode instead, everything works just fine!!! Is there a bug in the app in the fast 10-bit mode, maybe something with the continuous conversion or the start after initialization?
It would be great to get some help! Thank you and kind regards
Niklas Show Less
XMC™
Hello All,a support request on this topic was unsuccessful, so I ask here:Starting a XMC1100 in UMD (SWD debug enabled), I want to terminate SWD and s...
Show More
Hello All,
a support request on this topic was unsuccessful, so I ask here:
Starting a XMC1100 in UMD (SWD debug enabled), I want to terminate SWD and switch P0.14 and P0.15 to GPIO under program control.
The reason is that the debug pins also serve as LED indicators and if the debugger is not attached, I want to use the LED indicators.
If the debugger is attached, the application shall detect it *) and stay in SWD mode.
How can I do this?
I found no documentation on enabling or disabling debug mode for certain pins.
TIA,
Oliver
*) E.g. by checking a variable set by the debugger via SWD, although it would be smarter to detect active SWD Show Less
a support request on this topic was unsuccessful, so I ask here:
Starting a XMC1100 in UMD (SWD debug enabled), I want to terminate SWD and switch P0.14 and P0.15 to GPIO under program control.
The reason is that the debug pins also serve as LED indicators and if the debugger is not attached, I want to use the LED indicators.
If the debugger is attached, the application shall detect it *) and stay in SWD mode.
How can I do this?
I found no documentation on enabling or disabling debug mode for certain pins.
TIA,
Oliver
*) E.g. by checking a variable set by the debugger via SWD, although it would be smarter to detect active SWD Show Less
XMC™
Hello all,I hope I'm not repeating an existing thread, but I've hit a dead end trying to interface with a 2Go eval dev board using DAVE and J-Link. My...
Show More
Hello all,
I hope I'm not repeating an existing thread, but I've hit a dead end trying to interface with a 2Go eval dev board using DAVE and J-Link. My debug log is attached, you will notice I have set the GDB server executable manually as this at least got to the point connecting to the target. After which, the GDB server times out.
Hopefully something minor (and stupid), thanks in advance. Show Less
I hope I'm not repeating an existing thread, but I've hit a dead end trying to interface with a 2Go eval dev board using DAVE and J-Link. My debug log is attached, you will notice I have set the GDB server executable manually as this at least got to the point connecting to the target. After which, the GDB server times out.
Hopefully something minor (and stupid), thanks in advance. Show Less
XMC™
With a brand new project for the XMC4300 I load the DAVE4 apps FreeRTOS and FATfs. When I try to configure FATfs to use the SDIO module, I am getting ...
Show More
With a brand new project for the XMC4300 I load the DAVE4 apps FreeRTOS and FATfs. When I try to configure FATfs to use the SDIO module, I am getting "DAVE is not able to grant your last hardware resources request" I get the same error when I tick the checkbox at:
FATFS_0 -> General Settings -> RTOS Configuration (Use RTOS).
This error happens the same way when trying to create a project for the XMC4300 XMC4500 & XMC4800.
Is this a bug? Something I am not seeing? Another fellow posted a question in the DAVE4 forum about a different use of the FreeRTOS app generating the Hardware Resource Error but hasn't gotten an answer. Show Less
FATFS_0 -> General Settings -> RTOS Configuration (Use RTOS).
This error happens the same way when trying to create a project for the XMC4300 XMC4500 & XMC4800.
Is this a bug? Something I am not seeing? Another fellow posted a question in the DAVE4 forum about a different use of the FreeRTOS app generating the Hardware Resource Error but hasn't gotten an answer. Show Less
XMC™
Good Day,I'm working on a power electronics project, and seeking guidance from Infineon,Bangalore.I intend using a digital control law for the feedbac...
Show More
Good Day,
I'm working on a power electronics project, and seeking guidance from Infineon,Bangalore.
I intend using a digital control law for the feedback control system, and I'm completely new to Arm programming.
I have an XMC2GO with me.
How do I learn to program it? What all do I need to know to be able to program it in C? Like all those registers, GPIO, Interrupts etc?
Is there any resource to learn from?
How should I begin? I only have prior experience programming Arduino, so I don't think that is of any big help.
Thanks in advance!
Regards,
Arvind S Show Less
I'm working on a power electronics project, and seeking guidance from Infineon,Bangalore.
I intend using a digital control law for the feedback control system, and I'm completely new to Arm programming.
I have an XMC2GO with me.
How do I learn to program it? What all do I need to know to be able to program it in C? Like all those registers, GPIO, Interrupts etc?
Is there any resource to learn from?
How should I begin? I only have prior experience programming Arduino, so I don't think that is of any big help.
Thanks in advance!
Regards,
Arvind S Show Less
XMC™
Hello,I am starting with XMC2GO, I wanted to change a frequency of blinking according to "XMC 2Go - Write your first program Guide" and I found a prob...
Show More
Hello,
I am starting with XMC2GO, I wanted to change a frequency of blinking according to "XMC 2Go - Write your first program Guide" and I found a problem after I select "Bulid All (Ctrl + B) there is error :
"Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
make: *** [Startup/system_XMC1100.o] Error 1
Where is the problem? How to solve it?
Thank you in advance for your help. Show Less
I am starting with XMC2GO, I wanted to change a frequency of blinking according to "XMC 2Go - Write your first program Guide" and I found a problem after I select "Bulid All (Ctrl + B) there is error :
"Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
make: *** [Startup/system_XMC1100.o] Error 1
Where is the problem? How to solve it?
Thank you in advance for your help. Show Less
XMC™
I'm getting no correct data back from SPI_MASTER_Transfer. The data is sent correctly. The SPI slave device responds correctly. I am using a scope to ...
Show More
I'm getting no correct data back from SPI_MASTER_Transfer. The data is sent correctly. The SPI slave device responds correctly. I am using a scope to look at signals.
Perhaps I'm doing something wrong, but ... help
I've tried with Interrupts & with Direct mode. Also with & without FIFOs.
On a XMC1300 boot card. I've just ordered 10 engineering prototypes of a custom board with XMC1302 Q024.
I need some support.
Thanks in advance. Show Less
Perhaps I'm doing something wrong, but ... help
uint8_t SPI_Read_Byte( uint8_t Port, uint8_t RegisterNum )
{
uint8_t SendData[4];
uint8_t GetData[4];
SPI_MASTER_STATUS_t Status;
SendData[0] = (RegisterNum & 0x7F) | 0x80; // MSB is R/nW
SendData[1] = 0xff;
SendData[2] = 0x00;
XMC_USIC_CH_SetFrameLength( SPI_MASTER_0.channel, 24);
if ( Port == SLAVE_0 )
SPI_MASTER_EnableSlaveSelectSignal(&SPI_MASTER_0, SPI_MASTER_SS_SIGNAL_0 );
else
SPI_MASTER_EnableSlaveSelectSignal(&SPI_MASTER_0, SPI_MASTER_SS_SIGNAL_1 );
// Send & receive at same time
Status = SPI_MASTER_Transfer( &SPI_MASTER_0, SendData, GetData, 3 );
// block, wait to complete
while(SPI_MASTER_0.runtime->tx_busy);
while(SPI_MASTER_0.runtime->rx_busy);
return( GetData[0] );
} // SPI_Read_Byte
I've tried with Interrupts & with Direct mode. Also with & without FIFOs.
On a XMC1300 boot card. I've just ordered 10 engineering prototypes of a custom board with XMC1302 Q024.
I need some support.
Thanks in advance. Show Less