ESP32-P4 Revision 1.3 - Still no way to flash using ESP-IDF

DickyOZ
Posts: 21
Joined: Sun Aug 03, 2025 9:40 am

ESP32-P4 Revision 1.3 - Still no way to flash using ESP-IDF

Postby DickyOZ » Tue Mar 17, 2026 2:02 am

I have a few ESP32-P$ boards running a number of projects I built. Some of them need to be updated. But with the default hardware configuration my projects will compile OK but I can't flash the boards because the chip revision is not in the range v3.1 - v3.99.
If I change the Chip revision setting to revisions < 3.0 the projects won't build. I get the following errors"

Code: Select all

-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld.exe: error: --enable-non-contiguous-regions discards section `.sdata.s_time_update_lock' from `esp-idf/esp_timer/libesp_timer.a(esp_timer_impl_common.c.obj)'

etc...  etc... (Another 82kB of similar errors)

C:/Espressif/tools/riscv32-esp-elf/esp-14.2.0_20251107/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld.exe: error: --enable-non-contiguous-regions discards section `.sdata.__global_locale_ptr' from `C:/Espressif/tools/riscv32-esp-elf/esp-14.2.0_20251107/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/lib/rv32imafc_zicsr_zifencei/ilp32f/no-rtti\libc.a(libc_a-locale.o)'
C:/Espressif/tools/riscv32-esp-elf/esp-14.2.0_20251107/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld.exe: error: Total discarded sections size is 20486 bytes
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Does anyone know a way around this problem or if there is likely to be a fix any time soon?

username
Posts: 593
Joined: Thu May 03, 2018 1:18 pm

Re: ESP32-P4 Revision 1.3 - Still no way to flash using ESP-IDF

Postby username » Sun Mar 22, 2026 4:10 am

You need to go into menuconfig as change it to these settings. Then you will fine.
Screenshot 2026-03-21 230856.png
Screenshot 2026-03-21 230856.png (22.65 KiB) Viewed 508 times

DickyOZ
Posts: 21
Joined: Sun Aug 03, 2025 9:40 am

Re: ESP32-P4 Revision 1.3 - Still no way to flash using ESP-IDF

Postby DickyOZ » Sun Mar 22, 2026 8:57 am

You need to go into menuconfig as change it to these settings. Then you will fine.

Screenshot 2026-03-21 230856.png
As I said in the original post I did try that but then The project will compile but not build; so I don't even get the chance to try to flash it. There seems to be some sort of memory mapping error.

Who is online

Users browsing this forum: No registered users and 13 guests