Using the LPC4370 on the LPC-Link2 card

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

Using the LPC4370 on the LPC-Link2 card

3,604 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JohnR on Sun Nov 03 19:56:17 MST 2013
I would like to use ]the LPC4370 on the LPC-Link2 card in much the same way as it is used by the LabTool card.

As a start I compiled the basic "while(1) {i++ ;}" project to RamMLoc128 but I have not been able to download it to the LPC-Link2 card.

I tried both LPCXpresso 6.1 and RedSuite 5.2.

RedProbe+ was connected to the 10 pin J2 connector on the card via the JTAG adapter.

The USB connector on the LPC-Link2 card was connected to a USB port on the computer.

If I select RedProbe Family on the  LPCXpresso 6.1 Debug configuration page and click the Debug button I get the error message


Quote:

LPC-Link (HID) not found.
This could be because it is disconnected, not powered, or already in use"



Trying the Redlink option gave the following message box

Quote:

JTAG configuration.
No JTAG Device selected. Select a Device before continuing



I must be doing something stupid so please could somebody tell me the correct connections and options to
program the LPC4370 on the LPC-Link2 card. I have searched through the documentation without success.

Thanks for any help

JohnR

Labels (1)
0 Kudos
Reply
15 Replies

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JohnR on Thu Nov 07 12:44:28 MST 2013
Thanks.

Works fine after changing from JTAG to SWD for Redlink.

John.
0 Kudos
Reply

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Nov 07 09:10:00 MST 2013
I thought you were using LPC-Link2. LPC-Link is the OLD version found on the original LPCXpresso boards.

The debug driver for LPC-Link2 is called Redlink. FYI, it is not called LPC-Link2 because the Redlink debug driver supports multiple debug adapters, including LPC-Link2 and CMSIS-DAP.
0 Kudos
Reply

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JohnR on Thu Nov 07 08:37:34 MST 2013
Hi,

Still no joy.

I have jumpers on both JP1s and LPC-link(HID) selected on the debug configuration page.

Running Debug then gives me the error message
Quote:




Quote:

LPC-Link (HID) not found.
This could be because it is disconnected, not powered, or already in use



What am I dong wrong?

John.


0 Kudos
Reply

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Nov 07 06:57:52 MST 2013
Yes - J7 on #1 to J2 on #2.

And if you are using the SPIFI flash to hold your LPC4370 application code (as per the example at http://www.lpcware.com/content/faq/lpcxpresso/using-lpclink2-as-lpc4370-eval), make sure that JP1 is fitted on #2 too.

Regards,
LPCXpresso Support
0 Kudos
Reply

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JohnR on Thu Nov 07 06:08:32 MST 2013
Thanks.

Just to check the setup using 2 Link2s

#1 is connected to the PC with the compiler using the USB connector.
#2 is powered using the USB connector and a USB power supply. This will be the target?

Do I connect J7 on #1 to J2 on #2 ????????

Sorry for the dumb question.

John.



0 Kudos
Reply

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Nov 07 03:50:06 MST 2013

Quote: JohnR

Failed on connect: Em(12). System rejected access at location 0x40053100 - verify Population of memory and peripherals
Conn&Reset. Was: None. DpID: 4BA00477. Info: FTVBII3NA


This is the issue with debugging LPC4370 using a RedProbe+ or LPC-Link1 that we were referring to in a previous post.

We have identified a fix and this will be incorporated into the next LPCXpresso 6 release.

Until then, you will need to use a second LPC-Link2 to debug the LPC4370 on your "target board LPC-Link2". This is generally a better idea anyway, as you can then carry out parallel debug connections to the Cortex-M4 and Cortex-M0 cpus.

Regards,
LPCXpresso Support
0 Kudos
Reply

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JohnR on Tue Nov 05 18:09:56 MST 2013
Hi,

See my previous message re stupid mistake.

My RedProbe is connected to J2.

JP1 is open as I think I am trying to boot from USB DFU?

John.

0 Kudos
Reply

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JohnR on Tue Nov 05 18:02:04 MST 2013
First I have a stupidity that I must confess to - I had reversed the position of the 10 pin plug on the JTAG adapter.

Now that is corrected, M4 and M0 appear in the JTAG list - chose M4.

Running Debug fails and produces the following message

LPCXpresso Debug Driver v6.0 (Oct 16 2013 02:04:38 - crt_emu_lpc18_43_nxp build 1212)
Looked for chip XML file in C:/nxp/LPCXpresso_6.1.0_164/lpcxpresso/bin/LPC4370.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_6.1.0_164/lpcxpresso/bin/nxp_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_6.1.0_164/lpcxpresso/bin/crt_directory.xml
Failed on connect: Em(12). System rejected access at location 0x40053100 - verify Population of memory and peripherals
Conn&Reset. Was: None. DpID: 4BA00477. Info: FTVBII3NA


From LPC43xx.h 0x40053100 is a register,
RESET_CTRL0;               /*!< (@ 0x40053100) Reset control register 0 */

What does this message mean then?

Thanks again,

John.

0 Kudos
Reply

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rocketdawg on Tue Nov 05 16:00:25 MST 2013
What about JP1?
J7 is definitely JTAG for the debug target when using LPC LINK2 as debugger
J2 is LPC4370 JTAG.
How is the device  powered?
0 Kudos
Reply

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JohnR on Tue Nov 05 10:41:06 MST 2013
hi

Thanks for the suggestion. The reason I am trying to use the LPC4370 is the built-in high-speed ADC, which should simplify my present system based on a LPC4350 and external ADCs.

I have tried J2 and J7 without success. I have also recycled one of LPC Link sections of a LPCXpresso board to connect using J4 on the LPC-link2 but have not had any success so far.

All very frustrating and time-consuming.

John.
0 Kudos
Reply

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rocketdawg on Tue Nov 05 09:40:38 MST 2013
Another inexpensive dev board is the Bambino 200

http://www.micromint.com/component/content/article/53-products/196-bambino200.html

It offeres quite a lot for a $25 board.

The LPC-link2 schematic says J2 is attached to LPC4370 JTAG pins
0 Kudos
Reply

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JohnR on Tue Nov 05 05:15:34 MST 2013
Thanks for the reply.

I hope you can find the problem as I am really stuck at the moment.

I have some LPC1768 boards with the LPC_Link.

Would I be able to use the LPC_Link cut off from the LPC1768 and hooked into J2 as a temporary measure?

John.
0 Kudos
Reply

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Nov 05 03:02:44 MST 2013
OK, I can replicate some issues using LPC-Link1 / Red Probe+ to debug LPC4370 (using an LPC-Link2 debug probe is fine). We'll investigate.

Regards,
LPCXpresso Support
0 Kudos
Reply

3,270 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JohnR on Mon Nov 04 18:15:15 MST 2013
Hi

Thanks for your message. I am still having problems trying to launch your example.

If I run Debug a message box appears indicating the RedProbe is present.

1 emulators found.
Select the emulator to use

If I OK this box for the only emulator shown the next message is

No JTAG Device selected. Select a Device before continuing

No JTAG file is created, whereas for the LPC4350 code on my Diolan boards the jtag file is always recreated.

I can get the same fault sequence if I delete the launch item "LPC4370_LEDblinky Debug.launch"
and then run debug.

Could my problem be that the LPC-Link2 is code protected?

If so what can I do - at present I don't have easy access to the serial port for Flash Magic but is there any other way?

JohnR

0 Kudos
Reply

3,271 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Nov 04 03:07:17 MST 2013
In the first place, please see:

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

Regards,
LPCXpresso Support
0 Kudos
Reply