-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32-S3-DevKitC-1-N16R8V does not restart after unplugging #8322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you @Xylopyrographer. Indeed it seems to be a problem of Serial communication.
fix the problem... but obviously it is not the solution. I have tried the following, with no results:
However, I owe you half a dozen donuts for guiding me to the solution, even though I haven't found it yet. Thanks again. |
For me, two things were needed to make it work with an external supply or battery pack:
1. Remove all Serial.flush() statements.
2. Add a Serial.setTxTimeoutMs( 0 ); statement after Serial.begin();
Didn’t modify the HWCDC.h or .cpp files.
Hope that helps too.
On Jun 18, 2023, at 10:25 AM, ReyWamba ***@***.***> wrote:
Thank you @Xylopyrographer <https://github.com/Xylopyrographer>.
Indeed it seems to be a problem of Serial communication.
//Serial.begin(115200);
//while (!Serial)
fix the problem... but obviously it is not the solution.
I have tried the following, with no results:
Adding the files HWCDC.h and HWCDC.cpp the ones proposed in #7779 <#7779>.
I have tried both the solutions posed by @sblantipodi <https://github.com/sblantipodi> and @imwhocodes <https://github.com/imwhocodes> in #7754 <#7754> and neither.
However, I owe you half a dozen donuts for guiding me to the solution, even though I haven't found it yet. Thanks again.
—
Reply to this email directly, view it on GitHub <#8322 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ATMBFQLBBZOPIZCDQOXSBNTXL4TYFANCNFSM6AAAAAAZJNXIL4>.
You are receiving this because you were mentioned.
|
if you have |
Hello again, @Xylopyrographer: I have no Serial.flush() in my code, and I had already tried the solution of Serial.setTxTimeoutMs( 0 ) (it was mentioned in some of the links you mentioned to me in your first reply), even trying to upload the program in all USB modes (ESP-PROG, USB-JTAG and ESP USB Brigde), and both with -D ARDUINO_USB_MODE=1 enabled and disabled in platformio.ini, and nothing. However, thanks to your and @me-no-dev 's suggestions, I have solved the problem (I explain how in the following answer). So thanks again, and I owe you a dozen donuts!!! |
Hello, @me-no-dev: Indeed, it is the However, in Arduino IDE and with other ESP32 boards, this statement never gave me problems. The apps booted without problems when connected to any source. It was the acquisition of the ESP-32S3 boards (my app was running low on memory on 4Mb modules) that forced me to migrate to platformio. The solution that I have applied and that works for me is to wait a few seconds for Serial to connect to the COM port, and if not, let it continue loading without waiting any longer:
Thank you very much for your answer. |
Glad you got it sorted. 😄
We’re all learning a something new with the USB-CDC ESP32 versions.
On Jun 19, 2023, at 8:41 AM, ReyWamba ***@***.***> wrote:
Hello again, @Xylopyrographer <https://github.com/Xylopyrographer>:
I have no Serial.flush() in my code, and I had already tried the solution of Serial.setTxTimeoutMs( 0 ) (it was mentioned in some of the links you mentioned to me in your first reply), even trying to upload the program in all USB modes (ESP-PROG, USB-JTAG and ESP USB Brigde), and both with -D ARDUINO_USB_MODE=1 enabled and disabled in platformio.ini, and nothing.
However, thanks to your and @me-no-dev <https://github.com/me-no-dev> 's suggestions, I have solved the problem (I explain how in the following answer).
So thanks again, and I owe you a dozen donuts!!!
—
Reply to this email directly, view it on GitHub <#8322 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ATMBFQIBIZZPZCOIOITP7DTXMBQKZANCNFSM6AAAAAAZJNXIL4>.
You are receiving this because you were mentioned.
|
That is because they have a separate USB-Serial chip that we have no idea when is connected. On newer chips we have integrated USB, which we can detect when connected and wait for it. Same goes for Arduino Leonardo for example. Arduino UNO will boot regardless, but Leonardo will wait. |
I am a simple amateur, and these things are beyond my knowledge. The truth is that they waste a lot of time. Thank you very much for your help again. |
Board
ESP32-S3-DevKitC-1-N16R8V
Device Description
Nothing attached.
Hardware Configuration
Nothing attached.
Version
v2.0.9
IDE Name
PlatformIO
Operating System
Windows 10, Macos Ventura 13.4
Flash frequency
40MHz
PSRAM enabled
yes
Upload speed
115200
Description
I can upload and monitor sketches on my device in both Plarformio and Arduino IDEs, by opening the corresponding port. However, when I disconnect the device, and reconnect it, either to the same port, or to an external source, or to another PC, the app does not start. The reset button has no effect.
If I reopen the port in an IDE to monitor it, the app starts instantly.
This is tested with different ESP32-S3-DevKitC-1-N16R8V (I bought 3), both on Windows and Mac, and with my own sketches or with the examples (blink or hello).
I have worked with other ESP32 devkits before and never had this problem.
What can I do? Is there any software or config solution?
(apologies for my English).
Sketch
Checked with blink and hello examples.
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: