AnsweredAssumed Answered

printf does not work in one of my programs

Question asked by Joseph Jean-Jacques on Aug 1, 2018
Latest reply on Aug 10, 2018 by Erich Styger

Hi Everyone,

 

I am using MCUXpresso and have been able to write/run several C/C++ projects on my MCU. In all of these projects I use the printf statement which delivers the output to the console log window in the MCUXpresso IDE. Normally printf would be called in functions defined outside of main and I never had any issues up until now with the current project I am working on. 

 

It is a kind of bizarre problem, if I call printf inside of main then I can see in the output in the console window, otherwise if printf is called outside of main, then I see no output. 

 

I tried searching the forum for similar problems, but I only found similar issues that pertained to the Kinetis Design Studio IDE. As anyone run into a similar issue like this for the MCUXpresso?

 

Any help is greatly appreciated! 

Outcomes