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?
解決済! 解決策の投稿を見る。
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.
Best Regards,
Ricardo Delsordo
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
I downloaded SDK 2.5.0 (Keil IDE) for 54018 and I can not find mcuboot in any folders . What am I missing?
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.
Best Regards,
Ricardo Delsordo