LPC54018JxM debugging internal flash example for Keil MDK-ARM

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

LPC54018JxM debugging internal flash example for Keil MDK-ARM

Jump to solution
861 Views
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 Kudos
1 Solution
850 Views
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

 

View solution in original post

0 Kudos
2 Replies
842 Views
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 Kudos
851 Views
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 Kudos