Page 1 of 1

ESP32 Boot Error: "Factory app partition is not bootable" - Invalid Load Address Range

Posted: Tue Sep 03, 2024 8:04 am
by glitchxx0
Hello everyone,

I'm encountering an issue with my ESP32 project, and I'm hoping someone here might be able to help. I'm using the ESP32 (revision v3.1) with the following configuration:

ESP-IDF Version: v5.1-beta1
Crystal Frequency: 40 MHz
Flash Size: 4MB
Chip Type: ESP32 (Dual Core, WiFi, BT)
When I attempt to flash my application using espflash, the flashing process completes successfully, but upon reboot, I get the following error in the bootloader:

E (136) esp_image: Segment 0 0x3f000020-0x3f01eef8 invalid: bad load address range
E (145) boot: Factory app partition is not bootable
E (150) boot: No bootable app partitions in the partition table

This seems to suggest that the bootloader is unable to load the factory application due to an invalid memory address range. The system then enters a reset loop with the same error messages.

Re: ESP32 Boot Error: "Factory app partition is not bootable" - Invalid Load Address Range

Posted: Wed Sep 04, 2024 12:08 am
by ESP_Sprite
That conclusion is correct. Not sure why that is happening, though - perhaps for some reason the app is compiled for the wrong ESP32 type? You could try to remove the build directory, doing a new build and then flashing everyrting (bootloader + partition table + app) using 'idf.py flash'.