Boardmanager does not know ESP32/8266 boards

Hi,
I installed the ESP boards JSON just as in 1.8, but the ESP boards are not in the board list.
Win64 version 2.0 beta 3. Firewall exception has been set when message appeared. Maybe more firewall messages not seen or in relation to the Defender message at installation?
Not urgent for me. Good luck and thanks for your work.

Hi @diavolothecat. Please try this:

(in Arduino IDE 2.0) File > Preferences

In the "Additional Boards Manager URLs" field, add the Boards Manager URLs for the ESP8266 and ESP32 boards platforms, separated by a comma:

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json,https://arduino.esp8266.com/stable/package_esp8266com_index.json

Click the "OK" button.

Restart Arduino IDE

You should now see the boards in the boards menus. Even though you already added these URLs in your classic Arduino IDE preferences, Arduino IDE 2.x uses a different preferences file format, so the preferences aren't shared between the two IDE versions and you must manually transfer them over. So if you're using any other 3rd party boards platforms, make sure to do the same as I described above for their Boards Manager URLs as well. The official boards will already be accessible.

Added the Additional Boards Manager URL, as above.
Selected ESP8266 Generic Module.
Compiled ESP8266 Blink from Examples.
Error:

c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Temp\arduino-core-cache\core_a7d464965908bbb148bbfb33054746d7.a(core_esp8266_main.cpp.o): in function `can_yield':
C:\Users\Wayne\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_main.cpp:106: undefined reference to `run_scheduled_recurrent_functions()'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Temp\arduino-core-cache\core_a7d464965908bbb148bbfb33054746d7.a(core_esp8266_main.cpp.o): in function `__esp_yield':
C:\Users\Wayne\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_main.cpp:116: undefined reference to `run_scheduled_recurrent_functions()'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Temp\arduino-core-cache\core_a7d464965908bbb148bbfb33054746d7.a(core_esp8266_main.cpp.o): in function `do_global_ctors':
C:\Users\Wayne\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_main.cpp:221: undefined reference to `run_scheduled_functions()'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Temp\arduino-core-cache\core_a7d464965908bbb148bbfb33054746d7.a(core_esp8266_main.cpp.o): in function `__loop_end':
C:\Users\Wayne\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_main.cpp:256: undefined reference to `run_scheduled_functions()'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_main.cpp:256: undefined reference to `run_scheduled_recurrent_functions()'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Temp\arduino-core-cache\core_a7d464965908bbb148bbfb33054746d7.a(core_esp8266_postmortem.cpp.o):(.text.__wrap_system_restart_local+0x74): undefined reference to `stack_thunk_get_stack_bot'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Temp\arduino-core-cache\core_a7d464965908bbb148bbfb33054746d7.a(core_esp8266_postmortem.cpp.o):(.text.__wrap_system_restart_local+0x78): undefined reference to `stack_thunk_get_stack_top'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Temp\arduino-core-cache\core_a7d464965908bbb148bbfb33054746d7.a(core_esp8266_postmortem.cpp.o):(.text.__wrap_system_restart_local+0x80): undefined reference to `stack_thunk_get_cont_sp'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Temp\arduino-core-cache\core_a7d464965908bbb148bbfb33054746d7.a(core_esp8266_postmortem.cpp.o): in function `__wrap_system_restart_local':
C:\Users\Wayne\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_postmortem.cpp:140: undefined reference to `stack_thunk_get_stack_bot'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_postmortem.cpp:141: undefined reference to `stack_thunk_get_stack_top'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_postmortem.cpp:174: undefined reference to `stack_thunk_get_stack_top'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_postmortem.cpp:183: undefined reference to `stack_thunk_get_stack_top'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/core_esp8266_postmortem.cpp:187: undefined reference to `stack_thunk_get_cont_sp'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Temp\arduino-core-cache\core_a7d464965908bbb148bbfb33054746d7.a(sntp-lwip2.cpp.o):(.text.settimeofday+0x20): undefined reference to `schedule_recurrent_function_us(std::function<bool ()> const&, unsigned int, std::function<bool ()> const&)'
c:/users/wayne/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Wayne\AppData\Local\Temp\arduino-core-cache\core_a7d464965908bbb148bbfb33054746d7.a(sntp-lwip2.cpp.o): in function `settimeofday':
c:\users\wayne\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506\xtensa-lx106-elf\include\c++\4.8.2/functional:2380: undefined reference to `schedule_recurrent_function_us(std::function<bool ()> const&, unsigned int, std::function<bool ()> const&)'
collect2.exe: error: ld returned 1 exit status
Compilation error: Error: 2 UNKNOWN: exit status 1

I'm sorry to hear you're having a problem with the compilation. I just tried it out with the following configuration:

  • Windows 10 64 bit
  • Arduino IDE 2.0.0-beta.3
  • Boards platform: esp8266 2.7.4 (from the output you posted, I can see you're using the same)
  • Board: Tools > Board > ESP8266 Generic Module
  • Sketch: File > Examples > ESP8266 > Blink

It compiles fine for me.

Are you using the same exact configuration as I described above?

Does the sketch compile if you use the classic Arduino IDE 1.8.x with the same configuration?

Thanks for your response.
I checked my settings; they are the same as you described.
Compiles without error on Arduino IDE 18.1.13.

On Arduino 2.0.0-beta.3, Board = "Generic ESP8266" fails with the error message I posted.
Board = "Generic ESP8285" compiles without error. Hmm.

That is certainly strange. I don't have any hypotheses about what could cause this, so I'll take a wild guess just in case we get lucky. You can try uninstalling and then reinstalling the ESP8266 boards platform. I have no reason to think this will solve it, but it's easy enough to do:

  • (In the Arduino IDE 2.x) Tools > Board > Boards Manager
  • Scroll down through the list of boards platforms until you see "esp8266 by ESP8266 Community".
  • Click the "Installed' button (it will change to "Uninstall" when you hover the mouse pointer over it).
  • In the confirmation dialog that appears, click "Yes'.
  • Wait for the "Uninstallation in progress" window to disappear.
  • In the Boards Manager pane, hover the mouse pointer over the "esp8266 by ESP8266 Community" entry.
  • Click on the version menu that appears.
  • Click on "2.7.4".
  • Click the "Install" button.
  • Wait for the "Installation in progress" window to disappear.

Now try compiling the sketch again.

I uninstalled/installed the "esp8266 by ESP8266 Community" boards.
Compiled File > Examples > ESP8266 > Blink
Got one error message, but ended with "Compilation complete."
Compiled again, no error messages.
So, problem solved?

:\Users\Wayne\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506/bin/xtensa-lx106-elf-ar: unable to rename 'C:\Users\Wayne\AppData\Local\Temp\arduino-sketch-BE5F96A60B0011A1DE37425D15F96699\core\core.a'; reason: File exists
Compilation error: Error: 2 UNKNOWN: exit status 1
Executable segment sizes:
IROM   : 228624          - code in flash         (default or ICACHE_FLASH_ATTR) 
IRAM   : 26756   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...) 
DATA   : 1248  )         - initialized variables (global, static) in RAM/HEAP 
RODATA : 688   ) / 81920 - constants             (global, static) in RAM/HEAP 
BSS    : 24880 )         - zeroed variables      (global, static) in RAM/HEAP 
Sketch uses 257316 bytes (26%) of program storage space. Maximum is 958448 bytes.
Global variables use 26816 bytes (32%) of dynamic memory, leaving 55104 bytes for local variables. Maximum is 81920 bytes.
--------------------------
Compilation complete.

I have noticed that, unlike the Arduino IDE 1.x, Arduino IDE 2.x currently allows you to start concurrent compilation or upload processes by clicking the button multiple times (IDE 1.x disables the button until the process is finished) and doing this will often result in one of the multiple compilation processes failing due to conflicts. I wonder if this is what caused this error?

I don't think it would be possible for a single compilation process to continue to showing the "Compilation complete" message after an "exit status 1", so this is why it seems like this is the output for multiple processes. This is definitely not normal output, but if it doesn't recurr under normal circumstances then it's probably nothing to worry about.

It seems like it. Of course, it is unsatisfying to not discover the actual cause of the original problem, but sometimes you can just be grateful that it went away and get back to having fun with Arduino. I'm certainly going to be keeping an eye out for any reports of similar issues. If I start seeing additional reports of the same sort of thing, I'll continue with the investigation and escalate it to the developers.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.