How to use DEBUGOUT?

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

How to use DEBUGOUT?

360 Views
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
Labels (1)
0 Kudos
2 Replies

302 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos

302 Views
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 Kudos