LPC55S2x SPI Programming

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

LPC55S2x SPI Programming

Jump to solution
1,003 Views
sachin_patel
Contributor III

Hi,

In the Data sheet for the LPC55S2x/LPC552x, it mentioned in Chapter 7.9:

> Supports flash programming through In System Programming (ISP) commands over
following interfaces: USB0/1 interfaces using HID Class device, UART interface
(Flexcomm 0) with auto baud, SPI slave interfaces (Flexcomm 3 or 9) using mode 3
(CPOL = 1 and CPHA = 1), and I2C slave interface (Flexcomm 1)

It clearly mentions that SPI Slave programming is possible through Flexcomm 3 or Flexcomm 9, which is useful because my application could make use of this feature. However, the data-sheet only shows 9 Flexcomm channels, Flexcomm 0 to Flexcomm 8. There is no Flexcomm 9 channel.

Is this an error with the data-sheet, or is the Flexcomm 9 channel only present on some of the soon-to-be released devices in the family?

0 Kudos
1 Solution
969 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @sachin_patel,

You're right, I think this is a problem with the reference manual. Looking in the ISP chapter, this mentions that the SPI interfaces used are the FC3 and the HS_SPI that correspond to the FC8.

I will report this to the documentation team, thanks for your feedback.

Best Regards,

Alexis Andalon

View solution in original post

4 Replies
946 Views
sachin_patel
Contributor III

.

0 Kudos
970 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @sachin_patel,

You're right, I think this is a problem with the reference manual. Looking in the ISP chapter, this mentions that the SPI interfaces used are the FC3 and the HS_SPI that correspond to the FC8.

I will report this to the documentation team, thanks for your feedback.

Best Regards,

Alexis Andalon

945 Views
sachin_patel
Contributor III

Thanks for confirming @Alexis_A . This should help with my design.

 

On a separate note, can the ISP programming support programming only parts of the device flash? Or is it required to reflash the entire device over this interface?

0 Kudos
927 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @sachin_patel,

Yes, you can write/read sections of the memory. For more information, I will suggest taking a look at the blhost tool (link).

Best Regards,

Alexis Andalon