How Can I Use 2xLPCLink-2 to Develop/Debug USB Device Firmware on an LPCLink-2 board.

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

How Can I Use 2xLPCLink-2 to Develop/Debug USB Device Firmware on an LPCLink-2 board.

592 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Sat Mar 07 17:34:28 MST 2015
OK. I have read the many postings about only connecting one LPCLink-2 at a time to the PC [Win7-64].

But what if i have to do this?

Can the IDE team specify (at idiot level ) What to connect, in what order, with setting for all four jumpers
(JP1, JP2 on two boards), when to connect USB cables (note plural!), when to start the application USB code
on the PC in order to ...

Download (to target RAM) the latest edit/compile cycle and start debugging it via the probe LPCLink-2 board.

NOTE WELL that I only have one PC -- multi-machine solutions need not apply!

Regards, Mike
0 Kudos
Reply
4 Replies

586 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sun Mar 08 04:43:50 MST 2015

Quote:
Do you think I would not have researched and read everything before I have to ask questions.



You didn't say what you had research and I can't read your brain from here.

The issue with LPC-Link2 (LPC43xx, strictly) is only that the dfu utility can't boot if two dfu-bootable devices with the same vid/pid are connected at the same time. The exact rules for whether a device will attempt to boot is described in the manual, but basically you can stop it by configuring boot pins. Do that, and there is no issue.

Why not go and try it?
0 Kudos
Reply

586 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Sun Mar 08 02:57:36 MST 2015
Absolutely not.

Do you think I would not have researched and read everything before I have to ask questions.

But thanks for replying at all.

Cheers, Mike
0 Kudos
Reply

586 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sun Mar 08 02:54:52 MST 2015
Does this help?

http://www.lpcware.com/content/faq/lpcxpresso/using-lpclink2-as-lpc4370-eval
0 Kudos
Reply

586 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Sat Mar 07 18:03:14 MST 2015
Now I am trying to think for myself, would the following work?

Starting with nothing plugged in and nothing running.

[1] Plug in probe LPCLink-2 with JP1 off, JP2 off, ribbon from J7 to target J2. Target not connected/powered at this point. (Target JP1 off JP2 off also).
[2] Use DFU-Util to load Redlink on to probe. IDE still not running. [Expected that DFU capable device disappears from device list]
[3] Start IDE. Finds the Redlink probe? Or does this not happen until a debug session is started?
[4] Connect target USB cable to power target. [Presumably it appears in device list as DFU device but we don't care]
[5] Start a debug session in IDE -- which loads latest code on to target and applies 'remembered break points'. [Presumably, DFU device (target board) disappears from device list.]
[6] Start Host (PC side) USB Application

[7] Shout Yippee! (or equivalent) and start debugging and testing etc.

And if not, please explain in detail why and what the alternative should be.

Note: IDE = LPCXPresso 7

Regards, MIke
0 Kudos
Reply