Skip to content

support esp32c5 #1597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

support esp32c5 #1597

wants to merge 2 commits into from

Conversation

mischief
Copy link

@mischief mischief commented Jun 1, 2025

here's my attempt at supporting the esp32c5 mcu and esp32-c5-devkitc-1, which i ordered from the espressif official online store and arrived recently.

i've only attempted to work on espidf framework, since i am pretty sure there would need to be upstream work done to support esp32c5 in the arduino core.

note that i am a total n00b at python, so i apologize in advance.

@@ -110,14 +110,14 @@ def transform_to_asm(target, source, env):
" ".join(
[
"riscv32-esp-elf-objcopy"
if mcu in ("esp32c3", "esp32c6")
if mcu in ("esp32c3", "esp32c5", "esp32c6")
Copy link
Author

Choose a reason for hiding this comment

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

this (and the following) repeated lists of mcu feels like it could be refactored into each board json, or at least centralized into a function that said whether the mcu is riscv32 or not.

@mischief
Copy link
Author

mischief commented Jun 1, 2025

esp32c5 does not work yet with older tool-esptoolpy 1.40501.0, but does kind of work with newer 1.40801.0.

@mischief mischief marked this pull request as ready for review June 1, 2025 06:48
@Jason2866
Copy link
Contributor

@mischief
Copy link
Author

mischief commented Jun 1, 2025

you can use the fork pioarduino https://github.com/pioarduino/platform-espressif32/tree/develop_33

@Jason2866 thanks! this appears to work for the ESP32-C5-DevKitC-1. is there a plan to merge this back to the platformio repos?

your repo has a bug, or was maybe was brought up against a different SoC. my ESP32-C5-DevKitC-1 v1.2 contains the ESP32-C5-WROOM-1-N8R4 (doc here https://www.espressif.com/sites/default/files/documentation/esp32-c5-wroom-1_wroom-1u_datasheet_en.pdf), which has 8MB flash and 4MB PSRAM. your config says 4MB flash and no PSRAM.

@Jason2866
Copy link
Contributor

@mischief

Jason2866 thanks! this appears to work for the ESP32-C5-DevKitC-1. is there a plan to merge this back to the platformio repos?

No, see #1225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants