XMC4500 Relax Lite Kit - Watch variables with xSpy or printf

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

cross mob
Not applicable
Hey there,

I am new in the Forum and have a problem with my XMC4500 Relax Lite Kit. I want to display a int32_t variable on my laptop while the programm on the microcontroller is running. So i do not want to use breakpoints to watch the variable.

I tried to use xSpy or printf with the Relax Lite Kit, but nothing worked so far.

It would be really great if somebody can help me out.

best regards
Flo
0 Likes
3 Replies
Not applicable
Hi Flo,

Since the debugger of the Relax Kit doesn't provide virtual com port, I don't think the xSpy could work.
In order to stream the data out, maybe you can try to use the USBVC001 app to create a virtual com port for your device.
Then, from time to time you send the value of the variable out to the com port.

rgds,
Rou
0 Likes
Not applicable
Hey Rou,

thanks for the fast reply.
Your answer was very helpfull and i downloaded the USBCV001 example project and compiled it without any errors. But there is still no virtual com port on my PC visual. The computer ask me for any drivers neither.

best regards,
flo
0 Likes
Not applicable
Hi Flo,

There is a INF folder file in the generated code of USBVC001 app.
In the INF folder, you will see the Infineon_CDC_driver.inf file.
That is the driver file you need to installed into your PC in order for the Virtual COM Port to work.

rgds,
Rou
0 Likes