I have am working on an issue with our device. First here are the particulars
Micro: STM32F427
LwIP: 2.0.3
WolfSSL: 3.15.3
Microchip managed switch KSZ8863RLLI.
If one removes the Ethernet cable from our device (typically during heavy traffic) the network is not usable for many minutes upon reconnecting the Ethernet cable. I have been
printing WolfSSL debug messages and Lwip debug messages without solving the issue yet.
No, we do not have the ability to “hardware” determine when the cable is unplugged. Our system has these devices “daisy chained” so one would need to ping to determine if the network
is available. The last good trace I got is this (then my laptop crashed)
ip4_route: No route to 172.20.0.14
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
tcp_slowtmr: processing active pcb
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
tcp_slowtmr: processing active pcb
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
tcp_slowtmr: polling application
b
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
ip4_route: No route to 172.20.0.14
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
[512942] Link up? 0
tcp_slowtmr: processing active pcb
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
tcp_slowtmr: processing active pcb
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
tcp_slowtmr: polling application
b
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
ip4_route: No route to 172.20.0.14
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
tcp_slowtmr: processing active pcb
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
tcp_slowtmr: processing active pcb
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
tcp_slowtmr: polling application
b
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
ip4_route: No route to 172.20.0.14
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
[514966] Link up? 0
tcp_slowtmr: processing active pcb
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
tcp_slowtmr: processing active pcb
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
tcp_slowtmr: polling application
b
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
ip4_route: No route to 172.20.0.14
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
tcp_slowtmr: processing active pcb
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
[517070] Link up? 0
tcp_slowtmr: processing active pcb
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
tcp_slowtmr: polling application
b
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
ip4_route: No route to 172.20.0.14
data="">
=0x0)
sum)
4ac (0x14ac, 0x14ac, 0x64080000)
)
x64080000)
ac, 0x14ac, 0x64080000)
JSH˛ÓdĘÚ@¨0Ď$ü‡ouóćq
T
Any ideas would be greatly appreciated.
Dan