SW reset on RT1170 with octal flash enable but failed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SW reset on RT1170 with octal flash enable but failed

629件の閲覧回数
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 返信

611件の閲覧回数
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 件の賞賛
返信