Semihosting question

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Semihosting question

622 次查看
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 项奖励
回复
1 回复

608 次查看
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 项奖励
回复