-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Unable to upload code after update to 3.0.1 (invalid value '460800' for option 'UploadSpeed') #9786
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
460800 is marked as compatible only with Linux and Mac. Have you tried the other baudrates? |
I can upload the code after I fall back to version 2.0.17. But I want to use ESP_SR, it seems that need 3.0 to have this library. |
Version 3.0.0 also does not report errors. |
You should be able to see menu options there. Not sure why you do not. What happens if you select "ESP32 Dev Module"? |
@SuGlider can you check what you see about this board in IDE2.3.2 on Windows? |
The issue should be reopened since it is not resolved. BackgroundThe platform's board definitions are configured to cause specific custom board option items to be displayed in the Tools > Upload Speed menu only when Arduino IDE/Arduino CLI is running on a certain operating system. They are doing this by controlling whether the option name property is defined using the OS-specific override feature: Since the code in the
However, if I changed the board definition to this:
Linux users would see the following options in the Tools > Bar menu:
macOS users would see these
and Windows users would see this
ExplanationPrior to the regression in #9277, Linux and macOS users would see the following items in the Tools > Upload Speed menu when the "NodeMCU-32S" board was selected:
while Windows users would see the following items:
(note the presence of "256000" and "512000" items and absence of "460800") That worked fine until #9277 made the Linux/macOS-exclusive SolutionA simple solution would be something like this: --- a/boards.txt
+++ b/boards.txt
@@ -14434,8 +14434,7 @@ nodemcu-32s.menu.FlashFreq.80.build.flash_freq=80m
nodemcu-32s.menu.FlashFreq.40=40MHz
nodemcu-32s.menu.FlashFreq.40.build.flash_freq=40m
-nodemcu-32s.menu.UploadSpeed.460800.linux=460800
-nodemcu-32s.menu.UploadSpeed.460800.macosx=460800
+nodemcu-32s.menu.UploadSpeed.460800=460800 However, I guess there is a reason why the board definitions are configured to prevent Windows users from selecting a 460800 upload speed, which the naive solution shown above would allow. If so, the best solution will be to set the default to the closest cross-platform speed, which is 230400: --- a/boards.txt
+++ b/boards.txt
@@ -14434,6 +14434,9 @@ nodemcu-32s.menu.FlashFreq.80.build.flash_freq=80m
nodemcu-32s.menu.FlashFreq.40=40MHz
nodemcu-32s.menu.FlashFreq.40.build.flash_freq=40m
+nodemcu-32s.menu.UploadSpeed.230400.windows.upload.speed=256000
+nodemcu-32s.menu.UploadSpeed.230400=230400
+nodemcu-32s.menu.UploadSpeed.230400.upload.speed=230400
nodemcu-32s.menu.UploadSpeed.460800.linux=460800
nodemcu-32s.menu.UploadSpeed.460800.macosx=460800
nodemcu-32s.menu.UploadSpeed.460800.upload.speed=460800
@@ -14441,9 +14444,6 @@ nodemcu-32s.menu.UploadSpeed.115200=115200
nodemcu-32s.menu.UploadSpeed.115200.upload.speed=115200
nodemcu-32s.menu.UploadSpeed.256000.windows=256000
nodemcu-32s.menu.UploadSpeed.256000.upload.speed=256000
-nodemcu-32s.menu.UploadSpeed.230400.windows.upload.speed=256000
-nodemcu-32s.menu.UploadSpeed.230400=230400
-nodemcu-32s.menu.UploadSpeed.230400.upload.speed=230400
nodemcu-32s.menu.UploadSpeed.512000.windows=512000
nodemcu-32s.menu.UploadSpeed.512000.upload.speed=512000
nodemcu-32s.menu.UploadSpeed.921600=921600 |
Note that the
and that property definition must be placed after the universal definition of the property so that it will work as an override:
|
@wangzongming @me-no-dev please reopen this valid, unresolved issue. If I was confident in the validity of the solution I described in my previous comment, I would simply submit a pull request. However, I don't understand the reason why certain baud rates are only offered for specific operating systems so I don't think it would be responsible for me to do that. So it will be important for this issue to be open so that the task of fixing the bug can be effectively tracked. |
Okay, I'm sure you can handle it. Thanks. |
Since you are at the speed settings. I use 1500000 with all my boards and a Mac M1 |
As far as I remember 460800 was not compatible with Windows before. Limitation was introduced by Arduino and we just kept it the same. I am not a Windows user myself and have used 460800 only with S3 native USB CDC port. |
Yes, the latest |
Glad to know this is a current issue and not something I was messing up on my end. Using the esp32 dev module is an easy enough workaround in the meantime haha |
Fix is coming: #10012 |
nodemcu-32s.menu.UploadSpeed.460800.upload.speed=230400 Thanks |
Board
nodemcu-32s
Device Description
no
Hardware Configuration
Uploading any code results in an error
Version
latest master (checkout manually)
IDE Name
Arduino IED
Operating System
Window 11
Flash frequency
PSRAM enabled
yes
Upload speed
default
Description
Uploading the code will directly prompt the following error
I can't find a place on the menu bar where I can change the upload speed. Can you tell me how to change the speed?
It's similar to this problem:#8320
Sketch
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: