-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
seeed_xiao_esp32c5 support (IDF v5.5) #17912
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
base: master
Are you sure you want to change the base?
Conversation
Thanks for the contribution. Please can you separate the changes here into two commits:
|
de16f50
to
d66fea2
Compare
Signed-off-by: yuan_mo <2286087148@qq.com>
Signed-off-by: yuan_mo <2286087148@qq.com>
d66fea2
to
24a0bda
Compare
@dpgeorge |
@Vincent1-python WOW! That's cool! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of minor suggestions, but this PR looks mostly good to me.
Although it would be good to have a ESP32_GENERIC_C5
board as well as the SEEED board.
Note we currently do all nightly builds with IDF v5.4.2, so we won't be able to start building ESP32-C5 in nightly builds (or CI) until we bump that version. (Same applies for ESP32-P4 support, I think).
"WiFi" | ||
], | ||
"images": [ | ||
"esp32c5_devkitmini.jpg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a PR for this in https://github.com/micropython/micropython-media ?
@@ -0,0 +1,7 @@ | |||
// This configuration is for a generic ESP32C2 board with 4MiB (or more) of flash. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// This configuration is for a generic ESP32C2 board with 4MiB (or more) of flash. | |
// This configuration is for a generic ESP32C5 board with 4MiB (or more) of flash. |
@@ -0,0 +1,7 @@ | |||
// This configuration is for a generic ESP32C2 board with 4MiB (or more) of flash. | |||
|
|||
#define MICROPY_HW_BOARD_NAME "ESP32C5 module" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#define MICROPY_HW_BOARD_NAME "ESP32C5 module" | |
#define MICROPY_HW_BOARD_NAME "SEEED XIAO ESP32C5" |
// This causes CONFIG_XTAL_FREQ to be set to 0, resulting in compilation errors. | ||
// For now, we'll set it to 40M, and we'll add a configuration item for it later if they open up the configuration interface. | ||
// Detailed information: https://github.com/micropython/micropython/issues/17903 | ||
#define CONFIG_XTAL_FREQ 40 // If your external crystal frequency is 48, please change this 40 to 48 and recompile. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better we merge #17971 first and then rebase to not need this any more. 😀
Summary
The is esp32c5 officially supported in IDF v5.5
Pulling together changes and generic board support needed here.
Some details
Tesing
machine.pin
machine.i2c
machine.adc
machine.pwm
machine.timer