-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
esp32/boards: Add support for XIAO ESP32S3/C3 boards. #12042
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
Maxwelltoo
wants to merge
3
commits into
micropython:master
Choose a base branch
from
Maxwelltoo:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"deploy": [ | ||
"../deploy_c3.md" | ||
], | ||
"docs": "", | ||
"features": [ | ||
"BLE", | ||
"USB-C", | ||
"WiFi" | ||
], | ||
"images": [ | ||
"xiao_esp32c3.jpg" | ||
], | ||
"mcu": "esp32c3", | ||
"product": "XIAO-ESP32C3", | ||
"thumbnail": "", | ||
"url": "https://wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started/", | ||
"vendor": "Seeed Studio" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include("$(PORT_DIR)/boards/manifest.py") | ||
freeze("./modules") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Seeed XIAO ESP32 C3 MicroPython Helper Library | ||
|
||
from micropython import const | ||
|
||
# SPI | ||
SPI_MOSI = const(10) | ||
SPI_MISO = const(9) | ||
SPI_CLK = const(8) | ||
|
||
# I2C | ||
I2C_SDA = const(6) | ||
I2C_SCL = const(7) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set(IDF_TARGET esp32c3) | ||
|
||
set(SDKCONFIG_DEFAULTS | ||
boards/sdkconfig.base | ||
boards/sdkconfig.ble | ||
boards/SEEED_XIAO_ESP32C3/sdkconfig.board | ||
) | ||
|
||
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#define MICROPY_HW_BOARD_NAME "Seeed XIAO ESP32C3" | ||
#define MICROPY_HW_MCU_NAME "ESP32-C3FN4" | ||
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "XIAO-ESP32C3" | ||
|
||
#define MICROPY_HW_ENABLE_SDCARD (0) | ||
#define MICROPY_PY_MACHINE_DAC (0) | ||
#define MICROPY_PY_MACHINE_I2S (0) | ||
|
||
#define MICROPY_HW_I2C0_SCL (7) | ||
#define MICROPY_HW_I2C0_SDA (6) | ||
|
||
#define MICROPY_HW_SPI1_MOSI (10) | ||
#define MICROPY_HW_SPI1_MISO (9) | ||
#define MICROPY_HW_SPI1_SCK (8) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CONFIG_ESP32C3_REV_MIN_3=y | ||
CONFIG_ESP32C3_BROWNOUT_DET=y | ||
CONFIG_ESP32C3_BROWNOUT_DET_LVL_SEL_7= | ||
CONFIG_ESP32C3_BROWNOUT_DET_LVL_SEL_4=y | ||
CONFIG_ESP32C3_BROWNOUT_DET_LVL=4 | ||
CONFIG_ESP_CONSOLE_UART_DEFAULT= | ||
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"deploy": [ | ||
"../deploy_s3.md" | ||
], | ||
"docs": "", | ||
"features": [ | ||
"SPIRAM", | ||
"USB-C", | ||
"WiFi", | ||
"BLE" | ||
], | ||
"features_non_filterable": [ | ||
], | ||
"id": "xiao", | ||
"images": [ | ||
"xiao_esp32s3.jpg" | ||
], | ||
"mcu": "esp32s3", | ||
"product": "XIAO-ESP32S3", | ||
"thumbnail": "", | ||
"url": "https://wiki.seeedstudio.com/xiao_esp32s3_getting_started/", | ||
"vendor": "Seeed Studio" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include("$(PORT_DIR)/boards/manifest.py") | ||
freeze("modules") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# XIAO ESP32 S3 MicroPython Helper Library | ||
|
||
from micropython import const | ||
from machine import Pin | ||
|
||
# SPI | ||
SPI_MOSI = const(9) | ||
SPI_MISO = const(8) | ||
SPI_CLK = const(7) | ||
|
||
# I2C | ||
I2C_SDA = const(5) | ||
I2C_SCL = const(6) | ||
|
||
# LED | ||
LED = const(21) | ||
|
||
# Helper methods for built in sensors | ||
|
||
led = Pin(LED, Pin.OUT, value=0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set(IDF_TARGET esp32s3) | ||
|
||
set(SDKCONFIG_DEFAULTS | ||
boards/sdkconfig.base | ||
boards/sdkconfig.usb | ||
boards/sdkconfig.ble | ||
boards/sdkconfig.240mhz | ||
boards/sdkconfig.spiram_sx | ||
boards/SEEED_XIAO_ESP32S3/sdkconfig.board | ||
) | ||
|
||
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#define MICROPY_HW_BOARD_NAME "Seeed XIAO ESP32S3" | ||
#define MICROPY_HW_MCU_NAME "ESP32-S3-FN8" | ||
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "XIAO-ESP32S3" | ||
|
||
#define MICROPY_PY_MACHINE_DAC (0) | ||
|
||
#define MICROPY_HW_I2C0_SCL (6) | ||
#define MICROPY_HW_I2C0_SDA (5) | ||
|
||
#define MICROPY_HW_SPI1_MOSI (9) | ||
#define MICROPY_HW_SPI1_MISO (8) | ||
#define MICROPY_HW_SPI1_SCK (7) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y | ||
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y | ||
CONFIG_ESPTOOLPY_AFTER_NORESET=y | ||
|
||
CONFIG_ESPTOOLPY_FLASHSIZE_4MB= | ||
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y | ||
CONFIG_ESPTOOLPY_FLASHSIZE_16MB= | ||
CONFIG_PARTITION_TABLE_CUSTOM=y | ||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-8MiB.csv" | ||
|
||
CONFIG_LWIP_LOCAL_HOSTNAME="XIAO-ESP32S3" | ||
|
||
CONFIG_TINYUSB_DESC_CUSTOM_VID=0x2886 | ||
CONFIG_TINYUSB_DESC_CUSTOM_PID=0x8056 | ||
CONFIG_TINYUSB_DESC_BCD_DEVICE=0x0100 | ||
CONFIG_TINYUSB_DESC_MANUFACTURER_STRING="Seeed Studio" | ||
CONFIG_TINYUSB_DESC_PRODUCT_STRING="XIAO ESP32S3" | ||
CONFIG_TINYUSB_DESC_SERIAL_STRING="XIAO ESP32S3" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think here you should also add spiram_oct to support octal. Have you tested de ram size with your configuration?