Thanks @xiangjun_rong for the response. Tried it but still same . More testing notes below.
Have decided to use another sample app (lwip_ping_bm_Samples). I have not modified it and just recompiled it. As noted, I have 3 Evaluations boards:
- 2 boards the OM13098 - both of these stopped working (was working before). The eval board is actually a variation of the OM13098 since it has the LPC54S018 not LPC54628
- 1 board the LPC54S018M-EVK - still working.
The following are the tests I've done using the SEGGER J-Flash-Lite and the Redlink tool.
Using SEGGER J-Flash-Lite with Non-working Board 1
SEGGER J-Flash-Lite reports NO errors if i Just 'Erase Chip'.
However, if I 'Program Device' using the bin file am getting an error. The error displayed is 'Could not Download file'
Using SEGGER J-Flash-Lite with Non-working Board 2
SEGGER J-Flash-Lite seems to hangup when I select 'Erase chip'
So did NOT bother testing with 'Program Device' anymore.
Since SEGGER J-Flash-Lite is failing, decided to use the Redlink flash tool crt_emu_cm_redlink flash packaged with MCU Expresso. Generated a batch file from MCU Expresso with the following command:
%MCUX_IDE_BIN%/crt_emu_cm_redlink --flash-load-exec "%MCUX_WORKSPACE_LOC%/lpcxpresso54018_lwip_ping_bm_Samples/Debug/lpcxpresso54018_lwip_ping_bm_Samples.bin" -p LPC54018 --load-base=0x10000000 --vc --flash-driver-reset SOFT --bootromstall 0x40000040 -x %MCUX_WORKSPACE_LOC%/lpcxpresso54018_lwip_ping_bm_Samples/Debug --flash-dir %MCUX_FLASH_DIR0% --flash-dir %MCUX_FLASH_DIR1% --flash-hashing --log FlashLPC.log --debug 4
Using crt_emu_cm_redlink On Non-working Board 1, I get this error
Nc: DAP stride is 4096 bytes (1024 words)
Nc: Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_SFDP.cfx
Nc: Image 'LPC540xx_JEDEC_SFDP Sep 25 2020 10:47:14'
Nc: Opening flash driver LPC540xx_SPIFI_SFDP.cfx
Nc: Using SOFT reset to run the flash driver
Wc: Boot ROM stall address was not accessed (entry caused by Breakpoint - not a Watchpoint) - read watch #1 address 0x40000040
Nc: Flash variant 'JEDEC_SFDP_EF7018' detected (16MB = 256*64K at 0x10000000)
Nc: Closing flash driver LPC540xx_SPIFI_SFDP.cfx
Nt: Connected: was_reset=false. was_stopped=false
Nt: Loading 'lpcxpresso54018_lwip_ping_bm_Samples.bin' Binary 0x10000000 len 0x138F8
Nc: Opening flash driver LPC540xx_SPIFI_SFDP.cfx (already resident)
Nc: Using SOFT reset to run the flash driver
Nc: Flash variant 'JEDEC_SFDP_EF7018' detected (16MB = 256*64K at 0x10000000)
Ec: op ProgramPage (0x10000000, 0x22B8, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc 32 (0x20)
Nc: Sectors written: 2, unchanged: 0, total: 2
Nc: Closing flash driver LPC540xx_SPIFI_SFDP.cfx
Using crt_emu_cm_redlink On Non-working Board 2, I get this error
Nc: NXP: LPC54018
Nc: DAP stride is 4096 bytes (1024 words)
Nc: Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_SFDP.cfx
Nc: Image 'LPC540xx_JEDEC_SFDP Sep 25 2020 10:47:14'
Nc: Opening flash driver LPC540xx_SPIFI_SFDP.cfx
Nc: Using SOFT reset to run the flash driver
Wc: Boot ROM stall address was not accessed (entry caused by Breakpoint - not a Watchpoint) - read watch #1 address 0x40000040
Nc: Flash variant 'JEDEC_SFDP_EF7018' detected (16MB = 256*64K at 0x10000000)
Nc: Closing flash driver LPC540xx_SPIFI_SFDP.cfx
Nt: Connected: was_reset=false. was_stopped=false
Nt: Loading 'lpcxpresso54018_lwip_ping_bm_Samples.bin' Binary 0x10000000 len 0x138F8
Nc: Opening flash driver LPC540xx_SPIFI_SFDP.cfx (already resident)
Nc: Using SOFT reset to run the flash driver
Nc: Flash variant 'JEDEC_SFDP_EF7018' detected (16MB = 256*64K at 0x10000000)
Ec: op ProgramPage (0x10000000, 0x22B8, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc 112 (0x70)
Nc: Sectors written: 2, unchanged: 0, total: 2
Nc: Closing flash driver LPC540xx_SPIFI_SFDP.cfx
Ed:05: File 'lpcxpresso54018_lwip_ping_bm_Samples.bin' load failure: Ef(49): Flash driver operation gave error.
On the 3rd board, everything is working OK. The jumpers on the Eval boards are all the same.
Below are some more questions that I hope you can give me some advice on:
1. Can I confirm that these Eval boards are now faulty? If yes, do you have any idea what is the specific component on the Eval board that has become faulty. (Actually - these Eval boards was just working OK not being handled - and it just stopped working)
2. Is there any other way to fix the board or get it working?
3. Is this a known issue with the Eval boards? Or is this an issue with the LPC54S018 CPU (unlikely - but just asking)?
Thanks again.