-
Notifications
You must be signed in to change notification settings - Fork 335
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
Watchy not connecting to Arduino IDE #23
Comments
I have the same issue occuring with mine |
Do you have another esp32 board by chance? Do those upload fine? If not, could you also try just running |
My other esp32 boards upload fine for me |
When I run esptool.py erase flash, I get: esptool.py v3.0 A fatal error occurred: Could not connect to an Espressif device on any of the 4 available serial ports. |
Here is my output:
|
Okay, I've found a work around, albeit a little awkward! I plugged it into my Raspberry Pi 4. Turns out the RPi Arduino IDE has some nasty collisions with the ESP dev libraries that stops the example code from compiling unless I'm willing to do a lot of hand editing, BUT esptools can be installed and will run using the python -m option. The erase_flash command DID work here, and I was able then to plug it into my iMac system and upload an example sketch from the MacOS Arduino IDE. However I wasn't able to upload a second sketch until I plugged it back into my Pi and ran erase_flash again. |
That's great, sounds like there is something weird going on with the Arduino setup / USB on the Mac. |
I have the same issue on a Windows 10 machine. I also tried the erase_flash command. Here's the output: esptool.py v2.6 |
@seekerdave have you installed the CP2104 drivers? Also make sure the correct COM port is selected. |
Yes, I downloaded the latest driver and am sure I have the right port. The following details are from Device Manager: |
I have the same problem. Running Windows 10 with the CP2104 driver installed.
|
@Ryomoo @seekerdave have you tried a few more times to see if any combination works? e.g. different USB port, different USB cable, not using a USB hub, lowering upload speed, closing all other programs that might be using the serial port, restarting the PC, using a different computer, etc. FYI the drivers are found here: https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers Thanks! |
I tried all of the above mentoined except the different computer. Will try that tomorrow. But my internet research says my board isn't starting in "flashing/uploading mode". I have no clue how to do that. Can you help me with that? |
Watchy has built in auto reset functionality, so it uses the DTR/RTS signals from serial to toggle GPIO 0 and EN to get into flash/upload mode. |
I replaced C1 with a much higher value (10uF) and eliminated the problem. It seems that the DTR/RTS timing is preventing the ESP32 from entering the needed mode. From a web search this problem seems especially prevalent on Windows 10 machines. It would be nice if there was a software solution (perhaps a timing parameter in the esptool?). Note: C1 on the schematic has a value of just 100nF. I tried a 1uF (10X larger) and it worked intermittently. The 10uF provides very reliable communication. |
Thanks @seekerdave, this is very useful information. Yes this seems to be prevalent with Windows and the C1 RC slows the rise time, which fixes the relative timing of RTS & DTR. We'll explore software solutions for this (we flashed all the Watchy's using Linux) |
Hello, I am having some connection issues too. It looks like all my settings are correct and there is some connection on the port, the Serial Monitor opens, but nothing shows up when I try to enter any command. When uploading, I get a error : The Watchy will sometimes "blink" during/after trying to upload, sometimes it will freeze. Any ideas? Thanks! |
I just got mine and same issue. The device doesn't show up when connected which is a real bummer. |
Apologies for zombifying this thread but it should be mentioned I was able to get this working on OS-X in a way (just reflashed watchy with micropython using esptool.py with my mac after running into this on windows) |
I received the product today. It does not connect on MacOS. However, when I go into the menu, |
Same here. Just received it 20 minutes ago. BTW, the PCB for this one (right) is clearly not the same I had on the previous one (left):
The first one I had was v2.0, since BTN3 was on GPIO35, according to the pin map. Does that mean we just got old hardware laying around? |
I have also applied for a refund regarding this matter. It doesn’t seem like this is an issue that can be resolved with software. |
Just found this: https://github.com/Szybet/WatchySourcingHub/blob/main/Watchy%203.0%20review.md |
Broken button, too: signal-2024-07-02-184408.mp4 |
Please follow the latest Getting Started guide for instructions: https://watchy.sqfmi.com/docs/getting-started/ @robin-thoni This is an issue with arduino-esp32 v3.x.x. Please use v2.0.17 and the latest Watchy library v1.4.13 @eunchurn can you please report back after following the updated instructions and let us know if you still have any issues? |
@sqfmi Everything works well with the updated document!! I was panicking because it didn’t work with the previous document. Thank you for the quick feedback. |
Thanks for confirming @eunchurn! Closing. |
Hi -- I can't get Watchy to accept an upload from the Arduino IDE under either MacOS Big Sur or Windows 10 on my Intel iMac. I have installed the CP2104 drivers under both environments, and tried varying the serial rate. In both, the Watchy's port appears to be recognized, as cu.usbserial-XXXX in MacOS, and as COM3 in Windows. The console output under MacOS with verbose option os for upload is below, and the windows version gives a similar "Failed to connect to ESP32: Timed out waiting for packet header"
Any help you could give would be much appreciated!
Arduino: 1.8.13 (Mac OS X), Board: "ESP32 Dev Module, Disabled, Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 115200, None"
WARNING: library DS3232RTC claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
Sketch uses 1773169 bytes (90%) of program storage space. Maximum is 1966080 bytes.
Global variables use 58644 bytes (17%) of dynamic memory, leaving 269036 bytes for local variables. Maximum is 327680 bytes.
/Users/stephen/Library/Arduino15/packages/esp32/tools/esptool_py/3.0.0/esptool --chip esp32 --port /dev/cu.usbserial-00BFDDF4 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 /Users/stephen/Library/Arduino15/packages/esp32/hardware/esp32/1.0.5-rc6/tools/partitions/boot_app0.bin 0x1000 /Users/stephen/Library/Arduino15/packages/esp32/hardware/esp32/1.0.5-rc6/tools/sdk/bin/bootloader_qio_80m.bin 0x10000 /var/folders/c0/jxtk96zj7h96mxm_jl13vg8r0000gn/T/arduino_build_494456/7_SEG.ino.bin 0x8000 /var/folders/c0/jxtk96zj7h96mxm_jl13vg8r0000gn/T/arduino_build_494456/7_SEG.ino.partitions.bin
esptool.py v3.0-dev
Serial port /dev/cu.usbserial-00BFDDF4
Connecting......................................____An error occurred while uploading the sketch
_
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The text was updated successfully, but these errors were encountered: