Hi
I've got a Wemos D1 Mini (clone) and try to use it with the ESP8266 library with version 2.7.4 (the 3.x versions break the code) and Arduino IDE 2.0 Beta 9.
The error is always "The FQBN is not available for the selected board LOLIN(WEMOS) D1 mini (clone). Do you have the corresponding core installed?"
Funny part though, if I uninstall ESP8266 and then right install it again through board manager, compilation works, until I restart Arduino IDE. The it starts up again with this error.
Also weird, if I remove ESP8266 library, restart Arduino IDE, then the Wemos board is still selectable in the board manager.
Board URL is https://arduino.esp8266.com/stable/package_esp8266com_index.json
@pert one for you I think
I forgot to mention, this is with Windows 10.
Hi,
I have the same problem as patoberli, different board but esp8266 based.
The 2.7.4 core doesn't allow to select any esp 8266 board until upgrading the core to 3.0.2.
After that I can choose the board and still work even downgrading core to 2.7.4 .
Closing the Ide and reopening=same issue again...
Hope it helps
I forgot: Ide is 2.0B9 , did not try B10 yet
Davide
1 Like
Thanks for posting this. Now I know why the compiling sometimes worked and sometimes stopped working!
pert
August 5, 2021, 7:10pm
6
I think it must be because of this bug in the ESP8266 boards platform, which was fixed in their 3.0.1 release:
esp8266:master
← silvanocerza:fix-boards-txt-menu-definition
opened 08:14AM - 21 Jun 21 UTC
Hello!
We recently merged Arduino/arduino-cli#1326 on the Arduino CLI, it int… roduces an enforcement of the platform specifications for [custom board options][custom-board-options]. Boards that define some custom options without their name defined somewhere else in the `boards.txt` won't be loaded, the rest will be loaded without issues if they respect the specifications.
A user reported in Arduino/arduino-cli#1329 that `esp8266:esp8266:espduino` is not loaded because of this change, this PR will fix that issue.
That change has not been released but is only available in the nightly, so most users are not affected as of now but will in the next release.
[custom-board-options]: https://arduino.github.io/arduino-cli/latest/platform-specification/#custom-board-options
1 Like
Thanks pert,
if I well understand, when using esp8266 core < 3.0.1 we must use the trick I wrote above.
It has been fixed only for core 3.0.1 (where, in my case, i found a buggy webserver, the good one working is in 2.7.4).
pert
August 6, 2021, 8:33am
8
You can easily apply the fix retroactively to your 2.7.4 version of the ESP8266 boards platform. It's only a single line.
Instructions:
Select File > Preferences from the Arduino IDE's menus.
Check the box next to "Show verbose output during: [] compilation" .
Click the OK button.
Open any sketch.
Select Sketch > Verify/Compile from the Arduino IDE's menus.
Wait for the compilation to end (doesn't matter if it passes or fails).
Scroll up the black "Output" pane at the bottom of the Arduino IDE 2.x window. At the very top, you'll see something like this:Using core 'esp8266' from platform in folder: C:\Users\per\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4
Open the folder shown in the output.
NOTE: the AppData
or .arduino15
folder (depending on which operating system you are using) are hidden by default. You'll need to configure your file browser to show hidden folders.
Open the file boards.txt
in a text editor.
Add the following line to the top of the file:menu.UploadTool=Upload Tool
Save the file.
Restart the Arduino IDE if it's running.
2 Likes
Thanks, will test this later when home.
I've posted a comment in GIT in the hope that they see it and might consider it for a backport.
1 Like
pert:
: the AppData
or .arduino15
folder (depending on which operating system you are using) are hidden by default. You'll need to configure your file browser to show hidden folders.
Open the
In my case the message about the not found FQDN was not solved by this. @AppsByDavideV did it work for you?
Hello,
just tried but it doesn't work. Esp boards are still greyed out.
Attached screenshots with ide 2.0B10 (I know it doesn't matter) , maybe I made a mistake.
Have a nice Weekend
@pert any other idea what we might try?
pert
August 12, 2021, 1:31am
13
I see. It happens for any boards platform when you have a version previous to the latest installed.
Arduino IDE 2.x is intended only to be used for beta testing. It simply isn't at a development state when it can be used as a production tool. Please use the classic Arduino IDE.
It happens for any boards platform when you have a version previous to the latest installed.
This bug was reported here:
opened 10:03AM - 19 Aug 21 UTC
closed 09:02AM - 25 Aug 21 UTC
type: imperfection
## Bug Report
I think that those two issues below are somehow related, that's w… hy I'm creating a single issue
### Current behavior
When I install an older version of a core (and also when a new core is released):
1. the `board search` command returns an empty list
2. the Latest field in the `core list` commands always shows the currently installed version and not the actual latest.
``` bash
$ arduino-cli core list
ID Installed Latest Name
$ arduino-cli core install arduino:samd@1.8.10
Tool arduino:arm-none-eabi-gcc@7-2017q4 already installed
Downloading packages...
arduino:bossac@1.7.0-arduino3 downloaded
arduino:openocd@0.10.0-arduino7 downloaded
arduino:CMSIS@4.5.0 downloaded
arduino:CMSIS-Atmel@1.2.0 downloaded
arduino:arduinoOTA@1.2.1 downloaded
arduino:samd@1.8.10 downloaded
Installing arduino:bossac@1.7.0-arduino3...
arduino:bossac@1.7.0-arduino3 installed
Installing arduino:openocd@0.10.0-arduino7...
arduino:openocd@0.10.0-arduino7 installed
Installing arduino:CMSIS@4.5.0...
arduino:CMSIS@4.5.0 installed
Installing arduino:CMSIS-Atmel@1.2.0...
arduino:CMSIS-Atmel@1.2.0 installed
Installing arduino:arduinoOTA@1.2.1...
arduino:arduinoOTA@1.2.1 installed
Installing arduino:samd@1.8.10...
Configuring platform...
arduino:samd@1.8.10 installed
$ arduino-cli core list # Latest should show 1.8.11
ID Installed Latest Name
arduino:samd 1.8.10 1.8.10 Arduino SAMD Boards (32-bits ARM Cortex-M0+)
$ arduino-cli board search arduino:samd:mkrwifi1010 # should list something
Board Name FQBN Platform ID
<-- empty
$ arduino-cli core uninstall arduino:samd
Uninstalling arduino:samd@1.8.10...
arduino:samd@1.8.10 uninstalled
Uninstalling arduino:bossac@1.7.0-arduino3, tool is no more required...
arduino:bossac@1.7.0-arduino3 uninstalled
Uninstalling arduino:openocd@0.10.0-arduino7, tool is no more required...
arduino:openocd@0.10.0-arduino7 uninstalled
Uninstalling arduino:CMSIS@4.5.0, tool is no more required...
arduino:CMSIS@4.5.0 uninstalled
Uninstalling arduino:CMSIS-Atmel@1.2.0, tool is no more required...
arduino:CMSIS-Atmel@1.2.0 uninstalled
Uninstalling arduino:arduinoOTA@1.2.1, tool is no more required...
arduino:arduinoOTA@1.2.1 uninstalled
$ arduino-cli core install arduino:samd
Tool arduino:arm-none-eabi-gcc@7-2017q4 already installed
Downloading packages...
arduino:bossac@1.7.0-arduino3 already downloaded
arduino:openocd@0.10.0-arduino7 already downloaded
arduino:CMSIS@4.5.0 already downloaded
arduino:CMSIS-Atmel@1.2.0 already downloaded
arduino:arduinoOTA@1.2.1 already downloaded
arduino:samd@1.8.11 downloaded
Installing arduino:bossac@1.7.0-arduino3...
arduino:bossac@1.7.0-arduino3 installed
Installing arduino:openocd@0.10.0-arduino7...
arduino:openocd@0.10.0-arduino7 installed
Installing arduino:CMSIS@4.5.0...
arduino:CMSIS@4.5.0 installed
Installing arduino:CMSIS-Atmel@1.2.0...
arduino:CMSIS-Atmel@1.2.0 installed
Installing arduino:arduinoOTA@1.2.1...
arduino:arduinoOTA@1.2.1 installed
Installing arduino:samd@1.8.11...
Configuring platform...
arduino:samd@1.8.11 installed
$ arduino-cli core list
ID Installed Latest Name
arduino:samd 1.8.11 1.8.11 Arduino SAMD Boards (32-bits ARM Cortex-M0+)
$ arduino-cli board search arduino:samd:mkrwifi1010
Board Name FQBN Platform ID
Arduino MKR WiFi 1010 arduino:samd:mkrwifi1010 arduino:samd
```
### Expected behavior
1. `board search` is expected to work with every core version
2. `board list` Latest field should show the latest core version available
### Environment
- CLI version (output of `arduino-cli version`): `arduino-cli alpha Version: 0.18.3 Commit: d710b642 Date: 2021-05-26T07:39:22Z` but the problem seems to be present also from `0.17.0` (I did not try earlier versions)
- OS and platform: Both Ubuntu 18.04 and MacOS Big Sur
### Additional context
I tried to debug the problem, It seems it's not a visualization problem, but a init related one
and fixed here:
arduino:master
← arduino:scerza/board-search-old-core
opened 01:48PM - 24 Aug 21 UTC
**Please check if the PR fulfills these requirements**
- [x] The PR has no du… plicates (please search among the [Pull Requests](https://github.com/arduino/arduino-cli/pulls)
before creating one)
- [x] The PR follows
[our contributing guidelines](https://arduino.github.io/arduino-cli/latest/CONTRIBUTING/#pull-requests)
- [x] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
- [ ] `UPGRADING.md` has been updated with a migration guide (for breaking changes)
* **What kind of change does this PR introduce?**
Fixes a bug with an existing command and related gRPC function.
- **What is the current behavior?**
`board search` command and related gRPC function don't return board FQBNs belonging to an installed core if it's not the latest version available.
```
$ arduino-cli core list
ID Installed Latest Name
arduino:samd 1.8.10 1.8.11 Arduino SAMD Boards (32-bits ARM Cortex-M0+)
$ arduino-cli board search arduino:samd:mkrwifi1010
Board Name FQBN Platform ID
$ arduino-cli board search mkr wifi 1010
Board Name FQBN Platform ID
Arduino MKR WiFi 1010 arduino:samd
```
* **What is the new behavior?**
`board search` command and related gRPC function now correctly return all FQBNs of installed cores even if it's not the latest version available.
```
$ arduino-cli core list
ID Installed Latest Name
arduino:samd 1.8.10 1.8.11 Arduino SAMD Boards (32-bits ARM Cortex-M0+)
$ arduino-cli board search arduino:samd:mkrwifi1010
Board Name FQBN Platform ID
Arduino MKR WiFi 1010 arduino:samd:mkrwifi1010 arduino:samd
$ arduino-cli board search mkr wifi 1010
Board Name FQBN Platform ID
Arduino MKR WiFi 1010 arduino:samd:mkrwifi1010 arduino:samd
```
- **Does this PR introduce a breaking change, and is
[titled accordingly](https://arduino.github.io/arduino-cli/latest/CONTRIBUTING/#breaking)?**
Nope.
* **Other information**:
Partly fixes arduino/arduino-cli#1401.
---
See [how to contribute](https://arduino.github.io/arduino-cli/latest/CONTRIBUTING/)
The fix is available from the Arduino IDE 2.0.0-beta.12 release.
Thanks, will test once I do my next project!
system
Closed
March 15, 2022, 9:19am
16
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.