Error

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

Error

933 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
5 Replies

833 Views
NVazquez
Contributor IV

Does anyone know if I can use LPCScrypt for lpc54016?

 

If not are there any similar applications I can use to load the code on external spi flash via USB?

0 Kudos

828 Views
Sukumar_M
Contributor I

you can change Driver SPIFI GENERIC. Easy Way to solve this problem.

0 Kudos

914 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI

Please follow below photo to make sure all jumper setting is correct.

Try another cable and computer. to make sure the problem is not related with a broken cable or PC problem.

ZhangJennie_0-1646645284554.jpeg

If still can't connect, use LPCScrypt to update on board debug firmware.

https://www.nxp.com/design/microcontrollers-developer-resources/lpcscrypt-v2-1-2:LPCSCRYPT

Try both CMSIS-DAP and Jlink firmware.  Is either of them work for you?

 

Have a nice day,

Jun Zhang

 

 

0 Kudos

891 Views
Sukumar_M
Contributor I

Thank you ,i have use another way its better

change Flash Driver SPIFI_SDFC INTO SPIFI_GENERIC one to flash problem solved

0 Kudos

886 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Good to know.

Thanks for the sharing!

Have a nice day,

Jun Zhang

0 Kudos