Firmware upgrade via I2C

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

Firmware upgrade via I2C

1,806 Views
carter_wang
Contributor I

 

Hi,

My MCU is LPC5526.

I would like to implement a function that the host can upgrade the MCU firmware via I2C bus.

Could you give me some ideas or any demo codes for my reference?

 

BR,

carter

0 Kudos
3 Replies

1,802 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Carter

We don't have exact  I2C bootloader for LPC55.

For LPC55, we only have 

I suggest you referring this AN+ I2C driver inside MCUXpresso SDK folder to develop your bootloader.

Besides,  LPC54xx has I2C secondary bootloader AN11610

AN11610_LPC5410x_I2C_SPI_Secondary_Bootloader

You can check it for reference.

 

Best Regards

Jun Zhang

 

0 Kudos

1,790 Views
carter_wang
Contributor I

 

Hi Jun,

 

You mentioned is about the second bootloader.

Is it possible to download firmware via on-chip ROM boolotader over I2C interface?

If the answer is yes, could you tell me how to do it?

Currently, I know a way to download firmware via UART.

1. Set MCU to boot into ISP mode.
2. Use the tool FlashMagic to download MCU firmware via UART.

 

BR,

carter

 

 

BR,

carter

0 Kudos

1,775 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi 

We don't have a GUI like FlashMagic  supporting I2C ISP boot.

In order to use I2C ISP boot, user needs to use I2C commands (this is documented in LPC UM  ISP and IAP chapter) communication I2C boot code, developing user GUI or application source code to implement it.

Normally PC doesn't have I2C port to communicate board. Thus a USB to I2C/SPI Bridge  is needed. In these two ANs, we use LPCXpresso54102 board on board LPC4322 firmware as USB-to-I2C bridge.  Just follow the I2C commands that listed in UM to communicate with LPC55xx in user application to talk with the I2C ISP boot.

 

Hope this helps,

Jun Zhang

 

0 Kudos