Retarget ITM printing with Newlib

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Retarget ITM printing with Newlib

767 Views
jeff_hane
Contributor I

I want to use the ARM CMSIS DSP library on the k28 board I am using.  I've got everything building and running but there is something strange happening with printf.  I enable SWO on the board and compile in retarget_itm.c.  However, I only ever get the first printf on the SWO ITM console.  If I place a breakpoint in _write, it will enter it once but never again.  The program continues to run just fine but no output on the console.  I't like the link to _write got lost so calls to printf never show up again.  

thanks, 

jeff

0 Kudos
Reply
2 Replies

698 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi Jeff,

What IDE do you use?

Regards,

Jing

0 Kudos
Reply

698 Views
jeff_hane
Contributor I

Hi Jing,

  I use mcuxpresso; however I went back and figured this out last week.  There was a buffer overrun in my code that was somehow breaking my second printf.  The code would run fine and get the correct results but just that one printf wouldn't work. 

thanks,

jeff

0 Kudos
Reply