Today I noticed that the M5Stack Paper board (ID: m5stack_paper) can no longer be found in the docs. I can still find it in my Board Explorer, but the link shows “Page not found.”
Was this deleted intentionally, or did I overlook something?
Today I noticed that the M5Stack Paper board (ID: m5stack_paper) can no longer be found in the docs. I can still find it in my Board Explorer, but the link shows “Page not found.”
Was this deleted intentionally, or did I overlook something?
Do you use pioarduino’s Espressif32 Platform?
There is a board manifest for m5stack-paper.json
PlatformIO probably never had this board manifest ?! (See platform-espressif32/boards at develop · platformio/platform-espressif32 · GitHub)
In this case, there is no PlatformIO documentation for this board.
Something went wrong while pasting the link.
No, I did not use the pioarduino’s Espressif32 Platform. Here is the ini file for the project that compiles just fine on my old PC:
[env:m5stack_paper]
platform = espressif32
board = m5stack_paper
framework = arduino
monitor_speed = 115200
lib_deps =
m5stack/M5Unified@>=0.2.5
m5stack/M5GFX@>=0.2.7
bblanchon/ArduinoJson
knolleary/PubSubClient@^2.8
In the meantime, I found these two files in the PlatformIO folder on my old PC. When I copy these to other PCs, I can compile again with no errors.
Do you know of a more elegant way to do this? For example, can I store and reference these files inside my project? Would it be worth creating a GitHub issue to restore these files?
C:\Users\%USERNAME%\.platformio\platforms\espressif32\boards\m5stack_paper.json:
{
"build": {
"arduino":{
"partitions": "default_16MB.csv"
},
"core": "esp32",
"extra_flags": "-DARDUINO_M5STACK_Paper -DBOARD_HAS_PSRAM",
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"mcu": "esp32",
"variant": "m5stack_paper"
},
"connectivity": [
"wifi",
"bluetooth",
"ethernet",
"can"
],
"frameworks": [
"arduino",
"espidf"
],
"name": "M5Stack Paper",
"upload": {
"flash_size": "16MB",
"maximum_ram_size": 4521984,
"maximum_size": 16777216,
"require_upload_port": true,
"speed": 460800
},
"url": "http://www.m5stack.com",
"vendor": "M5Stack"
}
C:\Users\%USERNAME%\.platformio\packages\framework-arduinoespressif32\variants\m5stack_paper\pins_arduino.h:
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#define TX2 14
#define RX2 13
static const uint8_t TX = 1;
static const uint8_t RX = 3;
static const uint8_t SDA = 25;
static const uint8_t SCL = 32;
static const uint8_t SS = 15;
static const uint8_t MOSI = 12;
static const uint8_t MISO = 13;
static const uint8_t SCK = 14;
static const uint8_t G25 = 25;
static const uint8_t G32 = 32;
static const uint8_t G26 = 26;
static const uint8_t G33 = 33;
static const uint8_t G18 = 18;
static const uint8_t G19 = 19;
static const uint8_t G21 = 21;
static const uint8_t G22 = 22;
static const uint8_t G36 = 36;
static const uint8_t G2 = 2;
static const uint8_t G4 = 4;
static const uint8_t G5 = 5;
static const uint8_t G23 = 23;
static const uint8_t G37 = 37;
static const uint8_t G38 = 38;
static const uint8_t G39 = 39;
static const uint8_t DAC1 = 25;
static const uint8_t DAC2 = 26;
static const uint8_t ADC1 = 35;
static const uint8_t ADC2 = 36;
#endif /* Pins_Arduino_h */
Simply use pioarduino’s fork of the Espressif32 Platform.
This also brings the latest Espressif32 Arduino Framework (currently 3.3.3):
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
Using PlatformIO’s Espressif32 platform keeps you stuck on Arduino 2.0.17.