-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Comments
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. |
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 |
Yes, I double-checked the version. |
How about the FQBNs The defines are I didn't encounter any problems with those in the same setups. |
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.
|
Local installation:
|
Github action:
|
Okay, the boards.txt files have the same version, but are different... Local installation (Arduino IDE):
Github:
I can't see any difference in there... Weird! |
For better maintenance, M5 group has changed the files on you :) |
Okay - the definitions in the board.txt file have been changed while the board package version still remains the same (v2.0.14). |
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 asARDUINO_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
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: