debug Q: debug through JTAG not working

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

debug Q: debug through JTAG not working

1,053 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by can.finner on Thu Apr 14 19:38:28 MST 2011
Hi,
I am using lpcXpresso to debug LPC1769. By default, I can debug it through SWD. After I set debug configuration following link
http://support.code-red-tech.com/CodeRedWiki/ConnectingToJtag

I got error in lpcXpresso IDE like:
Target reports errors
Reason:
15: Target error from read memory
Address overrun : unknown cause.

Then I tried to debug in gdb command line with following commands:
set remotetimeout 60000
target extended-remote | ./crt_emu_cm3_nxp -g -4  -pLPC1768  -wire=hidjtag
set mem inaccessible-by-default off
mon ondisconnect nochange
load a.axf
mon semihost enable

seems ll these commands work right, but afterward I could not insert any breakpoints or continue. The problematic GDB packages as following(both breakpoint and hard breakpoint tried):
(gdb) b main
Sending packet: $m45e,2#99...Ack
Packet received: E22
(gdb) c
Continuing.
Sending packet: $Z1,45e,2#e3...Ack
Packet received: E22

BTW, if i debug use command:
target extended-remote | ./crt_emu_cm3_nxp -g -4  -pLPC1768  -wire=hid
then everything is ok.

So, any tips? also I might be talking gibberish, please forgive if so.
Thanks very much.
0 项奖励
回复
8 回复数

1,027 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Apr 15 08:34:33 MST 2011
Hi

Thanks for reporting this. We'll take a look and get back to the forum.
0 项奖励
回复

1,027 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by can.finner on Fri Apr 15 00:24:58 MST 2011

Quote: TheFallGuy
Hello,

I am curious - why JTAG? I thought SWD was the better interface?


SWD does satisfy the needs. Well, I just gave the jtag a try, which should work according to the documents.
Thanks.
0 项奖励
回复

1,027 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Fri Apr 15 00:18:11 MST 2011
Hello,

I am curious - why JTAG? I thought SWD was the better interface?
0 项奖励
回复

1,027 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by can.finner on Thu Apr 14 23:03:25 MST 2011
Thanks, the Windows 7 32 bit operating system.
0 项奖励
回复

1,026 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Thu Apr 14 21:06:51 MST 2011

Quote: can.finner

...in Windows 7.



No apology needed.  Windows 7 32-bit or 64-bit?

I did see, in some other posts, that jtag was not supported with the LPC-Link.  That may be old information.  CodeRedSupport will probably have to answer your question about debugging with jtag.
0 项奖励
回复

1,027 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by can.finner on Thu Apr 14 20:48:45 MST 2011
firstly sorry about the lacking of information.
I am using LPCXpresso v3.6.3 [Build 317] [08/04/2011]
in Windows 7.

Thanks.
0 项奖励
回复

1,027 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Thu Apr 14 20:36:53 MST 2011
You may get asked this question sooner or later:

What version of LPCXpresso are you using and on what operating system?
0 项奖励
回复

1,027 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by can.finner on Thu Apr 14 19:53:04 MST 2011
I tried to debug LPC1769 in gdb command line by both jtag and swd.
1, using swd command line:
target extended-remote | ./crt_emu_cm3_nxp -g -0  -pLPC1768  -wire=hid
In this case debug process goes ok;
2, using jtag command line:
target extended-remote | ./crt_emu_cm3_nxp -g -0  -pLPC1768  -wire=hidjtag
strangely, sometimes after this command, target stops at PC:0x1fff0080, which seems to in boot ROM of LPC1769.
more strangely, I could not download axf file into flash, the command
(gdb) load adc_semihosting.axf
comes with error message like:

Loading section .text, size 0x47fc lma 0x0
Loading section .data, size 0x204 lma 0x47fc
Ps: (  0) Page  0 at 00000000
......
Nc: nSRST assert (if available)
Nc: Executing in bootloader.
Error finishing flash operation.

the download error only occurs when pc stops at 0x1fff00xx, but problem mentioned in the previous post is always there.

have no clue about it, please help.
Many thanks.
0 项奖励
回复