Hi Sir,
We are a third-party programmer manufacturer. Currently we are supporting the LPC54S018J4MET180E programming process and have the following problems
1. Use J-link test, can not program, only Read ID, as shown below
Our hardware circuit is as follows
2.UM11155.pdf, LPC54018JxM/LPC54S018JxM User manual IAP command does not mention
Prepare sector(s) for write operation, Copy RAM to flash, Erase sector(s), Blank check sector(s), Compare command, as shown below
Is there a detailed process or step for programming Serial flash memory (0x10000000-0x103FFFFF) using SWD IAP?
Please help again to confirm and provide advice.
Thanks
Hi, Gary,
As you know that the LPC54S018J4MET180E has on-chip 4MB(4M Bytes) serial flash, the flash name is Winbond W25Q32JV, as you know that the IAP functions such as Prepare sector(s) for write operation, Copy RAM to flash, Erase sector(s), Blank check sector(s), Compare command are only valid for on-chip parallel flash, they are NOT valid for serial spifi flash.
For the serial flash driver, pls refer to MCUXpresso flash driver, located at:
C:\nxp\MCUXpressoIDE_11.3.1_5262\ide\Examples\Flashdrivers\NXP\LPC5460x
I attach it here.
Hope it can help you
BR
XiangJun Rong
Hi sir,
Thank you for your previous help.
Now,I can't writed SPIFI register (0x4008 0000) used SWD
What could be causing it? or what needs to be set?
Please help with suggestions.
Thanks
Hi Sir,
1.Does the serial flash memory programming flow refer to "FlashDev.c" and "FlashPrg.c" of MCUXpresso flash driver?
2.Is it correct that I use the SWD interface to control the SPIFI register to program the serial flash memory?
3.We can't program successfully using J-link, as shown in the figure below, do our hardware circuits need to be modified?
Please help again to confirm
Thanks