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

glitchxx0
Posts: 1
Joined: Tue Sep 03, 2024 7:58 am

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

Postby glitchxx0 » Tue Sep 03, 2024 8:04 am

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.
Attachments
Screenshot_20240903_133240.png
Screenshot_20240903_133240.png (149.63 KiB) Viewed 1559 times

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Wed Sep 04, 2024 12:08 am

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'.

Who is online

Users browsing this forum: No registered users and 125 guests