LPC54018JxM debugging internal flash example for Keil MDK-ARM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC54018JxM debugging internal flash example for Keil MDK-ARM

ソリューションへジャンプ
1,625件の閲覧回数
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,614件の閲覧回数
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,606件の閲覧回数
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,615件の閲覧回数
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 件の賞賛
返信