I successfully compiled the firmware and am able to establish UDP and TCP connections.
The problem I'm having is how to resume from a "soft reboot", or ctrl-D, from the REPL.
I've seen several discussions on this issue regarding the ESP boards and WiFi, but nothing that helps me.
After a power-on reset or machine.reset(), I can initialize the LAN module and proceed to use networking.
But after a ctrl-D soft reset, the network card appears to be still up and running. For example, I can skip initializing the network card and jump right in to socket calls. But if I blindly try to re-initialize the network card, it freezes the program. Sometimes it just freezes until I press ctrl-C, sometimes I get
Code: Select all
wiznet5k_poll: fatal error len=32896 ret=-5
What is the intended method of using a NIC across soft reboots of the Pyboard? Or are you supposed to always to a hard reset when working with ethernet?