Closed princelundgren closed 1 year ago
Hi @PrinceBalabis , Did you disconnect physically the board from the computer after updating the firmware? That's unfortunate but there's a bug in esp32 preventing the board to reboot without user intervention.
Yes, looks like this happens from time to time, not directly after the firmware upgrade. Reconnecting the board physically helps.
I have physically reconnected the board to the Macbook after flashing firmware, even tried to connect to my PC afterwards, getting same error message on both computers. To clarify, I can find the board on the list of devices in Arduino IDE on both my Macbook and PC, but it's only when uploading code that I get the error message.
EDIT: The board has been physically disconnected for 24h now. I just tried reconnected to my Mac and upload code, still getting the same error message
I've also been trying to flash to 0.1.0 in an effort to unbrick my board, I am trying to perform the flash but maybe I am not smart enough to figure this out.
esptool.py --chip esp32s3 --port "/dev/cu.usbmodemDC5475C5165C2" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0 "CompostaUSBBridge.ino.bootloader.bin" 0x8000 "CompostaUSBBridge.ino.partitions.bin" 0xe000 "boot_app0.bin" 0x10000 "CompostaUSBBridge.ino.bin"
A fatal error occurred: Failed to connect to ESP32-S3: No serial data received.
(See attached image).
UPDATE: Figured out the problem was due to ESP mode not working. I tried to connect and reconnect a couple of times until it finally went into ESP Mode(don't ask me how), however I get another error now. "A fatal error occurred: Serial data stream stopped: Possible serial noise or corruption". I have tried different baud rates; 9600, 115200 and 921600.
i got same problem
I bought a 2nd Arduino Uno R4 and tried to flash using the guide on Arduino Cloud IoT when registering an Arduino. This broke my 2nd Arduino Uno R4 as well so I have two Arduino Uno R4 which are no longer working.
Can I get some help in reflashing to previous firmware to see if I can restore my Arduinos? I am not able to do this as mentioned in previous comment
i flashed with the Jumper on ESP Pin and flashed with MacOS and ./bin/espflash ... and it was successful With Windows has not running with error and the workaround with Mac Console was not running without jumper. After the flash i press the reset button, not USB unplugged
But now I also have the problem that the UNO R4 sometimes does not start immediately and hangs. But after reset button it works
@PrinceBalabis @RickorDD are your boards from the early access program?
@PrinceBalabis have you tried using a different PC and/or USB cable? What macOS version are you using?
no board from early access
After the flash i press the reset button, not USB unplugged
After flashing the wifi firmware you have to unplug the board, remove the jumper wire, and connect the board again to the PC. Only pressing the reset button the board will stay in ESP download mode.
@PrinceBalabis @RickorDD are your boards from the early access program?
Not that I know of, they are purchased from a local store
@PrinceBalabis have you tried using a different PC and/or USB cable? What macOS version are you using?
Yes, I have tried flashing firmware and uploading code from all of these devices:
Both of my Arduino Uno R4 worked completely fine until I flashed them.
I follow these instructions (including physically disconnecting the USB cable and trying to upload code from all my Macbooks and PC's)
See here that the flash is successful from my PC:
See here how the upload fails (same with my PC, Mac 1 and Mac 2):
same problem
do you unplugged the jumper? With Jumper is COM5 without COM4
Update to hang. UNO R4 starts ever, but sometimes is to long that connect to WiFi I will check this again.
do you unplugged the jumper? With Jumper is COM5 without COM4
I don't use a jumper when flashing 0.2.0. It flashes fine. When I replug the Arduino it is COM4, and when I try to flash it fails. see my previous comment with pictures showing that it is COM5 when flashing and COM4 when uploading code: https://github.com/arduino/uno-r4-wifi-usb-bridge/issues/9#issuecomment-1646102559
same problem!
when could be use a jumper or when not??? Whats say the Arduino Team? Can you check with jumper?
@PrinceBalabis i've prepaerd a package of the 0.1.0
firmware version you can upload using the update script:
can you please check if going back to firmware version 0.1.0 restores upload functionality of your boards?
@RickorDD The jumper wire is used to put the board in ESP downaload mode. The same job can be done using the unor4wifi-reboot-*
binary that is included in the unor4wifi-update-*
package.
You should not use the jumper wire if you are using the unor4wifi-update-*
package.
If there are troubles using the unor4wifi-update-*
package (board is not going in ESP download mode) You can manually put the board in in ESP download mode using the jumper wire following this istructions:
https://github.com/arduino/uno-r4-wifi-usb-bridge/tree/main/unor4wifi-updater#option-2
@PrinceBalabis i've prepaerd a package of the
0.1.0
firmware version you can upload using the update script:
- https://github.com/arduino/uno-r4-wifi-usb-bridge/releases/download/0.1.0/unor4wifi-update-macos-0.1.0.zip
- https://github.com/arduino/uno-r4-wifi-usb-bridge/releases/download/0.1.0/unor4wifi-update-linux-0.1.0.zip
- https://github.com/arduino/uno-r4-wifi-usb-bridge/releases/download/0.1.0/unor4wifi-update-windows-0.1.0.zip
can you please check if going back to firmware version 0.1.0 restores upload functionality of your boards?
Thank you for the help! Can confirm I flashed both my Arduinos R4's and I can now upload code just fine.
Now this is interesting. After flashing to 0.1.0, I thought I'll try to flash 0.2.0 again. I did the same procedure and now uploading code to my 0.2.0 Arduino works fine. I tried the same with flashing my 2nd Arduino, and it works fine too.
I can only think of two theories why my Arduinos bricked:
@PrinceBalabis Thanks for the feedback 0.1.0
is the vanilla production firmware so i suspect the issue could be in the sketch loaded during the upgrade from 0.1.0
to 0.2.0
. Do you remember what sketch was running when your board has bricked?
@PrinceBalabis Thanks for the feedback
0.1.0
is the vanilla production firmware so i suspect the issue could be in the sketch loaded during the upgrade from0.1.0
to0.2.0
. Do you remember what sketch was running when your board has bricked?
I'm not completely sure of the exact code because I don't have a commits on the code before flashing, just approximately. I had my own code uploaded used for a quadcopter project, though because it was very early stage of development, it was not a lot of code involved when I was flashing the first Arduino, and looking back at the commit history, I believe it was quite a different code from when I flashed the 2nd Arduino.
I believe when I flashed the first Arduino, it was quite lightweight, it involved Serial, FreeRTOS & blinking built-in LED, I might've had some WiFi code then, not sure.
The code I had uploaded when I flashed the 2nd Arduino, No longer had FreeRTOS but included Wire.h and some code for communicating with MPU-9150 and MP-280.
Flashed with latest 0.2.1 firmware on both my Arduino Uno R4 and uploading sketch works fine! https://github.com/arduino/uno-r4-wifi-usb-bridge/releases/tag/0.2.1
Bug description: After flashing successfully to 0.2.0. I am no longer able to upload any code to the Arduino R4 Wifi. I am getting error message "No device found on cu.usbmodemDC5475C5165C2". I have tried to flash firmware and upload code from both my Macbook and my Windows PC but I am having the same issue on both. See below image to see error message I am receiveing when upload code from Arduino IDE.
Reproduce: