-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hi,
compiling for ESP32-C3-DevKit-RUST-1 give an error on partition:
this is the partitions file content:
ESP-IDF Partition Table
Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x6000,
phy_init, data, phy, 0xf000, 0x1000,
factory, app, factory, 0x10000, 0x3f0000
and this is the error:
cargo run --release
warning: field mac_address
is never read
--> src/wifi.rs:22:9
|
21 | pub struct WifiState {
| --------- field in this struct
22 | pub mac_address: String,
| ^^^^^^^^^^^
|
= note: #[warn(dead_code)]
on by default
warning: esp32-axum-ws
(bin "esp32-axum-ws") generated 1 warning
Finished release
profile [optimized] target(s) in 0.43s
Running espflash flash --monitor target/xtensa-esp32s3-espidf/release/esp32-axum-ws
[2024-07-28T17:34:53Z INFO ] Detected 2 serial ports
[2024-07-28T17:34:53Z INFO ] Ports which match a known common dev board are highlighted
[2024-07-28T17:34:53Z INFO ] Please select a port
[2024-07-28T17:34:55Z INFO ] Serial port: '/dev/cu.usbmodem101'
[2024-07-28T17:34:55Z INFO ] Connecting...
[2024-07-28T17:34:56Z INFO ] Using flash stub
Chip type: esp32c3 (revision v0.4)
Crystal frequency: 40 MHz
Flash size: 4MB
Features: WiFi, BLE
MAC address: 40:4c:ca:89:bf:80
Partition table: ./partitions.csv
App/part. size: 1,940,512/4,128,768 bytes, 47.00%
[2024-07-28T17:34:56Z INFO ] Segment at address '0x0' has not changed, skipping write
[2024-07-28T17:34:56Z INFO ] Segment at address '0x8000' has not changed, skipping write
[2024-07-28T17:34:57Z INFO ] Segment at address '0x10000' has not changed, skipping write
[2024-07-28T17:34:58Z INFO ] Flashing has completed!
Commands:
CTRL+R Reset chip
CTRL+C Exit
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4038055a
0x4038055a - tlsf_free
at ??:??
SPIWP:0xee
mode:DIO, clock div:2
load:0x3fcd5820,len:0x1714
load:0x403cc710,len:0x968
load:0x403ce710,len:0x2f9c
entry 0x403cc710
I (24) boot: ESP-IDF v5.1.2-342-gbcf1645e44 2nd stage bootloader
I (24) boot: compile time Dec 12 2023 10:50:58
I (25) boot: chip revision: v0.4
I (29) boot.esp32c3: SPI Speed : 40MHz
I (34) boot.esp32c3: SPI Mode : DIO
I (38) boot.esp32c3: SPI Flash Size : 4MB
I (43) boot: Enabling RNG early entropy source...
I (48) boot: Partition Table:
I (52) boot: ## Label Usage Type ST Offset Length
I (59) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (67) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (74) boot: 2 factory factory app 00 00 00010000 003f0000
I (82) boot: End of partition table
I (86) esp_image: segment 0: paddr=00010020 vaddr=3c160020 size=65ca4h (416932) map
I (187) esp_image: segment 1: paddr=00075ccc vaddr=3fc96300 size=0528ch ( 21132) load
I (192) esp_image: segment 2: paddr=0007af60 vaddr=40374000 size=050b8h ( 20664) load
E (193) esp_image: Segment 2 0x40374000-0x403790b8 invalid: bad load address range
0x403790b8 - ram_phy_wakeup_init
at ??:??
E (201) boot: Factory app partition is not bootable
E (206) boot: No bootable app partitions in the partition table