LPC54628 fail to run demo

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

LPC54628 fail to run demo

Jump to solution
376 Views
Shashank3
NXP Employee
NXP Employee

Hi, 

I am unable to program the the board with the demo app. upon debug operation,
the console log is as follows

MCUXpresso IDE RedlinkMulti Driver v11.9 (Dec 11 2023 18:02:10 - crt_emu_cm_redlink build 2)

Found chip XML file in C:/Users/nxf97287/Documents/MCUXpressoIDE_11.9.0_2144/workspace/lpcxpresso54628_hello_world/Debug\LPC54628J512.xml

Reconnected to existing LinkServer process.

Probe Firmware: LPC-LINK2 CMSIS-DAP V5.460 (NXP Semiconductors)

Serial Number: ERAVBQIQ

VID:PID: 1FC9:0090

USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#7&33107fe9&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}

Using memory from core 0 after searching for a good core

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: Disabled.

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: LPC54628J512

DAP stride is 4096 bytes (1024 words)

Inspected v.2 On-chip Flash Memory LPC5460x_512K.cfx

Image 'LPC5460x (512K Flash) Dec 12 2023 17:18:07'

Inspected v.2 External Flash Device on SPI LPC546xx_SPIFI_SFDP.cfx

Image 'LPC540xx_JEDEC_SFDP Dec 12 2023 17:20:06'

Opening flash driver LPC546xx_SPIFI_SFDP.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 15 (0xF)

chip initialization failed - Ef(55): Dynamic flash driver startup failed to provide flash parameters.

failed to initialize flash driver LPC546xx_SPIFI_SFDP.cfx

I have reinstalled the IDE and also the LPC drivers and SDK, but it did not resolve the issue.
I also ran the program LPC-link2 program.

please help me resolve this issue,

Thank you,
Shashank

 

0 Kudos
1 Solution
365 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @Shashank3 

I hope you are doing well. 

From your log I see that you are using the LPC54628 Hello world demo. However, are you using our evaluation board? and the hello world demo without any modifications?

If you do, please make sure to select the correct flash driver. Apparently you have selected the  LPC546xx_SPIFI_SFDP.cfx driver, which is for an external QSPI memory. Can not tell if this ok, or not. But the demo uses the on-chip program flash and the dedicated flash  driver for this on-chip flash.

diego_charles_0-1706722619508.pngdiego_charles_1-1706722652152.png

If the problem still appears, I recommed setting the MCU into ISP mode and do a mass erase. Let me know if you need more help on this.

Best regards

Diego

 

View solution in original post

0 Kudos
3 Replies
366 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @Shashank3 

I hope you are doing well. 

From your log I see that you are using the LPC54628 Hello world demo. However, are you using our evaluation board? and the hello world demo without any modifications?

If you do, please make sure to select the correct flash driver. Apparently you have selected the  LPC546xx_SPIFI_SFDP.cfx driver, which is for an external QSPI memory. Can not tell if this ok, or not. But the demo uses the on-chip program flash and the dedicated flash  driver for this on-chip flash.

diego_charles_0-1706722619508.pngdiego_charles_1-1706722652152.png

If the problem still appears, I recommed setting the MCU into ISP mode and do a mass erase. Let me know if you need more help on this.

Best regards

Diego

 

0 Kudos
359 Views
Shashank3
NXP Employee
NXP Employee

Hi @diego_charles ,

I changed the driver to LPC5460x_512K.cfx and the example code works now, but won't it cause an issue as the device is LPC54628j512? 

Thanks, 
Shashank 

0 Kudos
345 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @Shashank3 

No issues, that is perfectly fine. This LPC5460x_512K.cfx  flash driver comes as the default one for most of SDK examples. Also, LPC546xxx family is highly compatible.

Diego