Hi,@Gavin_Jia
Thank you for your reply.
- Use examples from SDK; (see below)
- The original flexspi_flash_nor_debug can run; (Yes)
- Flexspi_flash_nor_debug can't run after modifying the IO port?(I'm not sure)
by the way RT1011 sdk can debug in the nor flash.
I have tried various methods to set up the RT1061 project, including Keil and IAR. Using the MCUXpresso Config tool and doing modification with hello world SDK. All of them have the same issue. The latest Keil project (see attachment) was built with MCUXpress config. Only added the I2C chip's driver and the main application.
This RT1061 board I got from my colleague, it can debug before. I change the flash to W25Q64 and do some test.
When doing debug in flexspi_nor_flash, it often gets stuck at the following location.
/* invalidate D-Cache */ sets = (uint32_t)(CCSIDR_SETS(ccsidr)); do { ways = (uint32_t)(CCSIDR_WAYS(ccsidr)); do { SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) | ((ways << SCB_DCISW_WAY_Pos) & SCB_DCISW_WAY_Msk) ); #if defined ( __CC_ARM ) __schedule_barrier(); #endif } while (ways-- != 0U); } while(sets-- != 0U); __DSB();