LPC5536 EVK: How to enter USB ISP?

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

LPC5536 EVK: How to enter USB ISP?

3,858 Views
AlbertoGarlassi
Contributor II

Hello,

Shorting pins 3 and 4 of J43 and connecting  to the target USB0, J3, is not enough.

What else should be done?

 

Thank you

Alberto 

0 Kudos
Reply
13 Replies

3,835 Views
AlbertoGarlassi
Contributor II

Thank you Rong.

My board still fails to enumerate. USB seems OK, I tested the VCOM example.

J43 3&4 shorted  -> no USB activity 

J43 1&2, 3&4 shorted -> VCOM example.

I understand that the CMPA register controls ISP behaviour but I never messed with it.

Regards 

Alberto

0 Kudos
Reply

3,832 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

This is my Device Manager screenshot after I connect to J3 usb port on LPC5536-EVK board with J43 configuration in the last Email.

xiangjun_rong_0-1696924426024.png

Obviously, the PC can enumerate the USB.

BR

XiangJun Rong

0 Kudos
Reply

3,824 Views
AlbertoGarlassi
Contributor II

You are showing the behaviour I would expect.
On my board I have the virtual comm demo loaded, only USB connected is to J3.
-No jumpers in J43: USB enumerates as USB ACM
- J43 with jumper 3&4: USB dead
-J43 with jumper 1&2: USB dead
-J43 with both jumpers: USB enumerates as USB ACM

CMPA register, read by the Secure Provisioning Tool, shows all bits set to 0.

I read https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/LPC55-Don-t-Use-ISP-USB0-for-firmware-up...

[LPC55] Don’t Use ISP USB0 for firmware update

But I guess it doesn't apply to the newer LPC5536.
Regards

0 Kudos
Reply

3,817 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

For LPC5536-EVK board, close pin3&4, open pin1&2 for J43, connect J3 connector to USB of PC, run on PC:
blhost -u 0x1fc9,0x0025 get-property 1

is it okay or not?

BR

XiangJun Rong

 

0 Kudos
Reply

3,809 Views
AlbertoGarlassi
Contributor II

blhost -u 0x1fc9,0x0025 get-property 1 doesn't work for me. When J43 3&4 are shorted the USB doesn't enumerate. Tested on W10 and Linux. I attach a photo of my board, maybe some other jumper is out of place.

 

Regards

0 Kudos
Reply

3,805 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

If you close pin1&2 and pin3&4 of J43, then download LED toggling example in SDK package, can the LED toggles or not?

BR

XiangJun Rong

0 Kudos
Reply

3,799 Views
AlbertoGarlassi
Contributor II

I already tested the VComm example and it works OK with pin1&2 and pin3&4 of J43 shorted.

I report againt the results of these tests:

On my board I have the virtual comm demo loaded, only USB connected is to J3.
-No jumpers in J43: USB enumerates as USB ACM
- J43 with jumper 3&4: USB dead
-J43 with jumper 1&2: USB dead
-J43 with both jumpers: USB enumerates as USB ACM

Should I check the blinking example?

0 Kudos
Reply

3,760 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

with only pin3&4 closed for J43, connect the J1(Link 2) USB port to PC, the LPC5536 will be in ISP mode, you can try the uart to down load application code:

xiangjun_rong_0-1697080042400.png

 

 

Pls have a try.

BR

XiangJun Rong

0 Kudos
Reply

3,732 Views
AlbertoGarlassi
Contributor II

I found that on my board, for USB ISP, JP46's jumper should be put between 1&2. Default is 2&3.

Then USB enumerates as HID.

Does this mean that one more of the few pins of this MCU should be reserved for a voltage divider? 

Why does USB performs normally with the standard jumper settings but requires USB0_VBUS for ISP?

 

Regards

0 Kudos
Reply

3,720 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Okay, I see that the P1_31 pin functions as USB0_VBUS if you close pin1&2 of JP46.

BR

XiangJun Rong

0 Kudos
Reply

3,751 Views
AlbertoGarlassi
Contributor II

Yes it works,

Response word 1 = 1258488065 (0x4b030101)

Current Version = K3.1.1

 

Regards

3,840 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

If you want to configure the LPC5536-EVK board in ISP mode, it is okay that pin3&4 of J43  is closed and pin1&2 is open, then press reset button.You have to connect the J3 FS USB connector on LPC553 6-EVKto PC, it is okay.

I just have a try, it is okay.

 

xiangjun_rong_0-1696905576281.png

 

Hope it can help you

BR

XiangJun Rong

 

0 Kudos
Reply

3,838 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Of course, if you want the board runs standalone, close pin1&2 and pin3&4 of J43.

BR

XiangJun Rong

0 Kudos
Reply