cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F7: Zephyr Ethernet errors after disconnecting and reconnecting ethernet cable

shreyas15
Visitor

I'm trying to disconnect a ethernet cable after flashing a code 
Then I'm getting 
[00:01:50.522,000] <err> net_tcp: net_send_data()
[00:01:52.200,000] <wrn> net_if: iface 1 is down
[00:01:52.200,000] <err> net_tcp: net_send_data()
[00:01:52.480,000] <wrn> net_if: iface 1 is down
[00:01:52.480,000] <err> net_tcp: net_send_data()
[00:01:52.900,000] <wrn> net_if: iface 1 is down
[00:01:52.900,000] <err> net_tcp: net_send_data()
[00:01:53.530,000] <wrn> net_if: iface 1 is down
[00:01:53.530,000] <err> net_tcp: net_send_data()
[00:01:54.475,000] <wrn> net_if: iface 1 is down
This is expected since trying to connect it back
When I reconnect ethernet cable 
Im getting an below error 
[00:01:54.475,000] <wrn> net_if: iface 1 is down
[00:01:54.475,000] <err> net_tcp: net_send_data()
[00:01:55.282,000] <inf> phy_mii: PHY (0) Link speed 100 Mb, full duplex
[00:01:56.212,000] <err> os: ***** USAGE FAULT *****
[00:01:56.212,000] <err> os: Illegal load of EXC_RETURN into PC
[00:01:56.212,000] <err> os: r0/a1: 0xaaaaaaaa r1/a2: 0xaaaaaaaa r2/a3: 0xaaaaaaaa
[00:01:56.212,000] <err> os: r3/a4: 0xaaaaaaaa r12/ip: 0xaaaaaaaa r14/lr: 0xaaaaaaaa
[00:01:56.212,000] <err> os: xpsr: 0xaaaaaa00
[00:01:56.212,000] <err> os: Faulting instruction address (r15/pc): 0xaaaaaaaa
[00:01:56.212,000] <err> os: >>> ZEPHYR FATAL ERROR 34: Unknown error on CPU 0
[00:01:56.212,000] <err> os: Current thread: 0x200233f8 (rx_q[0])
[00:01:56.307,000] <err> os: Halting system
The mcu is going halt what is the reason for this issue?
How to resolve this?

 


1 REPLY 1
mbarg.1
Senior III

which sw are you running ? Some example do not implement interface management, aka cable disconneciton