Browse Source
This commit adds general support for ESP32-C6 SoCs. Signed-off-by: Andrew Leech <andrew@alelec.net>pull/11869/head
Andrew Leech
1 year ago
committed by
Damien George
21 changed files with 112 additions and 39 deletions
@ -0,0 +1,14 @@ |
|||
Program your board using the esptool.py program, found [here](https://github.com/espressif/esptool). |
|||
|
|||
If you are putting MicroPython on your board for the first time then you should |
|||
first erase the entire flash using: |
|||
|
|||
```bash |
|||
esptool.py --chip esp32c6 --port /dev/ttyUSB0 erase_flash |
|||
``` |
|||
|
|||
From then on program the firmware starting at address 0x0: |
|||
|
|||
```bash |
|||
esptool.py --chip esp32c6 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x0 ESP32_GENERIC_C6-20240602-v1.24.0.bin |
|||
``` |
@ -0,0 +1,14 @@ |
|||
# Set location of base MicroPython directory. |
|||
if(NOT MICROPY_DIR) |
|||
get_filename_component(MICROPY_DIR ${CMAKE_CURRENT_LIST_DIR}/../../.. ABSOLUTE) |
|||
endif() |
|||
|
|||
# Set location of the ESP32 port directory. |
|||
if(NOT MICROPY_PORT_DIR) |
|||
get_filename_component(MICROPY_PORT_DIR ${MICROPY_DIR}/ports/esp32 ABSOLUTE) |
|||
endif() |
|||
|
|||
list(APPEND MICROPY_SOURCE_LIB ${MICROPY_DIR}/shared/runtime/gchelper_generic.c) |
|||
list(APPEND IDF_COMPONENTS riscv) |
|||
|
|||
include(${MICROPY_PORT_DIR}/esp32_common.cmake) |
@ -0,0 +1,5 @@ |
|||
## IDF Component Manager Manifest File |
|||
dependencies: |
|||
espressif/mdns: "~1.1.0" |
|||
idf: |
|||
version: ">=5.1.0" |
@ -0,0 +1 @@ |
|||
# Empty linker fragment (no workaround required for C6, see main_esp32/linker.lf). |
Loading…
Reference in new issue