Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Tarun_M
Level 1
Level 1
5 sign-ins First like given First question asked

Hello,
I am using the ADC and UART peripherals of XMC4400 Board. I am trying to read the sensor values using the ADC. And, next, I wish to check the results displayed by the ADC. For this, I have used an example code of UART given by the software. This UART code transmits the data from USIC0 channel0  to USIC0 Channel 1. I used this code because it was stated that this code would help me observe the variables values in the debugger.

Tarun_M_0-1712558863288.png

However, when I used this code and ran the debugger, the variables section of the IFX Debugger showed no variables and only a grey screen. In the expressions section, although I have added the global variables in the "expression" section, the value of the expressions is not updating. Can anyone please help me print the ADC values in Dave 3.0.
Below, I have attached the code I have written for reading the sensor values and displaying the ADC result.

Tarun_M_1-1712559124512.png

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Maragani
Moderator
Moderator
Moderator
25 solutions authored 10 likes received 100 replies posted

Hi @Tarun_M 

From DAVE we don't have Live variable update, if you want to check the variable value you have to stop the project execution and check.
You can use Semihost or Print through the UART Port which is connected on the board (Platform2GO kit XMC4400 V1.1) with pins P0.5 and P1.15.

Here I have attached the projects for Semihost and UART debug, you can use these projects for your development.
Regarding semihost please check the below weblink.
https://community.infineon.com/t5/XMC/A-true-solution-for-XMC-DEBUG-message-on-XMC1400-boot-kit/td-p...


Regarding Live variable update you can check the below thread and solution is provided
https://community.infineon.com/t5/XMC/Error-while-Installation-and-quick-start-of-iSYSTEM-s-winIDEA-...

Thanks & Regards
Sateesh M

View solution in original post

1 Reply
lock attach
Attachments are accessible only for community members.
Maragani
Moderator
Moderator
Moderator
25 solutions authored 10 likes received 100 replies posted

Hi @Tarun_M 

From DAVE we don't have Live variable update, if you want to check the variable value you have to stop the project execution and check.
You can use Semihost or Print through the UART Port which is connected on the board (Platform2GO kit XMC4400 V1.1) with pins P0.5 and P1.15.

Here I have attached the projects for Semihost and UART debug, you can use these projects for your development.
Regarding semihost please check the below weblink.
https://community.infineon.com/t5/XMC/A-true-solution-for-XMC-DEBUG-message-on-XMC1400-boot-kit/td-p...


Regarding Live variable update you can check the below thread and solution is provided
https://community.infineon.com/t5/XMC/Error-while-Installation-and-quick-start-of-iSYSTEM-s-winIDEA-...

Thanks & Regards
Sateesh M