Describe the bug
When NodeMCU-32S board is selected and an upload is requested, the error message is "Error: esp32:esp32:nodemcu-32s is not a valid FQBN."
To Reproduce
Steps to reproduce the behavior:
1.Go to board manager and select subject board, which is highlighted properly as a valid board
Expected behavior
Nominal compile followed by upload (works OK in standard IDE)
Screenshots
Don't know how to do that easily, but basically above error message is a notification.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Hi @jackthese. Thanks so much for this helpful report! The reason you got this error is because the Pro IDE doesn't currently support FQBNs (fully qualified board name) that contain -. The board ID of your NodeMCU-32S happens to contain this character.
The Arduino developers are aware of this and working to add support to the Pro IDE for hyphenated FQBNs.
Until then, I can provide you with a workaround:
directories.data field (It will likely be C:\Users\{username}\AppData\Local\Arduino15). You don't need to make any changes to the arduino-cli.yml file.C:\Users\{username}\AppData is a system folder, and thus hidden by default. You will need to configure Windows File Explorer to show hidden items before you can see it.packages/esp32/hardware/esp32/1.0.4 subdirectory of the data directory.boards.txt in a text editor.nodemcu-32s. in the file to nodemcu32s.You should now be able to use your NodeMCU-32S board in the Pro IDE without getting that "is not a valid FQBN" error (because you removed the - from the board ID, and thus changed the FQBN to esp32:esp32:nodemcu32s). This change has no other impact. The board ID is merely an arbitrary name used to identify the board and any unique name works as well as the other.
Perfect answer, thanks. Note that I had to drill down to a slightly different path (has /Local in it).
C:\Users\jackr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4
Now, if you had a workaround to enable opening multiple files in the editor, like VS Code has, I would make Pro my go-to IDE for Arduino work. Thanks again for you quick reply….Jack
From: per1234 notifications@github.com
Sent: Monday, June 22, 2020 3:42 AM
To: arduino/arduino-pro-ide arduino-pro-ide@noreply.github.com
Cc: jackthese jackrmurphyphd@gmail.com; Mention mention@noreply.github.com
Subject: Re: [arduino/arduino-pro-ide] NodeMCU-32S not recognized as valid board (#272)
Hi @jackthese https://github.com/jackthese . Thanks so much for this helpful report! The reason you got this error is because the Pro IDE doesn't currently support FQBNs (fully qualified board name) that contain -. The board ID of your NodeMCU-32S happens to contain this character.
The Arduino developers are aware of this and working to add support to the Pro IDE for hyphenated FQBNs.
Until then, I can provide you with a workaround:
You should now be able to use your NodeMCU-32S board in the Pro IDE without getting that "is not a valid FQBN" error (because you removed the - from the board ID, and thus changed the FQBN to esp32:esp32:nodemcu32). This change has no other impact. The board ID is merely an arbitrary name used to identify the board and any unique name works as well as the other.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/arduino/arduino-pro-ide/issues/272#issuecomment-647436357 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMBTIHI4RWAUU4Z546DYN3RX4YO3ANCNFSM4N3T4BOQ . https://github.com/notifications/beacon/ALMBTIFUCCWBWN4YOHCHIN3RX4YO3A5CNFSM4N3T4BO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOE2LRQRI.gif
Hello,
I am having the same issue with ESP32 DEVKIT V1
Error: esp32:esp32:esp32doit-devkit-v1 is not a valid FQBN.
Hi @GhaithKhmili you can solve this by following the same instructions I posted in my previous reply (https://github.com/arduino/arduino-pro-ide/issues/272#issuecomment-647436357).
The only difference is that when you get to step 6:
- Change all instances of
nodemcu-32s. in the file tonodemcu32s.
You should instead change all instances of esp32doit-devkit-v1 in the file to esp32doitdevkitv1.
Hi @GhaithKhmili you can solve this by following the same instructions I posted in my previous reply (#272 (comment)).
The only difference is that when you get to step 6:
- Change all instances of
nodemcu-32s. in the file tonodemcu32s.You should instead change all instances of
esp32doit-devkit-v1in the file toesp32doitdevkitv1.
Hello @per1234,
Thank you for your quick response. I actually removed all the hyphens as indicated in the provided solution yet I am still getting the same error.
Did you restart the Arduino Pro IDE (step 10)? This must be done before any edits to boards.txt will take effect.
Did you restart the Arduino Pro IDE (step 10)? This must be done before any edits to boards.txt will take effect.
Yes I did save the file and restart the IDE with every attempt.
Yes I did save the file and restart the IDE with every attempt.
Do you have another board, @GhaithKhmili? Try to select that other board, then the (updated) esp32doitdevkitv1 again. Does it help?
Hello @kittaakos,
I don't have another board but your suggestion gave me the idea to go to the board selector, reselect both board and COM port once again and that actually worked. Thank you.
reselect both board and COM port once again and that actually worked.
Thank you for the update, I am glad it worked. Smart, yes, that should have the same effect. 👍
Some background: once you have selected a board that was recognized by the CLI, the app caches the FQBN of the board. So even if you updated the FQBN outside of the app, the app did not know anything about this change.