mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-30 02:51:33 +08:00
在没插好网线,开发板就上电时,以太网硬件初始化返回失败,导致下一步的以外网DMA环结构和以太网中断都没有被初始化好。等到网线被插好之后,以太网接收数据线程堆栈溢出,程序发生奔溃。
This commit is contained in:
parent
6b4cbc6715
commit
cf4f42ea19
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user