问答

汇集网友智慧,解决技术难题

21ic问答首页 - 裸板跑程序,GD32F427,定时重启

gd32f4xx

裸板跑程序,GD32F427,定时重启

USho2022-08-23
int main(void)
{
               
                NVIC_Configuration();
                systick_config();
                //_startup_iwdg();
                uart_init();
                printf("uart init ok\r\n");
    while (1)
    {
                                int i = 0, j = 0;
                                //fwdgt_counter_reload();
        printf("console device init ok\r\n");
                                rt_hw_ms_delay(100);
    }
}

在不启用软件看门狗时,程序会定时重启,程序相当简单。在启用看门狗后,甚至只是调用fwdgt_counter_reload(),都不会重启。
这是为什么了
回答 +关注 6
1050人浏览 0人回答问题 分享 举报
0 个回答

您需要登录后才可以回复 登录 | 注册