First let me state I am a Noooby. I started learning the esp32 just a few days ago so I not very far along. I decided to create these sketches in arduino code and also native micropithon at the same time. For some reason Thonny cannot access the serial port while a sketch is running on the esp32. I get a message cant interupt running process. I can however compile another scketch in arduino and upload it. What must I do to allow me to run thonny and get it connected. It seems like once a program is running there is no shutting it down. A few times i reuploaded the micropython binary just to erase the current program. Thanks
Hi.
If there’s a program running and you can’t upload the code, try to press the RST button at the same time you try to establish the connection on Thonny.
This way, it will try to connect before it starts running the code.
Regards,
Sara
Did you know what code was previously running on the ESP32?
For example, if it was running a while loop without any delays, or it was running a deep sleep code, it may be difficult to catch the ESP32 not in “busy” mode to establish a connection.
Otherwise, you may need to flash the firmware again.
Regards,
Sara