Is it possible to redirect standard output to gdb traces

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

Is it possible to redirect standard output to gdb traces

181 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by feuillet on Wed Jun 18 05:28:26 MST 2014
I'm debugging a source code on host and I'd like to know if it is possible to redirect printf to dbg traces (or other console of the IDE)

Thanks for the help.
0 Kudos
1 Reply

164 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Jun 18 05:42:38 MST 2014
By default, printf output is directed through the 'semihosting' channel and should appear in the IDE console view (as long as you are linking with the 'semihost' C library variant). For more details, please see the FAQs, starting with:
http://www.lpcware.com/content/faq/lpcxpresso/using-printf

Regards,
LPCXpresso Support
0 Kudos