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

M5Stack Core2: Unexpected/inconsistent fqbn/board definitions #9423

Closed
1 task done
matthias-bs opened this issue Mar 26, 2024 · 10 comments
Closed
1 task done

M5Stack Core2: Unexpected/inconsistent fqbn/board definitions #9423

matthias-bs opened this issue Mar 26, 2024 · 10 comments
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@matthias-bs
Copy link
Contributor

Board

M5Stack Core2

Device Description

n.a.

Hardware Configuration

n.a.

Version

v2.0.14

IDE Name

Arduino IDE / arduino-cli

Operating System

Linux

Flash frequency

n.a.

PSRAM enabled

yes

Upload speed

n.a.

Description

Wrong FQBN in compiler output

Compiling a sketch in Arduino IDE v2.3.2 for target "M5Core2" prints the FQBN as esp32:esp32:m5stack_core2 in the log output.

The correct FQBN (as reported by arduino-cli v0.35.3 and proved to be valid in GitHub CI action) is esp32:esp32:m5stack-core2

(Dash instead of underscore.)

Espressif ESP32 package v2.0.14 was used in both cases!

Inconsistent define ARDUINO_M5STACK_CORE2 vs. ARDUINO_M5STACK_Core2

Observed when compiling a sketch in Arduino IDE v2.3.2 or with arduino-cli v0.35.3, respectively, for target "M5Core2" (both using Espressif ESP32 package v2.0.14): In one environment, the compiler flag was set as -DARDUINO_M5STACK_CORE2, in the other one as ARDUINO_M5STACK_Core2. Since preprocessor directives like #if defined(ARDUINO_M5STACK_CORE2) are case sensitive, both variants had to be considered in the source code.

Sketch

#if defined(ARDUINO_M5STACK_CORE2) || defined(ARDUINO_M5STACK_Core2)
    // Note: Depending on the environment, either variant is used!
    #pragma message("ARDUINO_M5STACK_CORE2 defined; assuming M5Stack Module LoRa868 will be used")
    #define USE_SX1276
#endif

(see https://github.com/matthias-bs/BresserWeatherSensorReceiver/blob/main/examples/BresserWeatherSensorM5Core2/BresserWeatherSensorM5Core2.ino)

Debug Message

n.a.

Other Steps to Reproduce

No response

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

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@matthias-bs matthias-bs added the Status: Awaiting triage Issue is waiting for triage label Mar 26, 2024
@matthias-bs matthias-bs changed the title Unexpected/inconsistent fqbb/board definitions Unexpected/inconsistent fqbn/board definitions Mar 26, 2024
@matthias-bs matthias-bs changed the title Unexpected/inconsistent fqbn/board definitions M5Stack Core2: Unexpected/inconsistent fqbn/board definitions Mar 26, 2024
@lbernstone
Copy link
Contributor

lbernstone commented Mar 26, 2024

The variant is never called out with a dash, and variant names should always get upcased. If arduino-cli is changing that, then that is something on the arduino side.

@me-no-dev
Copy link
Member

if you get different results with the same code here, but different apps, then issue must be in the apps. Really surprising to see such change though.

Your FQBNs start with esp32 which means that you are installing from Git. Are you sure you are on the correct version?

@matthias-bs
Copy link
Contributor Author

Yes, I double-checked the version.

@matthias-bs
Copy link
Contributor Author

matthias-bs commented Mar 27, 2024

The variant is never called out with a dash, and variant names should always get upcased. If arduino-cli is changing that, then that is something on the arduino side.

How about the FQBNs esp32:esp32:ttgo-lora32:Revision=TTGO_LoRa32_V1, esp32:esp32:ttgo-lora32:Revision=TTGO_LoRa32_V2, esp32:esp32:ttgo-lora32:Revision=TTGO_LoRa32_v21new? The variants have dashes.

The defines are ARDUINO_TTGO_LoRa32_V1, ARDUINO_TTGO_LoRa32_V2 and ARDUINO_TTGO_LoRa32_v21new, respectively.

I didn't encounter any problems with those in the same setups.

@lbernstone
Copy link
Contributor

Please explain in better detail what the difference is between the build environments. The relevant information comes from the boards.txt files, which look like the following in current master. Please check the files on your build machines.

ttgo-lora32.menu.Revision.TTGO_LoRa32_V2.build.board=TTGO_LoRa32_V2
ttgo-lora32.menu.Revision.TTGO_LoRa32_V2.build.variant=ttgo-lora32-v2
...
m5stack_core2.build.variant=m5stack_core2
m5stack_core2.build.board=M5STACK_CORE2

@matthias-bs
Copy link
Contributor Author

Local installation:

$ cd ~/.arduino15/packages/esp32/hardware/esp32/2.0.14
$ grep ttgo-lora32.menu.Revision.TTGO_LoRa32_V2 boards.txt
ttgo-lora32.menu.Revision.TTGO_LoRa32_V2=TTGO LoRa32 V2
ttgo-lora32.menu.Revision.TTGO_LoRa32_V2.build.board=TTGO_LoRa32_V2
ttgo-lora32.menu.Revision.TTGO_LoRa32_V2.build.variant=ttgo-lora32-v2
$ grep m5stack_core2 boards.txt
m5stack_core2.name=M5Core2
m5stack_core2.bootloader.tool=esptool_py
m5stack_core2.bootloader.tool.default=esptool_py
m5stack_core2.upload.tool=esptool_py
m5stack_core2.upload.tool.default=esptool_py
m5stack_core2.upload.tool.network=esp_ota
m5stack_core2.upload.maximum_size=6553600
m5stack_core2.upload.maximum_data_size=4521984
m5stack_core2.upload.flags=
m5stack_core2.upload.extra_flags=
m5stack_core2.serial.disableDTR=true
m5stack_core2.serial.disableRTS=true
m5stack_core2.build.tarch=xtensa
m5stack_core2.build.bootloader_addr=0x1000
m5stack_core2.build.target=esp32
m5stack_core2.build.mcu=esp32
m5stack_core2.build.core=esp32
m5stack_core2.build.variant=m5stack_core2
m5stack_core2.build.board=M5STACK_CORE2
m5stack_core2.build.f_cpu=240000000L
m5stack_core2.build.flash_size=16MB
m5stack_core2.build.flash_freq=80m
m5stack_core2.build.flash_mode=dio
m5stack_core2.build.boot=dio
m5stack_core2.build.partitions=default
m5stack_core2.build.defines=
m5stack_core2.build.loop_core=
m5stack_core2.build.event_core=
m5stack_core2.menu.PSRAM.enabled=Enabled
m5stack_core2.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw
m5stack_core2.menu.PSRAM.enabled.build.extra_libs=
m5stack_core2.menu.PSRAM.disabled=Disabled
m5stack_core2.menu.PSRAM.disabled.build.defines=
m5stack_core2.menu.PSRAM.disabled.build.extra_libs=
m5stack_core2.menu.PartitionScheme.default=Default (2 x 6.5 MB app, 3.6 MB SPIFFS)
m5stack_core2.menu.PartitionScheme.default.build.partitions=default_16MB
m5stack_core2.menu.PartitionScheme.default.upload.maximum_size=6553600
m5stack_core2.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
m5stack_core2.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
m5stack_core2.menu.PartitionScheme.default_8MB=8M with spiffs (3MB APP/1.5MB SPIFFS)
m5stack_core2.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
m5stack_core2.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
m5stack_core2.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
m5stack_core2.menu.PartitionScheme.minimal.build.partitions=minimal
m5stack_core2.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
m5stack_core2.menu.PartitionScheme.no_ota.build.partitions=no_ota
m5stack_core2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
m5stack_core2.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
m5stack_core2.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
m5stack_core2.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
m5stack_core2.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
m5stack_core2.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
m5stack_core2.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
m5stack_core2.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
m5stack_core2.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
m5stack_core2.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
m5stack_core2.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
m5stack_core2.menu.PartitionScheme.huge_app.build.partitions=huge_app
m5stack_core2.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
m5stack_core2.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
m5stack_core2.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
m5stack_core2.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
m5stack_core2.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FATFS)
m5stack_core2.menu.PartitionScheme.fatflash.build.partitions=ffat
m5stack_core2.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
m5stack_core2.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9.9MB FATFS)
m5stack_core2.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
m5stack_core2.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
m5stack_core2.menu.PartitionScheme.rainmaker=RainMaker
m5stack_core2.menu.PartitionScheme.rainmaker.build.partitions=rainmaker
m5stack_core2.menu.PartitionScheme.rainmaker.upload.maximum_size=3145728
m5stack_core2.menu.PartitionScheme.custom=Custom
m5stack_core2.menu.PartitionScheme.custom.build.partitions=
m5stack_core2.menu.PartitionScheme.custom.upload.maximum_size=16777216
m5stack_core2.menu.CPUFreq.240=240MHz (WiFi/BT)
m5stack_core2.menu.CPUFreq.240.build.f_cpu=240000000L
m5stack_core2.menu.CPUFreq.160=160MHz (WiFi/BT)
m5stack_core2.menu.CPUFreq.160.build.f_cpu=160000000L
m5stack_core2.menu.CPUFreq.80=80MHz (WiFi/BT)
m5stack_core2.menu.CPUFreq.80.build.f_cpu=80000000L
m5stack_core2.menu.CPUFreq.40=40MHz (40MHz XTAL)
m5stack_core2.menu.CPUFreq.40.build.f_cpu=40000000L
m5stack_core2.menu.CPUFreq.26=26MHz (26MHz XTAL)
m5stack_core2.menu.CPUFreq.26.build.f_cpu=26000000L
m5stack_core2.menu.CPUFreq.20=20MHz (40MHz XTAL)
m5stack_core2.menu.CPUFreq.20.build.f_cpu=20000000L
m5stack_core2.menu.CPUFreq.13=13MHz (26MHz XTAL)
m5stack_core2.menu.CPUFreq.13.build.f_cpu=13000000L
m5stack_core2.menu.CPUFreq.10=10MHz (40MHz XTAL)
m5stack_core2.menu.CPUFreq.10.build.f_cpu=10000000L
m5stack_core2.menu.FlashMode.qio=QIO
m5stack_core2.menu.FlashMode.qio.build.flash_mode=dio
m5stack_core2.menu.FlashMode.qio.build.boot=qio
m5stack_core2.menu.FlashMode.dio=DIO
m5stack_core2.menu.FlashMode.dio.build.flash_mode=dio
m5stack_core2.menu.FlashMode.dio.build.boot=dio
m5stack_core2.menu.FlashMode.qout=QOUT
m5stack_core2.menu.FlashMode.qout.build.flash_mode=dout
m5stack_core2.menu.FlashMode.qout.build.boot=qout
m5stack_core2.menu.FlashMode.dout=DOUT
m5stack_core2.menu.FlashMode.dout.build.flash_mode=dout
m5stack_core2.menu.FlashMode.dout.build.boot=dout
m5stack_core2.menu.FlashFreq.80=80MHz
m5stack_core2.menu.FlashFreq.80.build.flash_freq=80m
m5stack_core2.menu.FlashFreq.40=40MHz
m5stack_core2.menu.FlashFreq.40.build.flash_freq=40m
m5stack_core2.menu.FlashSize.16M=16MB (128Mb)
m5stack_core2.menu.FlashSize.16M.build.flash_size=16MB
m5stack_core2.menu.UploadSpeed.1500000=1500000
m5stack_core2.menu.UploadSpeed.1500000.upload.speed=1500000
m5stack_core2.menu.UploadSpeed.921600=921600
m5stack_core2.menu.UploadSpeed.921600.upload.speed=921600
m5stack_core2.menu.UploadSpeed.115200=115200
m5stack_core2.menu.UploadSpeed.115200.upload.speed=115200
m5stack_core2.menu.UploadSpeed.256000.windows=256000
m5stack_core2.menu.UploadSpeed.256000.upload.speed=256000
m5stack_core2.menu.UploadSpeed.230400.windows.upload.speed=256000
m5stack_core2.menu.UploadSpeed.230400=230400
m5stack_core2.menu.UploadSpeed.230400.upload.speed=230400
m5stack_core2.menu.UploadSpeed.460800.linux=460800
m5stack_core2.menu.UploadSpeed.460800.macosx=460800
m5stack_core2.menu.UploadSpeed.460800.upload.speed=460800
m5stack_core2.menu.UploadSpeed.512000.windows=512000
m5stack_core2.menu.UploadSpeed.512000.upload.speed=512000
m5stack_core2.menu.LoopCore.1=Core 1
m5stack_core2.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
m5stack_core2.menu.LoopCore.0=Core 0
m5stack_core2.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0
m5stack_core2.menu.EventsCore.1=Core 1
m5stack_core2.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
m5stack_core2.menu.EventsCore.0=Core 0
m5stack_core2.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
m5stack_core2.menu.DebugLevel.none=None
m5stack_core2.menu.DebugLevel.none.build.code_debug=0
m5stack_core2.menu.DebugLevel.error=Error
m5stack_core2.menu.DebugLevel.error.build.code_debug=1
m5stack_core2.menu.DebugLevel.warn=Warn
m5stack_core2.menu.DebugLevel.warn.build.code_debug=2
m5stack_core2.menu.DebugLevel.info=Info
m5stack_core2.menu.DebugLevel.info.build.code_debug=3
m5stack_core2.menu.DebugLevel.debug=Debug
m5stack_core2.menu.DebugLevel.debug.build.code_debug=4
m5stack_core2.menu.DebugLevel.verbose=Verbose
m5stack_core2.menu.DebugLevel.verbose.build.code_debug=5
m5stack_core2.menu.EraseFlash.none=Disabled
m5stack_core2.menu.EraseFlash.none.upload.erase_cmd=
m5stack_core2.menu.EraseFlash.all=Enabled
m5stack_core2.menu.EraseFlash.all.upload.erase_cmd=-e
$ ~/install/arduino-ide_2.3.2_Linux_64bit.AppImage 
Arduino IDE 2.3.2
Checking for frontend application configuration customizations. Module path: /tmp/.mount_arduinsJBnHx/resources/app/lib/backend/electron-main.js, destination 'package.json': /tmp/.mount_arduinsJBnHx/resources/app/package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.2" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.35.3" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-02-20T09:54:08.669Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{}},"defaultLocale":"","validatePreferencesSchema":false,"preferences":{"window.title":"${rootName}${activeEditorShort}${appName}","files.autoSave":"afterDelay","editor.minimap.enabled":false,"editor.tabSize":2,"editor.scrollBeyondLastLine":false,"editor.quickSuggestions":{"other":false,"comments":false,"strings":false},"editor.maxTokenizationLineLength":500,"editor.bracketPairColorization.enabled":false,"breadcrumbs.enabled":false,"workbench.tree.renderIndentGuides":"none","explorer.compactFolders":false},"appVersion":"2.3.2","cliVersion":"0.35.3","buildDate":"2024-02-20T09:54:08.669Z"}
[...]

@matthias-bs
Copy link
Contributor Author

matthias-bs commented Mar 28, 2024

Github action:

https://productionresultssa10.blob.core.windows.net/actions-results/6d1e3bf8-519c-4e7a-999e-8860841d6373/workflow-job-run-16570adb-75b7-5890-a681-07c7a8bd2001/logs/job/job-logs.txt?rsct=text%2Fplain&se=2024-03-28T21%3A13%3A56Z&sig=P8huNbzYM2yCL4v4zwaENUtAB63uwCzQxVbyA3RbKxM%3D&sp=r&spr=https&sr=b&st=2024-03-28T21%3A03%3A51Z&sv=2021-12-02

[...]
Installing in /home/runner/.local/bin
ARCH=64bit
OS=Linux
Using curl as download tool
Downloading https://downloads.arduino.cc/arduino-cli/arduino-cli_0.35.3_Linux_64bit.tar.gz
arduino-cli  Version: 0.35.3 Commit: 95cfd654 Date: 2024-02-19T13:24:24Z installed successfully in /home/runner/.local/bin
[...]
Installing platform esp32:[email protected]...
Skipping platform configuration....
Platform esp32:[email protected] installed
[...]

$ cd /home/runner
$ grep ttgo-lora32.menu.Revision.TTGO_LoRa32_V2 ./.arduino15/packages/esp32/hardware/esp32/2.0.14/boards.txt
ttgo-lora32.menu.Revision.TTGO_LoRa32_V2=TTGO LoRa32 V2
ttgo-lora32.menu.Revision.TTGO_LoRa32_V2.build.board=TTGO_LoRa32_V2
ttgo-lora32.menu.Revision.TTGO_LoRa32_V2.build.variant=ttgo-lora32-v2
$ grep m5stack_core2 ./.arduino15/packages/esp32/hardware/esp32/2.0.14/boards.txt
m5stack-core2.build.variant=m5stack_core2
$ grep m5stack-core2 ./.arduino15/packages/esp32/hardware/esp32/2.0.14/boards.txt
m5stack-core2.name=M5Stack-Core2
m5stack-core2.bootloader.tool=esptool_py
m5stack-core2.bootloader.tool.default=esptool_py
m5stack-core2.upload.tool=esptool_py
m5stack-core2.upload.tool.default=esptool_py
m5stack-core2.upload.tool.network=esp_ota
m5stack-core2.upload.maximum_size=6553600
m5stack-core2.upload.maximum_data_size=4521984
m5stack-core2.upload.wait_for_upload_port=true
m5stack-core2.upload.flags=
m5stack-core2.upload.extra_flags=
m5stack-core2.serial.disableDTR=true
m5stack-core2.serial.disableRTS=true
m5stack-core2.build.tarch=xtensa
m5stack-core2.build.bootloader_addr=0x1000
m5stack-core2.build.target=esp32
m5stack-core2.build.mcu=esp32
m5stack-core2.build.core=esp32
m5stack-core2.build.variant=m5stack_core2
m5stack-core2.build.board=M5STACK_Core2
m5stack-core2.build.f_cpu=240000000L
m5stack-core2.build.flash_size=16MB
m5stack-core2.build.flash_freq=80m
m5stack-core2.build.flash_mode=dio
m5stack-core2.build.boot=dio
m5stack-core2.build.partitions=default_16MB
m5stack-core2.build.defines=
m5stack-core2.menu.PSRAM.enabled=Enabled
m5stack-core2.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw
m5stack-core2.menu.PSRAM.enabled.build.extra_libs=
m5stack-core2.menu.PSRAM.disabled=Disabled
m5stack-core2.menu.PSRAM.disabled.build.defines=
m5stack-core2.menu.PSRAM.disabled.build.extra_libs=
m5stack-core2.menu.PartitionScheme.default=Default (2 x 6.5 MB app, 3.6 MB SPIFFS)
m5stack-core2.menu.PartitionScheme.default.build.partitions=default_16MB
m5stack-core2.menu.PartitionScheme.default.upload.maximum_size=6553600
m5stack-core2.menu.PartitionScheme.large_spiffs=Large SPIFFS (7 MB)
m5stack-core2.menu.PartitionScheme.large_spiffs.build.partitions=large_spiffs_16MB
m5stack-core2.menu.PartitionScheme.large_spiffs.upload.maximum_size=4685824
m5stack-core2.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
m5stack-core2.menu.PartitionScheme.minimal.build.partitions=minimal
m5stack-core2.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
m5stack-core2.menu.PartitionScheme.no_ota.build.partitions=no_ota
m5stack-core2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
m5stack-core2.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
m5stack-core2.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
m5stack-core2.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
m5stack-core2.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
m5stack-core2.menu.PartitionScheme.huge_app.build.partitions=huge_app
m5stack-core2.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
m5stack-core2.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
m5stack-core2.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
m5stack-core2.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
m5stack-core2.menu.CPUFreq.240=240MHz (WiFi/BT)
m5stack-core2.menu.CPUFreq.240.build.f_cpu=240000000L
m5stack-core2.menu.CPUFreq.160=160MHz (WiFi/BT)
m5stack-core2.menu.CPUFreq.160.build.f_cpu=160000000L
m5stack-core2.menu.CPUFreq.80=80MHz (WiFi/BT)
m5stack-core2.menu.CPUFreq.80.build.f_cpu=80000000L
m5stack-core2.menu.CPUFreq.40=40MHz (40MHz XTAL)
m5stack-core2.menu.CPUFreq.40.build.f_cpu=40000000L
m5stack-core2.menu.CPUFreq.26=26MHz (26MHz XTAL)
m5stack-core2.menu.CPUFreq.26.build.f_cpu=26000000L
m5stack-core2.menu.CPUFreq.20=20MHz (40MHz XTAL)
m5stack-core2.menu.CPUFreq.20.build.f_cpu=20000000L
m5stack-core2.menu.CPUFreq.13=13MHz (26MHz XTAL)
m5stack-core2.menu.CPUFreq.13.build.f_cpu=13000000L
m5stack-core2.menu.CPUFreq.10=10MHz (40MHz XTAL)
m5stack-core2.menu.CPUFreq.10.build.f_cpu=10000000L
m5stack-core2.menu.UploadSpeed.921600=921600
m5stack-core2.menu.UploadSpeed.921600.upload.speed=921600
m5stack-core2.menu.UploadSpeed.115200=115200
m5stack-core2.menu.UploadSpeed.115200.upload.speed=115200
m5stack-core2.menu.UploadSpeed.256000.windows=256000
m5stack-core2.menu.UploadSpeed.256000.upload.speed=256000
m5stack-core2.menu.UploadSpeed.230400.windows.upload.speed=256000
m5stack-core2.menu.UploadSpeed.230400=230400
m5stack-core2.menu.UploadSpeed.230400.upload.speed=230400
m5stack-core2.menu.UploadSpeed.460800.linux=460800
m5stack-core2.menu.UploadSpeed.460800.macosx=460800
m5stack-core2.menu.UploadSpeed.460800.upload.speed=460800
m5stack-core2.menu.UploadSpeed.512000.windows=512000
m5stack-core2.menu.UploadSpeed.512000.upload.speed=512000
m5stack-core2.menu.UploadSpeed.1500000=1500000
m5stack-core2.menu.UploadSpeed.1500000.upload.speed=1500000
m5stack-core2.menu.DebugLevel.none=None
m5stack-core2.menu.DebugLevel.none.build.code_debug=0
m5stack-core2.menu.DebugLevel.error=Error
m5stack-core2.menu.DebugLevel.error.build.code_debug=1
m5stack-core2.menu.DebugLevel.warn=Warn
m5stack-core2.menu.DebugLevel.warn.build.code_debug=2
m5stack-core2.menu.DebugLevel.info=Info
m5stack-core2.menu.DebugLevel.info.build.code_debug=3
m5stack-core2.menu.DebugLevel.debug=Debug
m5stack-core2.menu.DebugLevel.debug.build.code_debug=4
m5stack-core2.menu.DebugLevel.verbose=Verbose
m5stack-core2.menu.DebugLevel.verbose.build.code_debug=5
m5stack-core2.menu.EraseFlash.none=Disabled
m5stack-core2.menu.EraseFlash.none.upload.erase_cmd=
m5stack-core2.menu.EraseFlash.all=Enabled
m5stack-core2.menu.EraseFlash.all.upload.erase_cmd=-e

@matthias-bs
Copy link
Contributor Author

Okay, the boards.txt files have the same version, but are different...

Local installation (Arduino IDE):

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

Github:

echo "index-url=--additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json" >> $GITHUB_OUTPUT

I can't see any difference in there... Weird!

@lbernstone
Copy link
Contributor

For better maintenance, M5 group has changed the files on you :)
#9086
The file tagged in 2.0.14 shows build.board=M5STACK_Core2. Current master is M5STACK_CORE2. You decide which you think is right...
https://github.com/espressif/arduino-esp32/blob/2.0.14/boards.txt#L13861

@matthias-bs
Copy link
Contributor Author

Okay - the definitions in the board.txt file have been changed while the board package version still remains the same (v2.0.14).
I didn't expect that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

No branches or pull requests

3 participants