修改30ms喂狗,解决初始化超时问题
This commit is contained in:
@@ -184,7 +184,6 @@ int main(void)
|
||||
|
||||
sdrv_gpio_set_pin_output_level(GPIO_B9, 1); //<2F><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
|
||||
|
||||
External_wdt_refresh();
|
||||
|
||||
// Timer<65><72>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ṩLWIP sys_now<6F>ӿڻ<D3BF>ȡ<EFBFBD><C8A1>ǰʱ<C7B0><CAB1>
|
||||
btm_init();
|
||||
@@ -224,20 +223,20 @@ int main(void)
|
||||
sdrv_gpio_set_pin_output_level(GPIO_Y1, 0); //E2дʹ<D0B4><CAB9>
|
||||
|
||||
External_wdt_refresh();
|
||||
printf("feed 1! \r\n");
|
||||
|
||||
board_norflash_init();//flash <20><>ʼ<EFBFBD><CABC>
|
||||
External_wdt_refresh();
|
||||
initSpi();
|
||||
|
||||
initSpi();
|
||||
// ETH<54><48>ʼ<EFBFBD><CABC>
|
||||
board_eth_init();
|
||||
External_wdt_refresh();
|
||||
// wdt_init(WDT_OUTms);
|
||||
// wrbyte_24c02(0x00,1);
|
||||
|
||||
UDP_Echo_Init(UDPCB_1, udp_Callback_1, DOWNLOAR_PORT);
|
||||
|
||||
ethernetInterfaceInit();
|
||||
External_wdt_refresh();
|
||||
// External_wdt_refresh();
|
||||
e2_boot_arr[0] = rdbyte_24c02(APP_VERSION_E2adr);
|
||||
e2_boot_arr[1] = rdbyte_24c02(APP_VERSION_E2adr+1);
|
||||
e2_boot_arr[2] = rdbyte_24c02(APP_VERSION_E2adr+2);
|
||||
@@ -255,7 +254,7 @@ int main(void)
|
||||
des_ipaddr[1] = rdbyte_24c02(BOOT_DES_IP+1);//<2F><>ȡ<EFBFBD><C8A1><EFBFBD>ص<EFBFBD>IP
|
||||
des_ipaddr[2] = rdbyte_24c02(BOOT_DES_IP+2);//<2F><>ȡ<EFBFBD><C8A1><EFBFBD>ص<EFBFBD>IP
|
||||
des_ipaddr[3] = rdbyte_24c02(BOOT_DES_IP+3);//<2F><>ȡ<EFBFBD><C8A1><EFBFBD>ص<EFBFBD>IP
|
||||
External_wdt_refresh();
|
||||
// External_wdt_refresh();
|
||||
|
||||
if(g_systemDataRecord.canBootloaderUpgrade == NORMAL_ON)//0<><30><EFBFBD>ǽ<EFBFBD><C7BD><EFBFBD>APP<50><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>BOOT<4F><54><EFBFBD><EFBFBD>
|
||||
{
|
||||
@@ -267,7 +266,7 @@ int main(void)
|
||||
UdpSendToData(UDPCB_1, BOOT_Arr, 2, des_ipaddr, BOOT_TX_PORT);
|
||||
}
|
||||
|
||||
ssdk_printf(SSDK_INFO, "SSDK E3 boot! verison V1.24 \r\n");
|
||||
ssdk_printf(SSDK_INFO, "SSDK E3 boot! verison V1.28 \r\n");
|
||||
|
||||
for(;;)
|
||||
{
|
||||
@@ -289,7 +288,7 @@ int main(void)
|
||||
RgWDT500msflg = 0;
|
||||
External_wdt_refresh();
|
||||
|
||||
printf("RUN24! \r\n");
|
||||
printf("RUN2F! \r\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,6 +72,7 @@ void External_wdt_refresh(void)
|
||||
// sdrv_wdt_refresh(wdt_type);//ι<><CEB9>
|
||||
|
||||
sdrv_gpio_toggle_pin_output_level(WDTGPIO);
|
||||
// printf("wdtfeed! \r\n");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user