修改喂狗芯片为100ms
This commit is contained in:
72
.gitignore
vendored
Normal file
72
.gitignore
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
# ##############################
|
||||
# 1. 忽略所有编译目录(不管层级)
|
||||
# ##############################
|
||||
**/IAR/
|
||||
**/IAR_*/
|
||||
**/Debug/
|
||||
**/FlashDebug/
|
||||
**/Release/
|
||||
**/SES/
|
||||
**/Output/
|
||||
**/settings/
|
||||
|
||||
# ##############################
|
||||
# 2. 忽略所有 IAR/SES 编译产物
|
||||
# ##############################
|
||||
**/*.dep
|
||||
**/*.out
|
||||
**/*.bin
|
||||
**/*.elf
|
||||
**/*.map
|
||||
**/*.lst
|
||||
**/*.o
|
||||
**/*.a
|
||||
**/*.pbi
|
||||
**/*.pbi.dep
|
||||
**/*.xcl
|
||||
**/*.r79
|
||||
**/*.sdf
|
||||
**/*.sim
|
||||
**/*.icf
|
||||
**/*.wsdt
|
||||
**/*.ninja_log
|
||||
|
||||
# ##############################
|
||||
# 3. 强制保留工程和源码文件(兜底!关键!)
|
||||
# ##############################
|
||||
!**/*.eww
|
||||
!**/*.ewp
|
||||
!**/*.ewd
|
||||
!**/*.ewt
|
||||
!**/*.custom_argvars
|
||||
!**/*.c
|
||||
!**/*.h
|
||||
|
||||
# ##############################
|
||||
# 4. 系统/编辑器垃圾文件
|
||||
# ##############################
|
||||
.DS_Store
|
||||
._*
|
||||
Thumbs.db
|
||||
Desktop.ini
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
*.log
|
||||
*.tmp
|
||||
|
||||
# 忽略 IAR 工具生成的 browse/调试文件
|
||||
**/*.pbd
|
||||
**/*.pbdb
|
||||
**/*.sf.*.bat
|
||||
**/*.sf.*.pbi
|
||||
**/*.ninja_log
|
||||
|
||||
# 忽略 IAR 工具链自动生成的调试/浏览文件
|
||||
**/*.ninja_log
|
||||
**/*.pbd
|
||||
**/*.pbd.browse
|
||||
**/*.pbw
|
||||
**/*.cspy.bat
|
||||
**/*.cspy.ps1
|
||||
@@ -98,7 +98,7 @@ sdrv_uart_t g_console_uart;
|
||||
static sdrv_uart_config_t console_uart_config = {
|
||||
.base = DEVICE_BASE(CONSOLE_UART),
|
||||
.irq = DEVICE_INTR(CONSOLE_UART),
|
||||
.baud = 4608000,
|
||||
.baud = 4000000,
|
||||
.data_bits = SDRV_UART_CHAR_8_BITS,
|
||||
.stop_bits = SDRV_UART_STOP_1_BIT,
|
||||
.parity = SDRV_UART_NO_PARITY,
|
||||
|
||||
@@ -184,6 +184,7 @@ 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();
|
||||
@@ -223,13 +224,14 @@ 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();
|
||||
External_wdt_refresh();
|
||||
// ETH<54><48>ʼ<EFBFBD><CABC>
|
||||
board_eth_init();
|
||||
External_wdt_refresh();
|
||||
// wdt_init(WDT_OUTms);
|
||||
// wrbyte_24c02(0x00,1);
|
||||
|
||||
@@ -266,7 +268,8 @@ int main(void)
|
||||
UdpSendToData(UDPCB_1, BOOT_Arr, 2, des_ipaddr, BOOT_TX_PORT);
|
||||
}
|
||||
|
||||
ssdk_printf(SSDK_INFO, "SSDK E3 boot! verison V1.28 \r\n");
|
||||
|
||||
ssdk_printf(SSDK_INFO, "SSDK E3 boot! verison V1.30 \r\n");
|
||||
|
||||
for(;;)
|
||||
{
|
||||
@@ -288,7 +291,7 @@ int main(void)
|
||||
RgWDT500msflg = 0;
|
||||
External_wdt_refresh();
|
||||
|
||||
printf("RUN2F! \r\n");
|
||||
printf("RUN33! \r\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ void External_wdt_refresh(void)
|
||||
// sdrv_wdt_refresh(wdt_type);//ι<><CEB9>
|
||||
|
||||
sdrv_gpio_toggle_pin_output_level(WDTGPIO);
|
||||
// printf("wdtfeed! \r\n");
|
||||
// printf("feed wdt! \r\n");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -184,7 +184,6 @@ static void eth_mac_init(dwc_eth_config_t *cfg, struct eqos_priv *eqos)
|
||||
phy_speed_t speed = (cfg->phy[0].phy_addr == ~0) ?
|
||||
PHY_SPEED_1000 : cfg->phy[0].speed;
|
||||
dwmac_core_init(cfg->base, cfg->mtu, speed, cfg->mac_addr);
|
||||
|
||||
dwmac_mac_rx_queue_mcbc_routing(cfg->base, 0);
|
||||
}
|
||||
|
||||
@@ -286,6 +285,7 @@ static err_t dwc_eth_init(struct net_driver_s *dev)
|
||||
ASSERT(eqos->rx_dma_buf);
|
||||
memset(eqos->rx_dma_buf, 0, EQOS_RX_BUFFER_SIZE);
|
||||
#endif
|
||||
|
||||
//init phy
|
||||
phy_init(ð_dev->phy_bus);
|
||||
|
||||
@@ -776,10 +776,10 @@ int dwc_eth_probe(struct net_driver_s *dev, dwc_eth_config_t *cfg)
|
||||
phy_dev_register(&dw_eth_dev->phy_bus, &cfg->phy[i]);
|
||||
}
|
||||
|
||||
External_wdt_refresh();
|
||||
int ret = netdev_register(dev, NET_LL_ETHERNET);
|
||||
|
||||
External_wdt_refresh();
|
||||
irq_attach(cfg->irq_num, dwc_eth_irq_handler, dev);
|
||||
|
||||
irq_enable(cfg->irq_num);
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "regs_base.h"
|
||||
#include "phy/phy.h"
|
||||
#include "sdrv_mac_lld.h"
|
||||
#include <wdt_refresh.h>
|
||||
|
||||
static uint8_t deafult_mac_addr[6] = {0x00, 0x1f, 0x29, 0x00, 0x12, 0x15};
|
||||
|
||||
@@ -658,7 +657,7 @@ int32_t dwmac_dma_reset(uint32_t regbase)
|
||||
if (!(readl(regbase + DMA_BUS_MODE) & DMA_BUS_MODE_SFT_RESET))
|
||||
break;
|
||||
|
||||
mdelay(1); //20251106 <20><EFBFBD>Ϊ1<CEAA><31>10ʵ<30><CAB5><EFBFBD><EFBFBD>ʱΪ140ms
|
||||
mdelay(1);//20251106 <20><EFBFBD>Ϊ1<CEAA><31>10ʵ<30><CAB5><EFBFBD><EFBFBD>ʱΪ140ms
|
||||
}
|
||||
|
||||
if (limit <= 0) {
|
||||
|
||||
@@ -272,7 +272,7 @@ static int sdrv_hyperbus_wait_idle(struct spi_nor *nor)
|
||||
|
||||
}
|
||||
|
||||
// ssdk_printf(SSDK_INFO, "flash_status = 0x%x \r\n", flash_status);
|
||||
ssdk_printf(SSDK_INFO, "flash_status = 0x%x \r\n", flash_status);
|
||||
|
||||
if ((flash_status & BIT(7)))
|
||||
break;
|
||||
|
||||
@@ -624,7 +624,7 @@ static int sdrv_spibus_wait_idle(struct spi_nor *nor)
|
||||
}
|
||||
}
|
||||
|
||||
// ssdk_printf(SSDK_INFO, "flash_status = 0x%x \r\n", flash_status);
|
||||
ssdk_printf(SSDK_INFO, "flash_status = 0x%x \r\n", flash_status);
|
||||
|
||||
if (!(flash_status & BIT(0)))
|
||||
break;
|
||||
|
||||
@@ -1098,9 +1098,9 @@ static void sdrv_xspi_polling_handler(void *arg)
|
||||
}
|
||||
|
||||
nor->xfer_info_bottom.opt_result = ret ? FLASH_OPT_FAILED : FLASH_OPT_PENDING;
|
||||
// ssdk_printf(SSDK_DEBUG, "xfer_type = %d, xfer size = %lld, xfer result = %d\r\n",
|
||||
// nor->xfer_info_bottom.opt_type == FLASH_OPT_READ, nor->xfer_info_bottom.size,
|
||||
// nor->xfer_info_bottom.opt_result);
|
||||
ssdk_printf(SSDK_DEBUG, "xfer_type = %d, xfer size = %lld, xfer result = %d\r\n",
|
||||
nor->xfer_info_bottom.opt_type == FLASH_OPT_READ, nor->xfer_info_bottom.size,
|
||||
nor->xfer_info_bottom.opt_result);
|
||||
|
||||
if ((nor->xfer_info_bottom.size == 0 || nor->xfer_info_bottom.buf == NULL) &&
|
||||
nor->xfer_info_bottom.opt_result == FLASH_OPT_PENDING) {
|
||||
|
||||
@@ -40,8 +40,10 @@ static err_t netdev_init_fn(struct netif *netif)
|
||||
}
|
||||
|
||||
if (dev->d_init) {
|
||||
dev->d_init(dev);
|
||||
External_wdt_refresh();
|
||||
|
||||
dev->d_init(dev);
|
||||
External_wdt_refresh();
|
||||
}
|
||||
|
||||
return ERR_OK;
|
||||
@@ -58,6 +60,7 @@ err_t netdev_register(struct net_driver_s *dev, enum net_lltype_e lltype)
|
||||
ip_2_ip4(&dev->d_netmask),
|
||||
ip_2_ip4(&dev->d_gateway),
|
||||
dev, netdev_init_fn, netif_input);
|
||||
|
||||
netif_set_default(&dev->d_netif);
|
||||
netif_set_up(&dev->d_netif);
|
||||
|
||||
|
||||
BIN
tools/sdtools/sdtools.rar
Normal file
BIN
tools/sdtools/sdtools.rar
Normal file
Binary file not shown.
BIN
tools/sdtools/sfs/sfs.rar
Normal file
BIN
tools/sdtools/sfs/sfs.rar
Normal file
Binary file not shown.
Reference in New Issue
Block a user