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

Debug printf() Keil IDE with GCC

I have no problem using debug printf() in Keil MDK IDE using ARMCC. The same doesn't work with GCC. I do not use GCC except when I have to. Could you please point me to a simple "Hello world" project for Keil MDK with GCC?

Thanks. 

Parents
  • The "trick" that make it possible for you see printf output in the "Debug printf()" debug viewer is not related with which compiler you are using. It is usually done by the retarget.c file included in the Keil::Arm_Compiler pack in Pack Installer. This retarget I/O file helps you to retarget or redirect your printf from stdout to e.g. ITM channel using SWO trace.

    More details: www.keil.com/.../_retarget__examples__i_t_m.html

Reply
  • The "trick" that make it possible for you see printf output in the "Debug printf()" debug viewer is not related with which compiler you are using. It is usually done by the retarget.c file included in the Keil::Arm_Compiler pack in Pack Installer. This retarget I/O file helps you to retarget or redirect your printf from stdout to e.g. ITM channel using SWO trace.

    More details: www.keil.com/.../_retarget__examples__i_t_m.html

Children