LPCLink2 hangs at random while downloading code to flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPCLink2 hangs at random while downloading code to flash

1,541件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Petervg on Tue Nov 18 13:43:03 MST 2014
I'm using a custom board with an LPC1769 and an LPCLink2 to download the code using the jtag interface. The weird part is that when downloading the .axf file to the cpu, the process often hangs at random points (sometimes 13%, sometimes 49%, ...) and sometime it works without problems. If it doesn't work, the progress bar just hangs and everything freezes until I unplug the USB cable of the LPCLink2.
when trying to debug the same target I get the same issues (in lpcxpresso I can see in the left bottom corner "54%: Downloaded 61440 bytes", in the right lower corner "Launching lpc176x_freer... Debug: (97%) and then lpcxpresso simply freezes up.

The ISP pin has a 10K pullup resistor to +3V3 and I have tried different (short and longer) jtag cables and I tried recompiling the code without any breakpoints set.

I'm using LPCXpresso 7.5.0.

Can anybody help me out a little here what I should check?

Thanks!
Peter
0 件の賞賛
返信
4 返答(返信)

1,529件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Nov 19 01:27:58 MST 2014
I'd suggest looking at a couple of things.
1. Power. programming flash increases the power requirements of the target
2. Noise. Check for noise (cross-talk) on the jtag/swd signals

0 件の賞賛
返信

1,529件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Petervg on Tue Nov 18 14:22:55 MST 2014
Hi R2D2,

I have connected the board in the same way I have done for the past 5-6 designs (schematic included below). I also just tested the board with a segger Jlink and that worked flawlessly... the only reason I cannot keep using the jlink is because the peripheral view is not working (yet).

I'm a little confused about the swd/jtag connections, but I'll take a look at the differences one of these days. I don't think however there is a problem with the board since the jlink works without any problem.

With kind regards
Peter
0 件の賞賛
返信

1,529件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Petervg on Tue Nov 18 14:10:51 MST 2014
I found another post "Trouble booting LPC LINK-2" where nxp suggested running a few commands. I also did this and output is posted below. Strange part is that after I run "dfu-util -d 0x1fc9:c -c 0 -i 0 -t 2048 -R -D C:\nxp\LPCXpresso_7.5.0_254\lpcxpresso\bin\LPC432x_Redlink_V4_61.bin.hdr" I consistently get an error message (output below)


dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x1fc9 product = 0x000c
Opening DFU capable USB device... ID 1fc9:000c
Run-time device DFU version 0100
Claiming USB DFU Runtime Interface...
Determining device status: state = dfuIDLE, status = 0
Found Runtime: [1fc9:000c] devnum=0, cfg=1, intf=0, alt=0, name="DFU"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0100
bytes_per_hash=471
Copying data from PC to DFU device
Starting download: [##################################################] finished!
Resetting USB to switch back to runtime mode

WARNING: Runtime device already in DFU state ?!?
No valid DFU suffix signature
Warning: File has no DFU suffix
unable to read DFU status
can't detach


-> When I rerun the same command I consistently get the message "No DFU capable USB device found"...



0 件の賞賛
返信

1,529件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Tue Nov 18 14:04:11 MST 2014
Did you try to use SWD already?
0 件の賞賛
返信