Booting LPC55 via I2C, can we trigger flash-boot via rom-loader?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Booting LPC55 via I2C, can we trigger flash-boot via rom-loader?

1,050件の閲覧回数
dav1
Contributor V

When using the built-in I2C "ISP boot mode" of the LPC55 series cpu's
is it possible for the host to signal via I2C to immediately exit the rom based bootloader to continue booting via flash?

 

I don't have the option to add a dedicated gpio to control ISP, so idea was to always enter the rom boot mode -> read flash region to check installed firmware -> if up to date -> continue to boot via flash

 

doable?

0 件の賞賛
返信
3 返答(返信)

1,025件の閲覧回数
dav1
Contributor V

thanks, sounds good!

do you have an idea of how long it will take to run these commands over i2c?

i couldn't find any wait times in the datasheet so should be fairly instant (i hope)

 

0 件の賞賛
返信

1,033件の閲覧回数
jay_heng
NXP Employee
NXP Employee

Yes, you can try read-memory and execute commands in UM 8.9.5 I2C ISP commands

Use read-memory command to read back app data from internal flash

Use execute command to jump to app

0 件の賞賛
返信

710件の閲覧回数
dav1
Contributor V

having trouble with this, the UM 8.9.5 doesn't have an example so tried this:

boot_cmd[22] = {0x5A,0xA4,0x10,0x00,0x00,0x00,0x09,0x00,0x00,0x03,0x6c,0x01,0x00,0x00,0x00,0x80,0x01,0x20,0x00,0x80,0x01,0x20}
 
where 0x09 is the execute cmd, but the response code is command not supported
0 件の賞賛
返信