Skip to content

Malformed boards.txt in release 2.0.6 #7684

Closed
@rlipas

Description

@rlipas

Board

ESP32 Dev Module

Device Description

The issue is not device dependent.

Hardware Configuration

Issues happens with no extra hardware.

Version

v2.0.6

IDE Name

arduino-cli

Operating System

Ubuntu 22.10

Flash frequency

40Mhz

PSRAM enabled

no

Upload speed

921600

Description

The boards.txt file is missing menu entries for a new board (heltec_wifi_lora_32_V3). This causes some problems with arduino-cli monitor and possibly others:

$ arduino-cli monitor -b esp32:esp32:esp32 -p /dev/ttyUSB0 -c baudrate=115200
Error initializing instance: Error loading hardware platform: loading platform release esp32:[email protected]: loading boards: skipping loading of boards esp32:esp32:heltec_wifi_lora_32_V3: malformed custom board options
Error getting port settings details: No monitor available for the port protocol serial

I was able to get around this problem by adding the missing menu entries descriptions at the beginning of the file:

...
menu.LORAWAN_DEVEUI=LoRaWan DevEUI
menu.LORAWAN_PREAMBLE_LENGTH=LoRaWan Preamble Length
...

Sketch

No sketch needed. To reproduce, just call the monitor command of arduino-cli:

arduino-cli monitor -b esp32:esp32:esp32 -p /dev/ttyUSB0 -c baudrate=115200

Debug Message

Error initializing instance: Error loading hardware platform: loading platform release esp32:[email protected]: loading boards: skipping loading of boards esp32:esp32:heltec_wifi_lora_32_V3: malformed custom board options
Error getting port settings details: No monitor available for the port protocol serial

Other Steps to Reproduce

Patch for a working boards.txt:

--- /home/rlipas/.arduino15/packages/esp32/hardware/esp32/2.0.6/boards.txt	2023-01-09 11:31:03.481477791 +0000
+++ Arduino/.arduino15/packages/esp32/hardware/esp32/2.0.6/boards.txt	2023-01-09 11:37:06.186806349 +0000
@@ -18,8 +18,10 @@
 menu.EventsCore=Events Run On
 menu.MemoryType=Memory Type
 menu.EraseFlash=Erase All Flash Before Sketch Upload
 menu.JTAGAdapter=JTAG Adapter
+menu.LORAWAN_DEVEUI=LoRaWan DevEUI
+menu.LORAWAN_PREAMBLE_LENGTH=LoRaWan Preamble Length
 
 ##############################################################
 ### DO NOT PUT BOARDS ABOVE THE OFFICIAL ESPRESSIF BOARDS! ###
 ##############################################################

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions