-
-
Notifications
You must be signed in to change notification settings - Fork 92
Description
Hello,
I'm having an issue with uploading to the Uno R4 WiFi in a Windows environment.
This all uses ArduinoCore-renesas v1.0.1. When in the Arduino IDE, the device is recognized. It's only when uploading to it that it fails to find the device.
When looking at the device manager, I get the following values: USB VID 2341 PID 1002
Below is a table of the environments/configurations I tried and the various error codes I received.
Platform | IDE | Sketch | Success | Error Code |
---|---|---|---|---|
Mac | 2.1.0 | Blink | Y | N/A |
Mac | 2.1.0 | GameOfLife | Y | N/A |
Ubuntu | 2.1.0 | Blink | Y | N/A |
Ubuntu | 2.1.0 | GameOfLife | Y | N/A |
Windows 10 | 2.1.0 | Blink | N | Performing 1200-bps touch reset on serial port COM22 "C:\Users\$USER\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.9.1-arduino5/bossac" -d --port=COM22 -U -e -w "C:\Users\$USER\AppData\Local\Temp\arduino\sketches\FE8CA22D18608F6CBD5B3FFBE2AB9B4C/Blink.ino.bin" -R No device found on COM22 Set binary mode Send auto-baud Set binary mode Failed uploading: uploading error: exit status 1 |
Windows 10 | 2.1.0 | GameOfLife | N | Performing 1200-bps touch reset on serial port COM22 "C:\Users\$USER\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.9.1-arduino5/bossac" -d --port=COM22 -U -e -w "C:\Users\$USER\AppData\Local\Temp\arduino\sketches\63B0DA378C2FD7222A66F165BF61AF79/GameOfLife.ino.bin" -R Set binary mode Send auto-baud Set binary mode No device found on COM22 Failed uploading: uploading error: exit status 1 |
Windows 10 | Arduino-cli | Blink | N | Performing 1200-bps touch reset on serial port COM22 "C:\Users\$USER\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.9.1-arduino5/bossac" -d --port=COM22 -U -e -w "C:\msys64\tmp\arduino\sketches\FE8CA22D18608F6CBD5B3FFBE2AB9B4C/Blink.ino.bin" -R Set binary mode Send auto-baud Set binary mode No device found on COM22 Error during Upload: Failed uploading: uploading error: exit status 1 |
Windows 10 | VSCode Arduino | Blink | N | [Starting] Uploading sketch '........\Arduino\Blink\Blink.ino' [Warning] Output path is not specified. Unable to reuse previously compiled files. Build will be slower. See README. Sketch uses 34828 bytes (13%) of program storage space. Maximum is 262144 bytes. Global variables use 2460 bytes (7%) of dynamic memory, leaving 30308 bytes for local variables. Maximum is 32768 bytes. No device found on COM22 Error during Upload: Failed uploading: uploading error: exit status 1 IntelliSense configuration already up to date. To manually rebuild your IntelliSense configuration run "Ctrl+Alt+I" [Error] Uploading sketch '........\Arduino\Blink\Blink.ino': Exit with code=1 |
When I was reading through the R4 Datasheet I see that the R4 is programmed via the ESP32-S3. There's a jumper I could solder to move the USB directly to the Renesas chip, but that seems like the wrong way to go about trying to program the device based on it's intended use.
I followed this help article for the specific error, however the process explorer was unable to find a PID with the process in use.
I've been able to upload to the Minima using v1.0.1 in a Windows environment.
I tried on 3 Windows machines, 2 Win10, 1 Win11.
As a last ditch effort, I uninstalled Arduino, uninstalled the drivers, unplugged the device, rebooted the machine, reinstalled Arduino, installed the package, then plugged the device back in. This did not change anything.
Please let me know if there's something else I should be trying.
Activity
mpkendall commentedon Jun 28, 2023
I'm also having the exact same issue as described.
mpkendall commentedon Jun 29, 2023
Try Arduino 1.8. I was able to get it working there.
DanielTerletzkiy commentedon Jun 29, 2023
Same issue here.
Does anyone know when Platformio will add support for this board?
ubidefeo commentedon Jun 30, 2023
hey everyone
we just released a patch fix for Arduino IDE.
You can issue a "check for updates" command in the IDE and be notified to install 2.1.1
If you have issues with the internal updates just download the full build from our GitHub release section
https://github.com/arduino/arduino-ide/releases/tag/2.1.1
Sorry for the inconvenience, hope it'll all work for everyone now :)
qwikag commentedon Jul 1, 2023
Why don't you advise what was wrong and how you fixed it?
was it really just a versioning typo
per1234 commentedon Jul 1, 2023
Hi @qwikag. The problem was in the code in Arduino CLI that signals the start of an upload process to the target board by momentarily opening a serial connection at 1200 bps ("1200 bps touch").
You can see the change to the Arduino CLI codebase that was made to fix the problem here: arduino/arduino-cli#2234
There is some further information about the change in that PR.
Once the problem was fixed in Arduino CLI, it was only necessary to update the version of Arduino CLI that is bundled with the Arduino IDE 2.x installation in order to also deliver the fix to Arduino IDE users: arduino/arduino-ide#2121
No
qwikag commentedon Jul 1, 2023
Thank you for the super fast response!
I will go look there, thank you.
balazscseh commentedon Jul 1, 2023
@per1234 The problem still persist in the VS Code Arduino extension, and i cannot see the 1200 bps touch update in the changelog.
Will this be fixed too? I don't see anyone mentioning this in the vsode-arduino repo, except @SFE-Brudnerd in his table.
per1234 commentedon Jul 1, 2023
Hi @balazscseh. If you are referring to the "Visual Studio Code extension for Arduino" extension, it is already fixed. You only need to update the installation of Arduino CLI that is used by the extension on your computer to the latest version, which contains the fix I referenced above.
There is information about how to get the latest version of Arduino CLI here:
https://arduino.github.io/arduino-cli/latest/installation
balazscseh commentedon Jul 1, 2023
@per1234
So i can somehow update the bundled Arduino-CLI? If yes, can you please explain me how to do it?
Edit: if i want to use my install of Arduino-CLI the extension doesn't want to work, that's why i wanted to know if it is possible to update the bundled version instead.
0.33.0
" arduino/arduino-ide#2119per1234 commentedon Jul 2, 2023
@balazscseh I just gave "Visual Studio Code extension for Arduino" version 0.6.0 with the
arduino.path
setting pointing to my installation of Arduino CLI 0.33.1 and it works fine for me.Please make a post with a detailed description of your problem on Arduino Forum. I'll be happy to investigate the problem further and try to help you over there. The forum a better place for that sort of user support level discussion:
https://forum.arduino.cc/
balazscseh commentedon Jul 2, 2023
I still get the same old error after pointing the path setting to the correct location.
My post link is: https://forum.arduino.cc/t/still-no-device-found-on-com-port-after-updating-cli-to-0-33-1/1143837
Thanks a lot :)
Edit: @per1234
per1234 commentedon Jul 4, 2023
This issue can be closed as resolved by:
0.32.3
arduino-ide#2121 (released in 2.1.1)As for the report of the problem with the "Visual Studio Code extension for Arduino" extension, it is working fine for me. I will provide support on the forum topic. Even if there is still some problem, I don't foresee that it will turn out to be in this repository's codebase (since all the work so far has been done in the Arduino CLI codebase) so I wouldn't consider that report a blocker for closing this issue.
CC: @facchinm @aentinger
aentinger commentedon Jul 5, 2023
Thank you @per1234 for leading the response on this as well as the neat summary. In light of it (your summary) I'll close this issue. I expect with all the fixes out fewer users should come looking for support and if - they can be simply redirected to the now existing answers.