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

[复制链接]
1611|0
 楼主| USho 发表于 2022-8-23 14:06 | 显示全部楼层 |阅读模式
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(),都不会重启。
这是为什么了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

1

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部
0