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

    Seeking PlatformIO Example for ESP-IDF on M5 PaperS3 (Non-Arduino)

    PRODUCTS
    2
    4
    688
    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.
    • S
      sok
      last edited by

      Hi everyone,

      I’m trying to start a project using the M5 PaperS3 with ESP-IDF (without Arduino) in PlatformIO, but I’m struggling to set up the platformio.ini configuration correctly.

      Could anyone share a minimal test project or an example platformio.ini file for the M5 PaperS3 using ESP-IDF? I’ve reviewed PlatformIO’s documentation and existing examples, but they focused on Arduino project.

      1 Reply Last reply Reply Quote 0
      • P
        peolsolutions
        last edited by

        To set up PlatformIO with ESP-IDF for M5 PaperS3, create a new project in PlatformIO, selecting ESP32 as the board and ESP-IDF as the framework. In platformio.ini, specify the M5 PaperS3 board. Install ESP-IDF if not already done. Write your application code in main.c or main.cpp to interact with the M5 PaperS3’s display or other features. Build and upload the code using PlatformIO’s interface for development.

        S 1 Reply Last reply Reply Quote 0
        • S
          sok @peolsolutions
          last edited by sok

          @peolsolutions
          Thank you for your patience. Let me clarify the core issue to ensure we’re aligned:

          1. ESP32-S3 architecture(not generic ESP32),
          2. ESP-IDF framework (no Arduino framework),
          3. M5PaperS3 libraries from M5Paper S3 docs page

          What I’ve already try:

          • Followed M5Stack’s docs, but their examples for Arduino platform and lack S3-specific configurations.
          • Try combining board = esp32-s3-devkitc-1 (as in M5 Core S3 docs) with espidf and M5GFX & epdiy libraries in platformio.ini file.

          So:
          If anyone has successfully linked ESP-IDF, ESP32-S3, and M5PaperS3 libraries in PlatformIO, could you share:

          1. Your platformio.ini
          2. Any critical patches or forks of M5GFX/epdiy required for ESP-IDF compatibility.
          3. A minimal project (even just initializing the e-paper display) to start development under board.
          1 Reply Last reply Reply Quote 0
          • S
            sok
            last edited by

            Hello everyone,

            I’ve narrowed down my compilation issue to the epdiy library when working with ESP-IDF on the M5PaperS3 (ESP32-S3). Here’s my setup and error details:

            Configuration Without epdiy (Compiles Successfully):

            [env:esp32-s3-devkitm-1]
            platform = espressif32
            board = esp32-s3-devkitm-1
            framework = espidf
            board_upload.flash_size = 16MB
            board_upload.maximum_size = 16777216
            board_build.arduino.memory_type = qio_opi
            build_flags = -DBOARD_HAS_PSRAM

            Add epdiy dep(Compilation fails):
            lib_deps =
            epdiy=https://github.com/vroland/epdiy.git

            Error:
            Multiple ways to build the same target were specified for: /epdiy/output_common/lut.o
            (from ['/epdiy/src/output_common/lut.S'] and from ['/epdiy/src/output_common/lut.c'])

            1 Reply Last reply Reply Quote 0
            • First post
              Last post