Revert "ESP32: Fix flashing examples such as printerdemo_mcu with espflash"

This reverts commit 2c06ed697b.

This doesn't work for me, the application crashes at start.
Also the espflash tool edits the file to add the device in it which
causes dirty files in git.

Instead, document to use CARGO_PROFILE_RELEASE_OPT_LEVEL=s in the readme
This commit is contained in:
Olivier Goffart 2024-08-06 14:25:16 +02:00
parent cadfd9e104
commit 046b64afec
4 changed files with 4 additions and 10 deletions

View file

@ -7,7 +7,7 @@ Files: */slint-icon-*.svg */slint-icon-*.png */slint-icon-*.pdf */slint-logo-*.s
Copyright: Copyright © SixtyFPS GmbH <info@slint.dev>
License: CC-BY-ND-4.0
Files: .gitattributes .gitignore */.gitignore .dockerignore .prettierignore .pre-commit-config.yaml .vscode/* cspell.json rustfmt.toml .mailmap */.eslintrc.yml Cargo.lock */.npmignore espflash.toml
Files: .gitattributes .gitignore */.gitignore .dockerignore .prettierignore .pre-commit-config.yaml .vscode/* cspell.json rustfmt.toml .mailmap */.eslintrc.yml Cargo.lock */.npmignore
Copyright: Copyright © SixtyFPS GmbH <info@slint.dev>
License: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
@ -84,7 +84,7 @@ Files: examples/carousel/fonts/*.ttf
Copyright: Roboto <https://fonts.google.com/specimen/Roboto/about>
License: Apache-2.0
Files: examples/*/esp-idf/*/partitions.csv examples/*/esp-idf/partitions.csv examples/mcu-board-support/partitions.csv
Files: examples/*/esp-idf/*/partitions.csv examples/*/esp-idf/partitions.csv
Copyright: Copyright © SixtyFPS GmbH <info@slint.dev>
License: MIT

View file

@ -1 +0,0 @@
partition_table = "examples/mcu-board-support/partitions.csv"

View file

@ -180,7 +180,7 @@ When flashing, with `esplash`, you will be prompted to select a USB port. If thi
To compile and run the demo:
```sh
cargo +esp run -p printerdemo_mcu --target xtensa-esp32s2-none-elf --no-default-features --features=mcu-board-support/esp32-s2-kaluga-1 --release --config examples/mcu-board-support/esp32_s2_kaluga_1/cargo-config.toml
CARGO_PROFILE_RELEASE_OPT_LEVEL=s cargo +esp run -p printerdemo_mcu --target xtensa-esp32s2-none-elf --no-default-features --features=mcu-board-support/esp32-s2-kaluga-1 --release --config examples/mcu-board-support/esp32_s2_kaluga_1/cargo-config.toml
```
The device needs to be connected with the two USB cables (one for power, one for data)
@ -190,5 +190,5 @@ The device needs to be connected with the two USB cables (one for power, one for
To compile and run the demo:
```sh
cargo +esp run -p printerdemo_mcu --target xtensa-esp32s3-none-elf --no-default-features --features=mcu-board-support/esp32-s3-box --release --config examples/mcu-board-support/esp32_s3_box/cargo-config.toml
CARGO_PROFILE_RELEASE_OPT_LEVEL=s cargo +esp run -p printerdemo_mcu --target xtensa-esp32s3-none-elf --no-default-features --features=mcu-board-support/esp32-s3-box --release --config examples/mcu-board-support/esp32_s3_box/cargo-config.toml
```

View file

@ -1,5 +0,0 @@
# 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, 0x9000, 0x6000,
phy_init, data, phy, , 0x1000,
factory, app, factory, , 4096k,
1 # Name, Type, SubType, Offset, Size, Flags
2 # Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
3 nvs, data, nvs, 0x9000, 0x6000,
4 phy_init, data, phy, , 0x1000,
5 factory, app, factory, , 4096k,