I am developing a modified version of the Labtool firmware.
The target is an LPClink2 board equipped with an LPC4370.
It runs perfectly and I want to boot the LPC4370 now from the SPIFI flash installed on the board.
What steps do I need to follow to achieve this ?
A similar question has already been asked in the passed, but it was based on LPCxpresso and the links are broken.
Thanks a lot.
Thank you so much for your prompt and relevant reply.
Besides the boot process itself you have described, I am currently struggling on how to configure my MCUxpresso project to setup and write to the external flash.
Is there somewhere a basic example project that implements both RAM and SPIFI methods ?
If not, which changes do I have to make to the original Labtool firmware project and/or source code to support SPIFI ?
Thank you - regards,
I recommend you referring this post on Using the SPIFI library with the LPC4370
Hope this will help you.
For LPC4370, MCUXpresso IDE and LPCXpresso IDE are the same thing. The code works on LPCXpresso is also for MCUXpresso.
But SPIFI boot must follow the right boot process. Please refer UM10503, Chapter 5, boot ROM.
We must follow the overall boot process
Because you use SPIFI boot, you need also use SPIFI boot process.
Here In Fig 20, Detect device means if it can be able to read a valid device ID for the external QSPI device. If not being able to read out correct device ID ( all 0 or all 1), it’s device error.
Fig 20, there is “see main boot flow”, it should point to Fig 16, after “SPIFI Boot”.