LPC54018JxM debugging internal flash example for Keil MDK-ARM

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

LPC54018JxM debugging internal flash example for Keil MDK-ARM

跳至解决方案
1,617 次查看
ChrisN
Contributor II

I have to port an application to this chip that has on-chip SPIFI flash. There are MCUX example that work fine on my board and I can debug from flash. But none of the examples for this chip for MDK-ARM does that, not the ones in the SDK nor the ones in the Keil packs. They all use a debug init file jlink_sramx_debug.ini for debugging from RAM, and don't seem to program the flash.

Also, the SPIFI descriptors in the startup only include the W25Q128JVFM and I don't know if that's a good fit for the on-chip W25Q32JV-DTR.

Am I missing something? Is there an example for Keil that does XIP debugging?

 

0 项奖励
回复
1 解答
1,606 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ChrisN,

You can refer to the XIP demos under SDK, for example hello_world_qspi_xip.

Add spifi programming algorithm in Flash Download:

Alice_Yang_0-1633746268334.png

 

If use J-link debugger,  configure as below:

Alice_Yang_1-1633746345872.png

 

About the two SPIFI flash, you can check their datasheet, and try to use. If there is no problem when using MCUXpresso IDE, It also should be work with KEIL.

 

BR

Alice

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,598 次查看
ChrisN
Contributor II

Thank you, Alice. Somehow I had missed these examples and they should be a good starting point.

Something rather important seems to be also this linker setting to make sure that the application is in fact linked to the flash memory:

ChrisN_0-1633981821371.png

 

0 项奖励
回复
1,607 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ChrisN,

You can refer to the XIP demos under SDK, for example hello_world_qspi_xip.

Add spifi programming algorithm in Flash Download:

Alice_Yang_0-1633746268334.png

 

If use J-link debugger,  configure as below:

Alice_Yang_1-1633746345872.png

 

About the two SPIFI flash, you can check their datasheet, and try to use. If there is no problem when using MCUXpresso IDE, It also should be work with KEIL.

 

BR

Alice

 

0 项奖励
回复