LPC540xx: Run-Time Self-Programming of SPIFI flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC540xx: Run-Time Self-Programming of SPIFI flash

跳至解决方案
1,865 次查看
belmontbob59
Contributor IV

We need to self-update external SPIFI flash where our code originally runs from (XIP). In order to do this , the SPIFI flash programming code must execute from RAM.

 

One way I was planning on addressing this is by:

 

a)create a specific project for the programming code (running from RAM); this project would have linker directives to exclusively target RAM for code and RW/RO datas.

 

b)inject the output (KEIL 's ".out") in the original code that runs from external flash

 

c)the original code would: copy the (RAM only) programming code at run-time from flash to RAM, relocate the vector table and jump to it.

  

I am struggling with (b)/(c) as I don't know the file format for the executable (.out). Do you have any suggestion or a better way to achieve this?

标签 (3)
0 项奖励
回复
1 解答
1,608 次查看
nxf51211
NXP Employee
NXP Employee

Hi,

When you download the SDK for the LPC, please make sure you selected Keil as the Toolchain/IDE and also select the mcuboot option when adding more software components.

pastedImage_1.png

Best Regards,

Ricardo Delsordo

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,608 次查看
nxf51211
NXP Employee
NXP Employee

Hi,

I recommend you try mcuboot instead, which is a configurable flash programming utility that is included in the latest version of the SDK for the LPC54018.

Best Regards,

Ricardo Delsordo

0 项奖励
回复
1,608 次查看
belmontbob59
Contributor IV

I downloaded SDK 2.5.0 (Keil IDE) for 54018 and I can not find mcuboot in any folders . What am I missing?

0 项奖励
回复
1,609 次查看
nxf51211
NXP Employee
NXP Employee

Hi,

When you download the SDK for the LPC, please make sure you selected Keil as the Toolchain/IDE and also select the mcuboot option when adding more software components.

pastedImage_1.png

Best Regards,

Ricardo Delsordo

0 项奖励
回复