LPC54018 XIP with IAR not working

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

LPC54018 XIP with IAR not working

跳至解决方案
1,028 次查看
danielgull
Contributor IV

Hi

Hardware and Software setup:

I am currently working with the "OM40003 LPCXpresso54018 Development Board" and the MCUXpresso "SDK_2.7.0_LPCXpresso54018" with the IAR toolchain. I can compile the "demo_apps" "hello_world" using the IAR toolchain "8.22.1.15700" and flashing with "SEGGER JLink V6.62b, compiled Feb 17 2020 18:41:45"g. In addition to the development board I have mounted the "OM13099: Dual CAN-FD transceiver shield" which allows me to access the FLEXCOMM8 as debug output.

Problem XIP (Execute in place from SPIFI NOR flash) does not work:

The IAR linker file "LPC54018_spifi_flash.icf" provided with this demo app by default flashes the application into the SRAMX and runs fine out of the box without any issues. When I want to run the application from SPIFI. the application does not run out of the box. Attached are both versions of this example for your reference. What am I doing wrong? How can I get the application to run from SPIFI?

Many thanks

Dani

标记 (3)
0 项奖励
回复
1 解答
933 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Daniel Gull,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
To provide the fastest possible support, I'd recommend you to run hello_world_qspi_xip for testing, this demo is an external flash XIP demo, CPU will execute the code in external flash.

pastedImage_1.png

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
3 回复数
933 次查看
danielgull
Contributor IV

Hi Jeremy,

Thanks for the suggestion. I tried the application and could not flash, then I tried a spare Xpresso board and I can now flash the firmware. Seems like the board was defect.

Dani

0 项奖励
回复
933 次查看
danielgull
Contributor IV

Attached also the Debug Log with IAR 8.40.2.22891

0 项奖励
回复
934 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Daniel Gull,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
To provide the fastest possible support, I'd recommend you to run hello_world_qspi_xip for testing, this demo is an external flash XIP demo, CPU will execute the code in external flash.

pastedImage_1.png

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复