mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-26 20:00:35 +00:00
make cargo espflash work by adding a partition.csv (#375)
* make cargo espflash work by adding a partition.csv * add p4 as an option
This commit is contained in:
parent
8d2b9a574e
commit
ab4f3c8597
20
README.md
20
README.md
@ -26,15 +26,21 @@ Follow the [Prerequisites](https://github.com/esp-rs/esp-idf-template#prerequisi
|
|||||||
The examples could be built and flashed conveniently with [`cargo-espflash`](https://github.com/esp-rs/espflash/). To run e.g. the `ledc_simple` on an e.g. ESP32-C3:
|
The examples could be built and flashed conveniently with [`cargo-espflash`](https://github.com/esp-rs/espflash/). To run e.g. the `ledc_simple` on an e.g. ESP32-C3:
|
||||||
(Swap the Rust target and example name with the target corresponding for your ESP32 MCU and with the example you would like to build)
|
(Swap the Rust target and example name with the target corresponding for your ESP32 MCU and with the example you would like to build)
|
||||||
|
|
||||||
with `cargo-espflash` V2+:
|
with `cargo-espflash`:
|
||||||
```
|
```sh
|
||||||
$ ESP_IDF_VERSION=release/v4.4 cargo espflash flash --target riscv32imc-esp-espidf --example ledc_simple --monitor
|
$ MCU=esp32c3 cargo espflash flash --target riscv32imc-esp-espidf --example ledc_simple --monitor
|
||||||
```
|
```
|
||||||
|
|
||||||
with older `cargo-espflash`:
|
| MCU | "--target" |
|
||||||
```
|
| --- | ------ |
|
||||||
$ ESP_IDF_VERSION=release/v4.4 cargo espflash --target riscv32imc-esp-espidf --example ledc_simple --monitor /dev/ttyUSB0
|
| esp32c2 | riscv32imc-esp-espidf |
|
||||||
```
|
| esp32c3| riscv32imc-esp-espidf |
|
||||||
|
| esp32c6| riscv32imac-esp-espidf |
|
||||||
|
| esp32h2 | riscv32imac-esp-espidf |
|
||||||
|
| esp32p4 | riscv32imafc-esp-espidf |
|
||||||
|
| esp32 | xtensa-esp32-espidf |
|
||||||
|
| esp32s2 | xtensa-esp32s2-espidf |
|
||||||
|
| esp32s3 | xtensa-esp32s3-espidf |
|
||||||
|
|
||||||
In order to run the examples on other chips you will most likely need to adapt at least the used pins.
|
In order to run the examples on other chips you will most likely need to adapt at least the used pins.
|
||||||
|
|
||||||
|
1
espflash.toml
Normal file
1
espflash.toml
Normal file
@ -0,0 +1 @@
|
|||||||
|
partition_table = "partitions.csv"
|
5
partitions.csv
Normal file
5
partitions.csv
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Name, Type, SubType, Offset, Size, Flags
|
||||||
|
# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
|
||||||
|
nvs, data, nvs, , 0x6000,
|
||||||
|
phy_init, data, phy, , 0x1000,
|
||||||
|
factory, app, factory, , 3M,
|
|
Loading…
x
Reference in New Issue
Block a user