Getting console printf style output from JTAG

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

Getting console printf style output from JTAG

1,977 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by edlikestoboogie on Mon Mar 07 11:11:59 MST 2011
Hi,

I am new at embedded development, the LPC1768, and LPCXpresso.  I have a prototype based on the LPCXpresso but it only has JTAG and ISP.  I flash and debug using JTAG.  Is there an easy way to get console style printf output for development purposes through JTAG easily?

thank you.
0 项奖励
回复
3 回复数

1,889 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Mar 08 01:15:27 MST 2011

Quote: edlikestoboogie

I am new at embedded development, the LPC1768, and LPCXpresso.  I have a prototype based on the LPCXpresso but it only has JTAG and ISP.  I flash and debug using JTAG.  Is there an easy way to get console style printf output for development purposes through JTAG easily?



If you are connecting to your target using the LPCXpresso IDE, then you can simply use the "[B][I]semihosting[/I][/B]" functionality built into the tools. For more information see the C library FAQs at:

  http://support.code-red-tech.com/CodeRedWiki/CodeRedFAQ#CLibrary

and in particular:

  http://support.code-red-tech.com/CodeRedWiki/WhatIsSemiHosting
  http://support.code-red-tech.com/CodeRedWiki/UsingPrintf

Regards,
CodeRedSupport
0 项奖励
回复

1,889 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by edlikestoboogie on Mon Mar 07 12:43:01 MST 2011
I didn't know the ISP port could be used for UART serial communication.  If this is true, could you give me some information on how to initialize it, set its baud rate, and send some strings to it?

Thank you.
0 项奖励
回复

1,889 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by igorsk on Mon Mar 07 11:49:31 MST 2011
Well, ISP implies serial port, no? If you insist on using JTAG, you can send text using ITM/SWO, but not many debug adapters support it (e.g. LPCLink doesn't).
0 项奖励
回复