hi all,
I use hello world example to test software reset on rt1170 demo board.
If using qspi flash, reset is successful and helloworld can be printed in a loop in the serial port. But when enabling octal flash, helloworld is only printed once in the serial port, which seems that reset is not successful.
Could you provide some direction to solve the problem?
int main(void)
{
char ch;
__enable_irq();
/* Init board hardware. */
BOARD_ConfigMPU();
BOARD_InitPins();
BOARD_BootClockRUN();
BOARD_InitDebugConsole();
SCB_DisableICache();
GPIO_PinWrite(GPIO9, 03U, 0U);
// Delay some time to reset external flash with Flash_RST pin
for (uint32_t i = 0; i < 60000; i++)
__asm volatile ("nop");
GPIO_PinWrite(GPIO9, 03U, 1U);
SCB_EnableICache();
PRINTF("hello world.\r\n");
__disable_irq();
NVIC_SystemReset();
PRINTF("1111111111111111111111111111.\r\n");
while (1)
{
//ch = GETCHAR();
//PUTCHAR(ch);
PRINTF("2222.\r\n");
}
}
Hi @pupu_ji
Can you give me more details?
"But when enabling octal flash, helloworld is only printed once in the serial port"
Do you mean that you change Octal flash?
BR
Hang