Description
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.