Retarget ITM printing with Newlib

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Retarget ITM printing with Newlib

748件の閲覧回数
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 返答(返信)

679件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi Jeff,

What IDE do you use?

Regards,

Jing

0 件の賞賛
返信

679件の閲覧回数
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 件の賞賛
返信