LPC4370 - issue with custom mounted PCB, programming W25Q80DVSSIG flash chip

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC4370 - issue with custom mounted PCB, programming W25Q80DVSSIG flash chip

692 次查看
QM
Contributor II

Hi NXP, 

I have recently designed a custom PCB using a LPC4370 chip which essentially replicates the LPC-link2 schematic except for the flash chip. The W25Q80BVSSIG that was on the LPC-link2 has been made obsolete, so I replaced it with a W25Q80DVSSIG.

However when attempting to upload code onto my board for the first time I got the following error:

---------------------------------------------------------------------------------------------------------------------------------------

MCUXpresso IDE RedlinkMulti Driver v11.1 (Feb 24 2020 12:57:53 - crt_emu_cm_redlink build 11)

Found chip XML file in /Users/quinn/Desktop/desktop/UNI/Masters/software/MCUXpresso Testing Firmware backup2/labtool-master/fw/Debug/LPC4370.xml

Reconnected to existing LinkServer process.

Using memory from core 0 after searching for a good core

debug interface type      = Cortex-M3/4 (DAP DP ID 4BA00477) over JTAG 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: 4BA00477. CpuID: 00000C24. Info: <None>

Debug protocol: JTAG. 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: LPC4370

DAP stride is 4096 bytes (1024 words)

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

Image 'LPC18/43 Generic SPIFI Feb 17 2020 14:00:25'

Opening flash driver LPC18_43_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

---------------------------------------------------------------------------------------------------------------------------------------

This is my first time working with a PCB with a microcontroller and external flash that I have designed myself so I am wondering if there are some steps I need to complete before attempting to upload code such as first using the GUI Flash Tool, or adjusting some settings in MCUXpresso to have the LPC4370 work with this new flash chip. Any advice on how to proceed would be much appreciated, thanks. 

Regards, 

Quinn

标签 (1)
0 项奖励
回复
5 回复数

111 次查看
QM
Contributor II

Hi Xiangjun, 

I never got the LPC4370 chip working but I now know that the W25Q80DVSSIG flash chip is compatible with the LPC4370, so that is not my issue. 

Is there some specific process I need to follow to boot an LPC4370 for the first time and program flash? I know there are a number of different boot modes available but in my current design I have not connected the USB or UART0 pins. The only pins I have connected to communicate with the chip are the JTAG pins (TMS, TCK, TDO, TDI, NRESET), and UART2 (P2_11, P2_10). Then there is the SPIFI connections to the flash. 

When debugging the same code onto an LPC Link2 via JTAG it works fine.

Note, there could be some issue with my soldering but I am trying to rule obvious things out as it seems to draw the correct current and sit in a standby mode blinking its BOOT0 LED at 1 Hz.

Thanks, 

QM

0 项奖励
回复

651 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Pls change SPI LPC18_43_SPIFI_GENERIC.cfx to SPI LPC18_43_SPIFI_SFDP.cfx, the two files are located at:

C:\nxp\MCUXpressoIDE_11.9.0_2144\ide\LinkServer\binaries\Flash

You can click the red circle to change the *.cfx file. I only use LPC8xx as a example.

Hope it can help you

BR

XiangJun rong

 

xiangjun_rong_0-1715586629201.png

 

 

0 项奖励
回复

626 次查看
QM
Contributor II

Hi XiangJun, 

Thanks for your response. This did not work and I got the same error as above. Anything else I can try? Is there somewhere I can download the correct flash driver for my new flash chip?

Regards, 

Quinn

0 项奖励
回复

575 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

If the two *.cfx files the MCUXPresso tools integrated can not work because of new spifi flash chip, I suppose that you have to develop the project to generate the *.cfx which adapts to the new spifi flash.

Hope it can help you

BR

Xiangjun Rong

0 项奖励
回复

39 次查看
QM
Contributor II

Hi Xiangjun, 

I never got the LPC4370 chip working but I now know that the W25Q80DVSSIG flash chip is compatible with the LPC4370, so that is not my issue. 

Is there some specific process I need to follow to boot an LPC4370 for the first time and program flash? I know there are a number of different boot modes available but in my current design I have not connected the USB or UART0 pins. The only pins I have connected to communicate with the chip are the JTAG pins (TMS, TCK, TDO, TDI, NRESET), and UART2 (P2_11, P2_10). Then there is the SPIFI connections to the flash. 

When debugging the same code onto an LPC Link2 via JTAG it works fine.

Note, there could be some issue with my soldering but I am trying to rule obvious things out as it seems to draw the correct current and sit in a standby mode blinking its BOOT0 LED at 1 Hz.

Thanks, 

QM

标记 (1)
0 项奖励
回复