How to use DEBUGOUT?

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

How to use DEBUGOUT?

929件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tvink on Mon Apr 18 09:11:48 MST 2016
Hi,

I have been reading what I can find about using printf() for debugging.  I would like to have the output appear on one of the IDE consoles available.  Later, I would also like to change printf() to use one of the UARTs instead of the console.  probably not the default UART though.

I am experimenting with an unmodified copy of "freertos_blinkey" and am looking at the DEBUGOUT macro.

My "Launch Configuration Properties" show that semihosting is enabled.  However I don't have a clue where to go from there.

I will keep reading in the mean time but perhaps someone has a simple solution?

Thanks
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

871件の閲覧回数
lpcware
NXP Employee
NXP Employee
bump
0 件の賞賛
返信

871件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tvink on Mon Apr 18 11:21:21 MST 2016
Stumbled into this...

In board.h: uncomment this line     #define DEBUG_SEMIHOSTING

In the Quickstart panel: Quick Settings: Set library / header type to NewLib Semihost


the DEBUGOUT messages now appear in one of the consoles
( remember to click the "display selected console" icon to bring up the right console )

Tony
0 件の賞賛
返信