Enabling DEBUG for console

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

Enabling DEBUG for console

1,006 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by db_weldon on Tue Dec 09 21:08:51 MST 2014
Executing example projects in the LPCOpen 2 package I've been unable to see any of the DEBUGOUT strings in my console.
Most references I've read are in reference to LPCOpen v1 and sys_config.h and adding "#define DEBUG_ENABLE" and "#define DEBUG_UART LPC_USART0". We only found this under lpc_chip_43xx/inc but not under the xplorer board directory. In fact there is no lpc_core directory anywhere.
Reference: http://docs.lpcware.com/lpcopen/v1.03/_l_p_c_o_p_e_n_43_x_x__b_o_a_r_d__n_g_x4330.html

I am using an LPC4330-Xplorer Board with LPC-Link2
I'm using Redlib (semihost).
All DEBUGOUT messages end with "\r\n"

How can I get the DEBUGOUT messages to appear on the console?
Any help would be appreciated.
0 Kudos
Reply
2 Replies

959 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by db_weldon on Wed Dec 10 18:29:12 MST 2014
Thank you. Missed an important line when reading that earlier.

Undid everything and added DEBUG_SEMIHOST under DEBUG_ENABLE in board.h
For others using LPCOpen 2 examples with the Xplorer 4330 board, board.h wasn't in the lpc_core/\lpc_board/board_common directory (as lpc_core doesn't exist on my computer) but in ..\workspace\lpc_board_ngx_xplorer_4330\inc
0 Kudos
Reply

959 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Dec 10 00:25:12 MST 2014
The documentation for LPCOpen v1 is generally not applicable to v2. In the first place, you should read:

http://www.lpcware.com/content/faq/lpcopen-debug-inputoutput-support

Regards,
LPCXpresso Support
0 Kudos
Reply