In order to test XIP, we've used the NOR FLASH from the RT1015 EVK on our board, but XIP doesn't seem to work.
If we allocate our code in RAM, it works fine (hello world demo, our custom tests, the flexspi_nor_polling_transfer demo, etc).
When switching to build code allocated in FLASH (or just using the demos out of the box, which are set to XIP), the code appears to download to the flash without error, but the debugger never reaches main...
We've verified the FLASH is alive and responding thanks to the flexspi_nor_polling_transfer demo...
Why would the debugger never hit main() and just show the debugger running?
Allocation of the sdk hello_world demo (w/o using DebugConsole):
Memory region Used Size Region Size %age Used
BOARD_FLASH: 20280 B 16 MB 0.12%
SRAM_DTC: 4324 B 32 KB 13.20%
SRAM_ITC: 0 GB 32 KB 0.00%
SRAM_OC: 0 GB 64 KB 0.00%
When I hit pause - usually it pauses on assembly - (suspends at 0x20f470),
Once i've seen interrupt failed - "Failed to execute MI command"
Solved! Go to Solution.
Hi variable_andrew ,
Thanks for your reply.
1) I didn't think about the boot side - for XIP do we need the BOOT_CFG and related pins set a certain way?
-- Yes, it needs to set the BOOT_CFG values or related pins in a certain way to enable the XIP mode.
Reply
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.
-------------------------------------------------------------------------------
Hi variable_andrew ,
Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
According to your reply, the custom board seems a clone of the MIMXRT1015 EVK BOARD, however, it can't boot up from the QSPI flash, is it right? And does all your board encounter this same issue?
I was wondering if you can share the schematic of your board, as I consider it's related to the hardware design.
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.
-------------------------------------------------------------------------------
Hi jeremyzhou,
I believe your assumption is correct: our board (w/ regards to FlexSPI & JTAG) is a clone of the EVK's FlexSPI and direct JTAG pins (not using the USB-JTAG chip).
And yes - it seems we can download to the flash, but not run.
I didn't think about the boot side - for XIP do we need the BOOT_CFG and related pins set a certain way?
I'll try and get the schematics to you later today.
Hi variable_andrew ,
Thanks for your reply.
1) I didn't think about the boot side - for XIP do we need the BOOT_CFG and related pins set a certain way?
-- Yes, it needs to set the BOOT_CFG values or related pins in a certain way to enable the XIP mode.
Reply
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.
-------------------------------------------------------------------------------