Hi,
I am trying to flash the QSPI flash on an OM40007 via the UART (I have had USB DFU and BLHost working but as the IAP command for DFU is non functional (as described in the ERRATA) I now need a way to flash code from the UART
I have a few questions.
1. Can you tell me where the Flashloader source code is for the 54018 IOT board ? I have looked in the SDK and the bootloader folder isnt included and the bootloader in the 54018 SDK doesnt seem to work when used with BLHOST.
2.What program/utilitie can I use to load the flashloader into the SRAMX using the UART to be able to used BLHost.
Regards
Jamie Lowrie
Solved! Go to Solution.
Thankyou for the great answer.
Hello @jamie3
1)USB DFU mode, refer to:
2) UART ISP command. below is method from our SE team:
In order to program the SPIFI flash, the flashloader has to be placed in to the RAM and execute from there.
The entire procedure can be described as follows:
For step 2-4, please refer to the attached archive, which contains a simple python script to download and execute the flashloader using the ISP commands. Please also note this script is for reference only and comes without waranty, thus should not be used in production.
In order to use the script, the following steps should be performed:
Parameter settings:
If everything has been set up correctly, the following output can be observed in the commandline window:
The flashloader should be running by now, and with blhost, we can communicate with the flashloader.
The source code of the flashloader can be obtained from SDK bootloader_examples/flashloader
Please refer to "Getting Started with LPC540xx/LPC54S0xx Flashloader User's Guide" for further configuration of the SPIFI flash. Note the connection mode should be UART instead of USB:
The SPIFI configuration word should be placed outside of the reserved region:
Then the user should be able to erase or program the external flash memory:
BR
Alice