Need help in programming external flash on LPC-link2 board

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

Need help in programming external flash on LPC-link2 board

1,176 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by akky on Thu Dec 25 08:15:22 MST 2014
Hello,

I am going nuts in programming a simple LED blinky project to external flash on a LPC-link2 board.
The board detects fine and is programmed by the LPCXpresso IDE as a Red-link probe.
But when I try to program the .axf file generated by the IDE, i always get the following error and programming fails:

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Ni: LPCXpresso RedlinkMulti Driver v7.5 (Oct 24 2014 22:17:31 - crt_emu_cm_redlink.exe build 172)
Pc: (  0) Reading remote configuration
Nc: Found chip XML file in C:/Users/Akshat/Documents/LPCXpresso_7.5.0_254/workspace/LPC4370_LEDblinky/Debug/LPC4370.xml

Pc: (  5) Remote configuration complete
Ed:02: Failed on connect: Ee(36). Could not connect to core.
Et: Emu(0): Conn&Reset. Was: None. DpID: 006E0069. CpuID: 00000000. Info: (null)
Error 0: (null)
Last sticky: 0. AIndex: 0
No MemAp selected
Pc: (100) Target Connection Failed
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------


I am following the steps as mentioned in the following link:
http://www.lpcware.com/content/faq/lpcxpresso/using-lpclink2-as-lpc4370-eval

Please guide me as to what am doing wrong.

Thanks,
0 Kudos
Reply
6 Replies

1,108 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by akky on Thu Dec 25 10:39:25 MST 2014
Yes, I also think so.
I guess there is no way to program the external flash on a single link2 board via PC using the LPCxpresso IDE....
Just confirm once if you have an idea.

Thanks,
0 Kudos
Reply

1,108 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Dec 25 10:21:23 MST 2014
So, you are using a link2 board as a target. Therefor you need another to work as the debug probe.
0 Kudos
Reply

1,108 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by akky on Thu Dec 25 10:18:03 MST 2014
I understand but the thing is that I am using the single LPC-Link 2 board only. I also want to understand if its ok to do it.
I mean that it is not mandatory to use the link 2 to program another LPC board only?
I hope there is no JTAG/SWD connecting cable to be connected when link2 external flash needs to be programmed?

Thanks
0 Kudos
Reply

1,108 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Dec 25 10:09:24 MST 2014
The error means the debugger cannot see you target, implying it is in a strange state. Programming different images into the lpc-link2 will not help in any way - you need to fix your target.
0 Kudos
Reply

1,108 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by akky on Thu Dec 25 09:56:38 MST 2014
I tried the above link but no good.
One more insight is that I am able to program the LPC-Link 2 board with the configuration tool which I guess programs the external flash with various debugger images.

Thanks
0 Kudos
Reply

1,108 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Dec 25 09:33:15 MST 2014
Try this
http://www.lpcware.com/content/faq/lpcxpresso/regaining-debug-access
0 Kudos
Reply