谢谢关注此问题!!!
放到main里面初始化了,并且延迟了10秒,问题还是存在,一下是堆栈信息:
0x0804fc4e
rt_malloc
E:rt-thread-4.0.5-d16-20220615src/mem.c:349
0x0804de90
rt_sem_take
E:rt-thread-4.0.5-d16-20220615src/ipc.c:489
0x08079542
mem_malloc
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcarch/sys_arch.c:735
0x0806be46
dhcp_start
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srccoreipv4/dhcp.c:757
0x0806dc0c
eth_netif_device_init
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcnetif/ethernetif.c:488
0x08066c08
netif_add
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srccore/netif.c:378
0x0806ace8
netifapi_do_netif_add
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcapi/netifapi.c:67
0x0806b0d6
tcpip_api_call
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcapi/tcpip.c:478
0x0806ad8c
netifapi_netif_add
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcapi/netifapi.c:253
0x0806dd34
eth_device_init_with_flag
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcnetif/ethernetif.c:570
0x0806dd7e
eth_device_init
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcnetif/ethernetif.c:585
0x08040e12
rt_hw_stm32_eth_init
E:rt-thread-4.0.5-d16-20220615bspstm32librariesHAL_Drivers/drv_eth.c:616
0x08040f1c
rt_eth_init
E:rt-thread-4.0.5-d16-20220615bspstm32librariesHAL_Drivers/drv_eth.c:675
0x08040f20
rt_eth_init
E:rt-thread-4.0.5-d16-20220615bspstm32librariesHAL_Drivers/drv_eth.c:675
0x08028332
main
E:rt-thread-4.0.5-d16-20220615bspstm32stm32f407-evc-d16applications/main.c:200
0x0804f8a2
main_thread_entry
E:rt-thread-4.0.5-d16-20220615src/components.c:200
我又检查了我做的修改,在at_socket.c文件的1298行 sa4->type = IPADDR_TYPE_V4;
被我注释了,这行编译不通过,对应结构体里面也没有这个字段。不知道您那边是否也这样?
谢谢关注此问题!!!
放到main里面初始化了,并且延迟了10秒,问题还是存在,一下是堆栈信息:
0x0804fc4e
rt_malloc
E:rt-thread-4.0.5-d16-20220615src/mem.c:349
0x0804de90
rt_sem_take
E:rt-thread-4.0.5-d16-20220615src/ipc.c:489
0x08079542
mem_malloc
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcarch/sys_arch.c:735
0x0806be46
dhcp_start
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srccoreipv4/dhcp.c:757
0x0806dc0c
eth_netif_device_init
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcnetif/ethernetif.c:488
0x08066c08
netif_add
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srccore/netif.c:378
0x0806ace8
netifapi_do_netif_add
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcapi/netifapi.c:67
0x0806b0d6
tcpip_api_call
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcapi/tcpip.c:478
0x0806ad8c
netifapi_netif_add
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcapi/netifapi.c:253
0x0806dd34
eth_device_init_with_flag
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcnetif/ethernetif.c:570
0x0806dd7e
eth_device_init
E:rt-thread-4.0.5-d16-20220615componentsnetlwip-2.1.2srcnetif/ethernetif.c:585
0x08040e12
rt_hw_stm32_eth_init
E:rt-thread-4.0.5-d16-20220615bspstm32librariesHAL_Drivers/drv_eth.c:616
0x08040f1c
rt_eth_init
E:rt-thread-4.0.5-d16-20220615bspstm32librariesHAL_Drivers/drv_eth.c:675
0x08040f20
rt_eth_init
E:rt-thread-4.0.5-d16-20220615bspstm32librariesHAL_Drivers/drv_eth.c:675
0x08028332
main
E:rt-thread-4.0.5-d16-20220615bspstm32stm32f407-evc-d16applications/main.c:200
0x0804f8a2
main_thread_entry
E:rt-thread-4.0.5-d16-20220615src/components.c:200
我又检查了我做的修改,在at_socket.c文件的1298行 sa4->type = IPADDR_TYPE_V4;
被我注释了,这行编译不通过,对应结构体里面也没有这个字段。不知道您那边是否也这样?
举报