Skip to content

Commit 5729552

Browse files
sylvioalvesfabiobaltieri
authored andcommitted
soc: esp32: fix flash QIO mode boot
Make sure QIO mode calls are not in flash, otherwise it will fail during bootloader/flash init. Signed-off-by: Sylvio Alves <[email protected]>
1 parent a0d22be commit 5729552

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

soc/espressif/esp32/default.ld

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ SECTIONS
402402
*libzephyr.a:spi_flash_wrap.*(.literal .literal.* .text .text.*)
403403
*libzephyr.a:spi_flash_hpm_enable.*(.literal .literal.* .text .text.*)
404404
*libzephyr.a:flash_ops.*(.literal .literal.* .text .text.*)
405+
*libzephyr.a:flash_qio_mode.*(.literal .literal.* .text .text.*)
405406

406407
/* [mapping:esp_system] */
407408
*libzephyr.a:esp_err.*(.literal .literal.* .text .text.*)
@@ -642,6 +643,7 @@ SECTIONS
642643
*libzephyr.a:spi_flash_wrap.*(.rodata .rodata.*)
643644
*libzephyr.a:spi_flash_hpm_enable.*(.rodata .rodata.*)
644645
*libzephyr.a:flash_ops.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
646+
*libzephyr.a:flash_qio_mode.*(.rodata .rodata.* .sdata2 .sdata2.* .srodata .srodata.*)
645647

646648
/* [mapping:esp_mm] */
647649
*libzephyr.a:esp_cache.*(.rodata .rodata.*)

0 commit comments

Comments
 (0)