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?
Solved! Go to Solution.
Hello ChrisN,
You can refer to the XIP demos under SDK, for example hello_world_qspi_xip.
Add spifi programming algorithm in Flash Download:
If use J-link debugger, configure as below:
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
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:
Hello ChrisN,
You can refer to the XIP demos under SDK, for example hello_world_qspi_xip.
Add spifi programming algorithm in Flash Download:
If use J-link debugger, configure as below:
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