Semihosting question

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

Semihosting question

562 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rjm on Thu Jan 22 07:11:56 MST 2015
According to http://support.code-red-tech.com/CodeRedWiki/UsingPrintf, it is possible for the target, to read the host console via sscanf and even to open a file on the host.

Can I also redirect the output of the target MCU that appears in the host console to a file or pipe it to another program, e.g. a graphic visualiser - hence allowing to create live graphs.
0 Kudos
Reply
1 Reply

548 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Jan 22 07:39:53 MST 2015
Please use the FAQ for LPCXpresso...
http://www.lpcware.com/content/faq/lpcxpresso/using-printf

No, you cannot redirect things written to the debug console. However, you can use fprintf() to write to a file on the host. Alternatively, as described in the above FAQ, you can retarget the output to another device, such as a UART. You could then read the UART with an application on the host.
0 Kudos
Reply