Hello,
We are attempting to program the internal flash of the LPC54S018J4M using blhost. In order to do this, we need to configure the SPIFI interface that is connected to the internal flash.
We have been able to initialize communication using blhost and are able to obtain initial memory configuration as below
C:\Project\Huntron\dfu-util-0.9-win64>.\blhost.exe -u 0x1fc9,0x01a2 -- get-property 12
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 0 (0x0)
Response word 2 = 0 (0x0)
Response word 3 = 536870912 (0x20000000)
Response word 4 = 536929943 (0x2000e697)
Reserved Regions =
Region0: 0x20000000-0x2000E697 (57.648 KB)
My understanding from the blhost documentation is that the process is as follows
1) fill the memory buffer with the Quad SPI configuration structure/data
2) configure the Quad SPI.
For the LPC54S018J4M it is not clear what the specific Quad SPI configuration structure should be. Is it possible to provide the specifici Quad SPI configuration structure. We assume that it should be of the form :
blhost -u 0x1fc9,0x01a2 -- fill-memory 0x2000f000 4 <spifi_configuration_word>
Also, we are not sure if the procedure outlined in the blhost documentation should be strictly followed for the LPC54S018J4M i.e. Once the spi configuration structure is written and the fill memory command is executed, should it then be possible to program an image to the internal flash of the LPC54S018J4M ?
Thanks
Victor
Hi,
After you Call configure-memory command with blhost command, you can write the quadspi flash.
Pls refer to the attach doc.
For the configure memory instruction, pls refer to the section 6.8.1 QSPI configuration block in the MCUBOOTRM.pdf, this is the website:
https://www.nxp.com.cn/docs/en/reference-manual/MCUBOOTRM.pdf
Hope it can help you
BR
XiangJun Rong