From ea60d804b3253b033528adc2d84970b8b94613bd Mon Sep 17 00:00:00 2001 From: Empire Phoenix Date: Sun, 22 Jun 2025 17:36:59 +0200 Subject: [PATCH] reduced sizes so all executable code stays below 8mb --- rust/.cargo/config.toml | 4 ++-- rust/espflash.toml | 6 ++++++ rust/partitions.csv | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 rust/espflash.toml diff --git a/rust/.cargo/config.toml b/rust/.cargo/config.toml index c7e8e2b..726c94a 100644 --- a/rust/.cargo/config.toml +++ b/rust/.cargo/config.toml @@ -5,8 +5,8 @@ target = "riscv32imac-esp-espidf" [target.riscv32imac-esp-espidf] linker = "ldproxy" #runner = "espflash flash --monitor --baud 921600 --partition-table partitions.csv -b no-reset" # Select this runner in case of usb ttl -runner = "espflash flash --monitor --baud 921600 --flash-size 16mb --partition-table partitions.csv" -#runner = "cargo runner" +#runner = "espflash flash --monitor" +runner = "cargo runner" #runner = "espflash flash --monitor --partition-table partitions.csv -b no-reset" # create upgrade image file for webupload diff --git a/rust/espflash.toml b/rust/espflash.toml new file mode 100644 index 0000000..0d52e35 --- /dev/null +++ b/rust/espflash.toml @@ -0,0 +1,6 @@ +partition_table="partitions.csv" +[connection] +serial = "/dev/ttyACM0" +baudrate = 921600 +[flash] +size = "16MB" \ No newline at end of file diff --git a/rust/partitions.csv b/rust/partitions.csv index 68f2fe9..7c42c1d 100644 --- a/rust/partitions.csv +++ b/rust/partitions.csv @@ -1,6 +1,6 @@ nvs, data, nvs, , 16k, otadata, data, ota, , 8k, phy_init, data, phy, , 4k, -ota_0, app, ota_0, , 5632k, -ota_1, app, ota_1, , 5632k, -storage, data, spiffs, , 5000k, \ No newline at end of file +ota_0, app, ota_0, , 3968k, +ota_1, app, ota_0, , 3968k, +storage, data, spiffs, , 8M, -- 2.47.1