馃Have you ever tried Chat.M5Stack.com before asking??馃槑
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    VSCode + Platform IO M5 Paper (EPD) board type

    Scheduled Pinned Locked Moved Arduino
    1 Posts 1 Posters 3.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      timattrn
      last edited by

      There is no forum for VSCode + PIO yet it is heavily used. Many of the M5 github examples obviously use it (at least for the Paper). So I post this here, despite it not being an Arduino IDE question.

      In those github examples, the platformio.ini has this content (partial extract)
      from https://github.com/m5stack/M5EPD_Calculator

      [env:m5stack-fire]
      platform = espressif32
      board = m5stack-fire

      This project builds and runs fine.
      But I am surprised at the board used. In Arduino IDE, there is a specific M5Stack board for the Paper.

      In following up with the PlatformIO community support forum, I got very helpful support from someone, who said this:

      "I see, indeed. You鈥檙e using the board package as instructed from m5-docs, which is using the Arduino core https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/m5stack-2.0.3.zip. PlatformIO only supports the official Arduino-ESP32, which does not have the M5Stack-Paper (but other M5Stack boards), see here. Seems like the M5Stack people just fork the Arduino-ESP32 core, add their own boards, and don鈥檛 merge immediately back, leaving regular core users in the dark."

      but this user then discovered: "However, looking at the core download, it nicely has a package.json, so it can be used in PlatformIO, given the right board definition (already created in Create m5stack-paper.json by TomG736 路 Pull Request #669 路 platformio/platform-espressif32 路 GitHub)."

      https://community.platformio.org/t/m5stack-paper-help-helloworld-does-not-execute-default-platform-ini-seems-broken-i-have-a-working-guess/28186/6

      I wondered about the consequence of using

      board = m5stack-fire

      his reply was: "Board board = .. selection influences a great number of things, that is, ESP32 type, flash size and the Arduino variant e.g. The m5stack_fire and and m5stack_paper variant folders each have their pins_arduino.h in them, and they might have different things (e.g., default pins for attached devices or SPI bus etc.) in them, leading to incompatibilities later."

      So, is using

      board = m5stack-fire

      with VSCode/PIO ok?

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 馃挆

      Register Login
      • First post
        Last post