This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Keil MDK + RL-ARM printf debugging

Hello!

I want to use "printf debugging" in my application. It is based on LPC1768 + JTAG, and I am using the RL-ARM.

I tried to include the <stdio.h> in my program and added the 'printf("Hello World\n");' statement. But when I run the program in debug mode, it 'goes into the weeds' as soon as it reaches 'printf' statement.

On the net, they say I should 'retarget' some stdio functions. Could please someone explain what does it mean, and how it is done?

P.S. As my tool does not support the SWD (what a shame! only JTAG) I can't use Serial Wire Viewer features and going to printf to UART.

0