Can not program/debug LPC114 thru LPC link

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

Can not program/debug LPC114 thru LPC link

638 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jantenwolde on Mon Dec 13 03:15:51 MST 2010
I am using lpcxpresso the embedded artists USB board with a LPC1114 on it. I can get Blinky and other programs to work on the lpc1114 on the development board.

Then I cut the traces on the board between the LPC-link side and the target (lpc1114-) side, so that I can program/debug my own board (which has the same controller LPC1114 (33 pin)). I connected only the following wires to my target: swdio, swclk, reset and ground. Then I start lpcxpresso and start debug. It seems to download and program ok. It says it is running (instead of stopping at main()). When I suspend it it stops somewhere in bootcode (see below).

What am I doing wrong? It is not the ISP pin being low. It is floating, but the internal default pullup pulls it high, doesn't it? I tried using an external pullup, that did not help. I tried another target board, the effect is the same.

I am using the target's 3.3V power supply.


[LEFT][SIZE=2]>0x1fff0f10 undefined [/SIZE]
[SIZE=2]0x1fff0f14 blvs 0x1fc2630c[/SIZE]
[SIZE=2]0x1fff0f18 ldrble r0, [r12, #1600]![/SIZE]
[SIZE=2]0x1fff0f1c blvs 0x1fc09114[/SIZE]
[SIZE=2]0x1fff0f20 ldrbtle r0, [r12], #1600[/SIZE]
[SIZE=2]0x1fff0f24 undefined [/SIZE]
[SIZE=2]0x1fff0f28 strdcs sp, [r0], -r12[/SIZE]
[SIZE=2]0x1fff0f2c ldmvs r8!, {r3, r4, r5, r6, sp, lr}[/SIZE]
[SIZE=2]0x1fff0f30 undefined instruction 0xf00021d0[/SIZE]
[SIZE=2]0x1fff0f34 andcs pc, r0, #4145152 ; 0x3f4000[/SIZE]
[SIZE=2]0x1fff0f38 undefined instruction 0xf0002103[/SIZE]
[SIZE=2]0x1fff0f3c bvs 0x21a2f798[/SIZE]
[SIZE=2]0x1fff0f40 sbceq r0, r0, r0, asr #17[/SIZE][/LEFT]
[SIZE=2]0x1fff0f44 bvs 0x21a098ec[/SIZE]

Original Attachment has been moved to: 1100906_log.zip

0 Kudos
Reply
6 Replies

553 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Dec 13 04:56:22 MST 2010
If you didn't change LPCXpresso settings & code, you've obviously a hardware problem. Did you scope Debug signals, VCC, Crystal?
Is the LED (blinky) flashing correct?
0 Kudos
Reply

553 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jantenwolde on Mon Dec 13 04:56:17 MST 2010
I found the problem: I selected the wrong device type. Appears I have a LPC1114/201 (4k RAM) and I thought I had a LPC1114/301 (8k RAM). Shame on me.....
Thanks for your help ZERO !! (just asking for help, already helps....)
0 Kudos
Reply

553 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jantenwolde on Mon Dec 13 04:46:21 MST 2010
Thank you for your reply.
I AM using an external pullup on the reset. Not on ISP, but they're not doing that on the development board either, and it works there....

It seems like it is not programming Flash correctly. It says it programs Flash (3200 bytes) but when I examine memory (which seems to work!) there is only code from 0x0000 up to 0x1ff or so. While the same code on the development board goes on up to something like 0x900.
0 Kudos
Reply

553 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Dec 13 04:33:31 MST 2010
Did you scope SWD signals & reset ?
After downloading a reset signal (=low) should reset your target and start debugging. Without this signal your target is running, but debugging isn't possible.

See: http://knowledgebase.nxp.com/showthread.php?p=4278#post4278

Don't trust this internal pull-ups, use external.
0 Kudos
Reply

553 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jantenwolde on Mon Dec 13 04:20:41 MST 2010
Yes, reset has a 10k pullup.
0 Kudos
Reply

553 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Dec 13 04:18:27 MST 2010
Did you pull-up Reset (with something like 10k) ?
0 Kudos
Reply