Arduino-cli esp8266 error initializing instance esp8266:esp8266@2.6.3

This is similar to previous closed topics which didn't help me get rid of the error.
Actually, I can compile and upload fine, but the error message is distracting since I'm not using the esp8266 right now. I.e., I am developing a Teensy 4.1 project,

$ arduino-cli upload -p /dev/ttyACM0 -b teensy:avr:teensy41 /home/pinaar/wss/WebLogger 
Error initializing instance: loading platform release esp8266:esp8266@2.6.3: loading boards: skipping loading of boards esp8266:esp8266:espduino: malformed custom board options
pinaar@cs1:~/wss$ sudo putty /dev/ttyACM0 -serial -sercfg 115200,8,n,1,N

I just want to get rid of the error message. I only added the esp8266 json file to ~/.arduino15/arduino-cli.yaml because I thought it might help, but it didn't. I.e,

board_manager:
  additional_urls:
  - https://www.pjrc.com/teensy/td_156/package_teensy_index.json
  - https://arduino.esp8266.com/stable/package_esp8266com_index.json

I just love Arduino-cli because it does everything the IDE did, for my purposes! Only it works better because use Vi to edit the source and I kept fighting the IDE's editor before.

Hi @pinaar. The error is caused by a misconfiguration of this specific board of the esp8266:esp8266 boards platform. Arduino CLI is more strict about these configurations than Arduino IDE 1.x.

However, I am surprised to see this because one of the Arduino CLI developers submitted a fix for the bad configuration last summer:

That fix is in the last two releases of the esp8266:esp8266 boards platform (3.0.1 and 3.0.2). Do you have an old version of esp8266:esp8266 installed? If so, and if you don't have any specific reason not to, please update to the latest version:

arduino-cli core upgrade "esp8266:esp8266"
1 Like

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