Hey.
I am trying to make a project using platformio for my M5Stack Core module.
The PCB in the module states:
V2.61
2021-0907
I suspect that it has 16Mb flash.
If I run the code:
But when I compile i get:
PLATFORM: Espressif 32 (2023.7.0) > M5Stack Core ESP32
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
I suspected this had something to do with the platformio board definition - here is the ini file I had:
[env:m5stack-core-esp32]
platform = espressif32
board = m5stack-core-esp32
framework = arduino
So I tried to use “m5stack-core-esp32-16M” instead. I even tried to create a new project, and chose this board, but this keeps telling me that this is an unrecognized board…??
Thanks, but unfortunately you miss the last point:
It seems that board = m5stack-core-esp32-16M is not recognized, even though being an option - meaning:
For example, if I create a new project through platformio, I have the name, board and framework selections. Lets say I chooose “testie” as name, and “M5Stack Core ESP32 16M” as the board, and Arduino as framework.
When I click finish I get this message:
Could not initialize project
PIO Core Call Error: “The following files/directories have been created in C:\Users\NotMyName\Documents\PlatformIO\Projects\testie\r\ninclude - Put project header files here\r\nlib - Put project specific (private) libraries here\r\nsrc - Put project source files here\r\nplatformio.ini - Project Configuration File\r\nResolving m5stack-core-esp32-16M dependencies…\r\n\n\nUnknownBoard: Unknown board ID ‘m5stack-core-esp32-16M’”