Sorry for the poor description. Let me clarify. The actual function call SCB_DisableDCache(); is the problem. Stepping over SCB_DisableDCache() takes about 2 minutes to complete.
To recreate: use mcuXpresso 11.4 with SDK 2.10.0 with MIMXRT1064xxxA. Create a new hello_world SDK project for the MIMXRT1064-EVK.
Add SCB_DisableDCache(); before the printf line. Debug the project and step over each line. Stepping over SCB_DisableDCache(); will take 2 minutes.
Here is an example of the code:
int main(void)
{
char ch;
/* Init board hardware. */
BOARD_ConfigMPU();
BOARD_InitBootPins();
BOARD_InitBootClocks();
BOARD_InitDebugConsole();
/* stepping over SCB_DisableDCache takes 2 minutes! */
SCB_DisableDCache();
PRINTF("hello world.\r\n");
while (1)
{
ch = GETCHAR();
PUTCHAR(ch);
}
}
This issue is discussed at https://github.com/ARM-software/CMSIS_5/issues/620
On line 2322 of core_cm7.h of SDK 2.10, it appears an attempt is being made to overcome this issue, but it doesn't seem to work.
Additionally, due to the issue I describe in this post ( https://community.nxp.com/t5/i-MX-RT/GCC-Optimization-Level-broken-by-core-cm7-h-in-SDK-2-10/m-p/135... ) the GCC Optimization levels are broken on all SDK 2.10 that uses core_cm7.h