Closed
Description
Answers checklist.
- I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v5.4.1
Espressif SoC revision.
ESP32-P4 (revision v1.0)
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-P4 prototype
Power Supply used.
USB
What is the expected behavior?
When flashing my firmware, I sometimes get "invalid segment length" errors, is there an issue with the p4 linker script?
What is the actual behavior?
Boot cycling with message below.
Steps to reproduce.
Firmware sources are here: https://github.com/ctag-fh-kiel/ctag-tbd/tree/p4_feat_ncm
If I change the source code size by adding / removing code, sometimes the error occurs, sometimes not.
Debug Logs.
E (500) esp_image: invalid segment length 0x1afb6
E (500) boot: OTA app partition slot 0 is not bootable
E (501) esp_image: image at 0x310000 has invalid magic byte (nothing flashed here?)
E (506) boot: OTA app partition slot 1 is not bootable
E (510) boot: No bootable app partitions in the partition table
Diagnostic report archive.
No response
More Information.
No response