Retarget ITM printing with Newlib

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Retarget ITM printing with Newlib

646 次查看
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 项奖励
回复
2 回复数

577 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Jeff,

What IDE do you use?

Regards,

Jing

0 项奖励
回复

577 次查看
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 项奖励
回复