LPC1549xpresso with LPC LINK 2

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

LPC1549xpresso with LPC LINK 2

626 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kbowers on Tue Jan 13 18:59:49 MST 2015
I am trying to run debug applications using the LPC LINK 2 within LPCxpresso.  The LPC Link 2 seems to find the target alright but I can't program the flash.  The only cause indicated on the website is that there isn't enough current available from the power supply but this isn't the case here unless I need more than 1 A.

My next thought was that it had to do with not yet mapping the SWO line to the corresponding I/O line that I am using but I couldn't see anywhere in the sample code provided where that is done so I started looking elsewhere.

I moved on to trying to use the LPC Link with my LPC1549xpresso board but I can't even get to the point where the link will find the target.  I changed the jumpers to the locations where they should be in this configuration without success.  I would be nice if there was an actual application note that provided detailed instructions on using LPXxpresso with the LPC Link with the LPC1549xpresso board without having to use the on board debugger on the LPC1549xpresso.

The other area of concern is with the 10 pin connection required on the target when using the LPC Link 2.  Again, the documentation on this is limited.  I mainly just went off the Embedded Artists schematics to try and figure out what is required.  Having looked further, I see some programming tools actually incorporate pin 8 but I don't know for what purpose.  Again,is there any documentation available that outlines what is required in the design of a board using the LPC1549 that would allow me to use the LPC Link 2 for programming and debugging?
0 Kudos
5 Replies

602 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Jan 15 01:47:03 MST 2015
This basically means that the debugger is unable to get control of your target. This will most likely be because there are problems with your debug circuit.
0 Kudos

602 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kbowers on Wed Jan 14 13:59:14 MST 2015
I am getting error #15  Target error on commit flash write and target error from read register.
0 Kudos

602 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 1234567890 on Wed Jan 14 11:37:43 MST 2015
Examples like periph_wwdt can be nasty aftermath.
Have you tried to boot into ISP mode?
Check that all the jumpers are at their default location before.

http://www.lpcware.com/content/faq/lpcxpresso/regaining-debug-access
0 Kudos

602 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Jan 14 01:49:00 MST 2015
It would help us if you told us what error messages the tools are displaying. The error message will normally give us a good indication of the problem.

You may also want to read this FAQ:
http://www.lpcware.com/content/faq/lpcxpresso/debug-design
0 Kudos

602 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Tue Jan 13 22:22:55 MST 2015

Quote: kbowers
Again,is there any documentation available that outlines what is required in the design of a board using the LPC1549 that would allow me to use the LPC Link 2 for programming and debugging?



See:  http://www.lpcware.com/content/forum/lpc15xx-minimal-swd

and don't forget to close J2  :)   (See: #5 of http://www.lpcware.com/content/forum/lpcxpressolpc114fn28102-questions)
0 Kudos