You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I am trying to flash an ESP32-WROOM-32 and I encounter two errors.
I am currently following along the Embedded Rust on ESP32 Book and I am on chapter 2.4.
I got some CC-Linking errors, when building the repo on NixOS (does anyone maybe know why as a side note?). Because of this I ditched NixOS for flashing and I am currently using the Docker container linked in the Book.
So here is a short video of what those errors look like. issue.webm
I get a timeout when I run cargo run -- --list-all-ports. I have to add the --no-stub flag, in order to make it work 100% of the time. (Idk why, but without the flag it only flashes some times.)
Here the error message of the timeout:
esp@c36d78ffe227:/workspace/intro/hardware-check$ cargo run -- --list-all-ports
Finished `dev` profile [optimized + debuginfo] target(s) in 0.10s
Running `espflash flash --monitor target/riscv32imc-esp-espidf/debug/hardware-check --list-all-ports`
[2024-12-13T15:47:30Z INFO ] 🚀 A new version of espflash is available: v3.2.0
✔ Use serial port '/dev/ttyUSB0'? · yes
[2024-12-13T15:47:31Z INFO ] Serial port: '/dev/ttyUSB0'
[2024-12-13T15:47:31Z INFO ] Connecting...
[2024-12-13T15:47:31Z INFO ] Using flash stub
Error: espflash::timeout
× Error while connecting to device
╰─▶ Timeout while running command
This is the main error. I am in a weird flash loop after entering the flash command. The full error (before repeating itself) looks like this:
esp@c36d78ffe227:/workspace/intro/hardware-check$ cargo run -- --list-all-ports --no-stub
Finished `dev` profile [optimized + debuginfo] target(s) in 0.10s
Running `espflash flash --monitor target/riscv32imc-esp-espidf/debug/hardware-check --list-all-ports --no-stub`
[2024-12-13T15:38:01Z INFO ] 🚀 A new version of espflash is available: v3.2.0
✔ Use serial port '/dev/ttyUSB0'? · yes
[2024-12-13T15:38:02Z INFO ] Serial port: '/dev/ttyUSB0'
[2024-12-13T15:38:02Z INFO ] Connecting...
Chip type: esp32 (revision v1.0)
Crystal frequency: 40 MHz
Flash size: 4MB
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC address: 24:6f:28:7b:88:3c
App/part. size: 1,149,840/4,128,768 bytes, 27.85%
[2024-12-13T15:38:03Z INFO ] Segment at address '0x1000' has not changed, skipping write
[2024-12-13T15:38:03Z INFO ] Segment at address '0x8000' has not changed, skipping write
[2024-12-13T15:38:04Z INFO ] Segment at address '0x10000' has not changed, skipping write
[2024-12-13T15:38:05Z INFO ] Flashing has completed!
Commands:
CTRL+R Reset chip
CTRL+C Exit
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7104
load:0x40078000,len:15576
load:0x40080400,len:4
ho 8 tail 4 room 4
load:0x40080404,len:3876
entry 0x4008064c
I (30) boot: ESP-IDF v5.1-beta1-378-gea5e0ff298-dirt 2nd stage bootloader
I (31) boot: compile time Jun 7 2023 07:48:23
I (33) boot: Multicore bootloader
I (37) boot: chip revision: v1.0
I (41) boot.esp32: SPI Speed : 40MHz
I (45) boot.esp32: SPI Mode : DIO
I (50) boot.esp32: SPI Flash Size : 4MB
I (54) boot: Enabling RNG early entropy source...
I (60) boot: Partition Table:
I (63) boot: ## Label Usage Type ST Offset Length
I (71) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (78) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (86) boot: 2 factory factory app 00 00 00010000 003f0000
I (93) boot: End of partition table
I (97) esp_image: segment 0: paddr=00010020 vaddr=3c0d0020 size=0ffd8h ( 65496) load
E (106) esp_image: Segment 0 0x3c0d0020-0x3c0dfff8 invalid: bad load address range
0x3c0dfff8 - anon.ab806ba04efe4573400ddf1c6591897b.0.llvm.4787499095392638493
at ??:??
E (114) boot: Factory app partition is not bootable
E (119) boot: No bootable app partitions in the partition table
Does anyone know hot to resolve this issue?
Thanks in advance!
The content you are editing has changed. Please copy your edits and refresh the page.
So I am trying to flash an ESP32-WROOM-32 and I encounter two errors.
I am currently following along the Embedded Rust on ESP32 Book and I am on chapter 2.4.
I got some CC-Linking errors, when building the repo on NixOS (does anyone maybe know why as a side note?). Because of this I ditched NixOS for flashing and I am currently using the Docker container linked in the Book.
So here is a short video of what those errors look like.
issue.webm
cargo run -- --list-all-ports
. I have to add the--no-stub
flag, in order to make it work 100% of the time. (Idk why, but without the flag it only flashes some times.)Here the error message of the timeout:
Does anyone know hot to resolve this issue?
Thanks in advance!
Tasks
The text was updated successfully, but these errors were encountered: