SW reset on RT1170 with octal flash enable but failed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SW reset on RT1170 with octal flash enable but failed

616 次查看
pupu_ji
Contributor II

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");
    }
}

 

标签 (2)
0 项奖励
回复
1 回复

598 次查看
Harry_Zhang
NXP Employee
NXP Employee

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

0 项奖励
回复