Skip to content

ESP32: Migrate to Arduino 3.x (pioarduino)#9122

Draft
vidplace7 wants to merge 63 commits intodevelopfrom
pioarduino
Draft

ESP32: Migrate to Arduino 3.x (pioarduino)#9122
vidplace7 wants to merge 63 commits intodevelopfrom
pioarduino

Conversation

@vidplace7
Copy link
Copy Markdown
Member

@vidplace7 vidplace7 commented Dec 30, 2025

Switch all ESP32 builds to pioarduino/platform-espressif32.

https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html

Switching to Arduino-ESP32 3.x will be necessary in order to properly support newer Espressif MCUs (esp32h2, esp32c5, esp32c6, esp32p4, etc)

DRAFT for now, see below.

TODO:

  • Test ESP32s3
    • heltec-v3
    • t-deck-tft
  • Test ESP32 (Original)
    • tbeam
    • tlora-v2-1-1_6
    • station-g1
  • Test ESP32c3
    • heltec-ht62-esp32c3-sx1262
  • Test ESP32c6
    • tlora-c6
    • m5stack-unitc6l
  • Test ESP32p4
    • @mverch67 added preliminary support for this platform as part of this PR.
      • crowpanel p4 advanced 5"
      • crowpanel p4 advanced 9"
      • crowpanel p4 advanced 10.1"

Tasks:

Depends on:


This PR is a continuation of the work in #8952

Huge shoutout / credit to @mverch67 who's initial work this is based upon #7180 ❤️

@vidplace7 vidplace7 added enhancement New feature or request hardware-support Hardware related: new devices or modules, problems specific to hardware labels Dec 30, 2025
https://github.com/lovyan03/LovyanGFX/archive/a44af6bb1d2063b3b00fdb5dffb366b565d55ab3.zip
# renovate: datasource=custom.pio depName=LovyanGFX packageName=lovyan03/library/LovyanGFX
lovyan03/LovyanGFX@1.2.19
; REVISIT note: v1.2.7 breaks the elecrow 7" display functionality
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: this won't work

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Sorry for the drive-by comment, I have been interested in esp32 migration (#9122) to pioandroid so that I can set some sdkconfig flags to solve a different problem (#6960).)

I'm trying to figure out why this won't work, so I can help to solve it. I do see the package in platformio registry: https://registry.platformio.org/libraries/lovyan03/LovyanGFX and it does have a version 1.2.19.

Ah, I see commit a44af6bb1d2063b3b00fdb5dffb366b565d55ab3 refers to one authored by mverch67 to add support for a specific device: lovyan03/LovyanGFX@a44af6b

but the tag 1.2.19 looks like it includes that commit, so not sure what the issue might be. Will continue investigating...

Copy link
Copy Markdown
Collaborator

@mverch67 mverch67 Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it just means for elecrow panel the lib reference must stay at 1.2.0, otherwise it ends up with a black screen (only 7" version is affected).

vidplace7 and others added 23 commits April 22, 2026 12:47
Local variable 'config' shadows outer variable [shadowVariable]
This works locally again :)
Not sure what changed
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
…ccess. (#10291)

Co-authored-by: Copilot <copilot@github.com>
Align .text.handler_execute section to 4 bytes and update watchdog timer core mask configuration

Co-authored-by: Copilot <copilot@github.com>
MESHTASTIC_EXCLUDE_SCREEN=1 on tlora-c6.

It doesn't have a screen, and this gets it compiling again (saving flash).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.8 enhancement New feature or request hardware-support Hardware related: new devices or modules, problems specific to hardware

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants