在没插好网线,开发板就上电时,以太网硬件初始化返回失败,导致下一步的以外网DMA环结构和以太网中断都没有被初始化好。等到网线被插好之后,以太网接收数据线程堆栈溢出,程序发生奔溃。

This commit is contained in:
laoyening 2019-08-12 17:47:45 +08:00
parent 6b4cbc6715
commit cf4f42ea19
1 changed files with 0 additions and 1 deletions

View File

@ -102,7 +102,6 @@ static rt_err_t rt_stm32_eth_init(rt_device_t dev)
if (HAL_ETH_Init(&EthHandle) != HAL_OK)
{
LOG_E("eth hardware init failed");
return -RT_ERROR;
}
else
{