AnsweredAssumed Answered

Issues with mcuxpresso debugger failed to run SPIFI driver.

Question asked by Alex Leung on Jul 31, 2019
Latest reply on Jul 31, 2019 by Con Verse


I was stuck by Issues complained about driver LCP5460X_spifi_generic.cfx when run debugger under MCUXpresso IDE (the latest version).

i use LCPXpresso54618 development board and currently working on the SPIFI logics to develop a flash file system.

When I stopped the debugger and went back to make few changes in code, after then when I ran the debugger, it failed to startup with following error message, certainly there were bugs in my previous code that might corrupt some data in the SPI flash chip on the evaluation board, but it should not corrupt the external flash driver though. Please advise how to recover from it so I can continue to debug my code.





Capture from the console to show the startup driver issue.


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: LPC54618J512
DAP stride is 4096 bytes (1024 words)
Inspected v.2 On-chip Flash Memory LPC5460x_256K.cfx
Image 'LPC5460x (256K Flash) Aug 23 2017 12:13:28'
Inspected v.2 External Flash Device on SPI LPC5460x_SPIFI_GENERIC.cfx
Image 'LPC5460x Generic SPIFI Sep 25 2017 16:15:07'
Opening flash driver LPC5460x_SPIFI_GENERIC.cfx
Sending VECTRESET to run flash driver
Driver V.2 dynamic startup failed - driver Init provided no flash parameters
Flash Driver V.2 startup failed - rc Ef(55): Dynamic flash driver startup failed to provide flash parameters.
Terminate (0x0, 0x0, 0x0) status 0x40 - driver reports init failure - EXTSPI driver rc 13 - No supported SPIFI device found
chip initialization failed - Ef(55): Dynamic flash driver startup failed to provide flash parameters.
failed to initialize flash driver LPC5460x_SPIFI_GENERIC.cfx
( 65) Chip Setup Complete
(100) Target Connection Failed
Unable to perform operation!
Command failed with exit code 1