I am having an issue with the flexspi_hyper_flash_polling_transfer example whilst debugging with a JLINK on the RT1060EVK.
My project is setup as follows
- Application is running from external SDRAM. (0x80000000)
- Jlink selected as the launch configuration.
- JLINK script is is set to the SDRAM_Init.jlinkscript
- Connection is SWD
- EVK hardware has been modified to use Hyperflash instead of default QSPI
When I run the demo it fails on page read failure when using JLINK.
FLEXSPI hyperflash example successfully.
FLEXSPI hyperflash example started!
Debugging with JLINK...
Found the HyperFlash by CFI
loop nummber: 0
Page read failure !
Page read failure !
Page read failure !
Page read failure !
Page read failure !
If I change the debug launch to LinkServer with SDRAM connect script it works as expected
FLEXSPI hyperflash example successfully.
FLEXSPI hyperflash example started!
Debugging with LinkSserver...
Found the HyperFlash by CFI
loop nummber: 0
loop nummber: 1
loop nummber: 2
loop nummber: 3
loop nummber: 4
loop nummber: 5
So my question is, why does it work for one and not the other? Is there some other setting that I am missing or do not have configured? Is there some preprocessor setting that I need to make it work for JLINK? I have added SKIP_SYSCLK_INIT.