• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

thonny wont connect to esp32

Q&A Forum › Category: ESP32 › thonny wont connect to esp32
0 Vote Up Vote Down
tom maurer asked 1 year ago

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
 

Question Tags: Thonny cant connect
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

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

0 Vote Up Vote Down
tom maurer answered 1 year ago

Great, thanks.

Tried that several different ways. Still no nuck.

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

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

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.