Writing Flash ended with an error.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Writing Flash ended with an error.

414 Views
Sukumar_M
Contributor I

Hi, 

I'm Sukumar . I have some problem on LPC54018 OM40003 EVK . First board same problem occur so new board changed but now this board also same problem occurs.so please anyone say how to solve this problem.
I'm new from MCUxpresso so please anyone give me solution.

 

 

 

Executing flash operation 'Program' (Program file into flash: lpcxpresso54018_gpio_led_output.axf) - Fri Mar 04 11:55:09 IST 2022
Checking MCU info...
Scanning for targets...
Executing flash action...
MCUXpresso IDE RedlinkMulti Driver v11.4 (Sep 13 2021 15:04:52 - crt_emu_cm_redlink.exe build 16)
( 0) Reading remote configuration
Wc(03). No cache support.
Found chip XML file in D:/sukumar/New folder/lpcxpresso54018_gpio_led_output/Debug\LPC54018.xml
( 5) Remote configuration complete
Reconnected to existing LinkServer process.
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.361 (NXP Semiconductors)
Serial Number: HSA4AQER
VID:PID: 1FC9:0090
USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#7&979c589&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Using memory from core 0 after searching for a good core
On debug connection - use system reset, stalling when 0x40000040 is accessed
Retask read watchpoint 1 at 0x40000040 to use for boot ROM stall
Boot ROM stalled - at read watch #1 address 0x40000040
( 30) Emulator Connected
( 40) Debug Halt
( 50) CPU ID
debug interface type = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0
processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0
number of h/w breakpoints = 6
number of flash patches = 2
number of h/w watchpoints = 4
Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled.
Content of CoreSight Debug ROM(s):
RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1)
ROM 1 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0)
ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0)
ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0)
ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0)
ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU
ROM 1 E0041000: CID B105900D PID 04000BB925 CSt ETM type 0x13 Trace Source - Core
NXP: LPC54018
DAP stride is 4096 bytes (1024 words)
Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_SFDP.cfx
Image 'LPC540xx_JEDEC_SFDP Sep 14 2021 15:10:12'
Opening flash driver LPC540xx_SPIFI_SFDP.cfx
Using SOFT reset to run the flash driver
Flash variant 'JEDEC_SFDP_EF7018' detected (16MB = 256*64K at 0x10000000)
Closing flash driver LPC540xx_SPIFI_SFDP.cfx
( 65) Chip Setup Complete
Connected: was_reset=false. was_stopped=true
( 70) License Check Complete
Loading 'lpcxpresso54018_gpio_led_output.axf' ELF 0x10000000 len 0x2DFC
Opening flash driver LPC540xx_SPIFI_SFDP.cfx (already resident)
Using SOFT reset to run the flash driver
Flash variant 'JEDEC_SFDP_EF7018' detected (16MB = 256*64K at 0x10000000)
Writing 11772 bytes to address 0x10000000 in Flash
1 of 1 ( 0) Writing sectors 0-0 at 0x10000000 with 11772 bytes
( 0) at 10000000: 0 bytes - 0/11772
ProgramPage (0x10000000, 0x22B8, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc -20 (0xFFFFFFEC)
Sectors written: 1, unchanged: 0, total: 1
Closing flash driver LPC540xx_SPIFI_SFDP.cfx
(100) Writing Flash ended with an error.
File 'lpcxpresso54018_gpio_led_output.axf' load failure: Ef(49): Flash driver operation gave error.
(100) Target Connection Failed
Unable to perform operation!
Command failed with exit code 1

0 Kudos
1 Reply

392 Views
ZhangJennie
NXP TechSupport
NXP TechSupport
0 Kudos