Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malformed boards.txt in release 2.0.6 #7684

Closed
1 task done
rlipas opened this issue Jan 9, 2023 · 0 comments · Fixed by #7697
Closed
1 task done

Malformed boards.txt in release 2.0.6 #7684

rlipas opened this issue Jan 9, 2023 · 0 comments · Fixed by #7697
Assignees
Milestone

Comments

@rlipas
Copy link
Contributor

rlipas commented Jan 9, 2023

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:esp32@2.0.6: 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:esp32@2.0.6: 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

3 participants