LPC51u68 -- isp via spi port

cancel
Showing results for 
Search instead for 
Did you mean: 

LPC51u68 -- isp via spi port

671 Views
HeMyFAE
NXP Employee
NXP Employee

Customer :Neato/Emcraft

INitial customer email:

We are trying to program LPC51U68 from i.MX8M via ISP over SPI, but can't get a proper response from the LPC51U68 chip. The manual states that the LPC will drive the ISP1 pin to low state after receiving the SH_CMD_PROBE (0xA5) command. We send the following byte sequence to the

chip: 0xA5 0x01 0x00 0x00 0x00 0x00 0x00 0xA4. We observe that ISP1 becomes high and never switches to low. We observe that ISP1 doesn't change its state if the probe command is incorrectly formed. This makes us think that the LPC receives and handles the command, but its state after that is unclear.

 

What can be the cause of this issue? Does NXP have a reference code for ISP over SPI?

 

My initial response:

I already checked with the customer to make sure that it has both  isp0 and isp1 pull low at POR to initiate isp mode via spi/i2c.

In addition I also checked that they have pull down (4.7k) on isp1.

Attached is the email chain from the customer.

Please advise whether we can test isp functionality on our lpc51u68 via spi.

Regards,

hy

 

Labels (1)
0 Kudos
3 Replies

500 Views
HeMyFAE
NXP Employee
NXP Employee

HI Alex,

Thanks for helping me resolved this issue.Please update the UM at your earliest convenience.

I just want to add the comment below so it can help other customers who read this blog later on:

As it turned out that the  UM for the LPC5u68 is wrong. 

0xA5 0x01 0x00 0x00 0x00 0x00 0x00 0xA4.

 

When we apply the sequence for the LPC54608,  the chip responded with an interrupt set low as shown in the screen capture above.

0xA5 0x04 0x00 0x00 0x00 0x00 0x00 0xA1

0 Kudos

500 Views
alex_yang
NXP Employee
NXP Employee

HI,

Yes, The LPC51U68 UM description is wrong(I will double confrim). please follow LPC54608UM.

500 Views
alex_yang
NXP Employee
NXP Employee

Hi

please use LPC54608 UM for reference:

I try PROBLE cmd in LPC51U68, not problem found:

pastedImage_1.png

no special configuartion need pay attention.

code:

pastedImage_2.png

0 Kudos