risc-v/esp32c3: linker script fix for mcuboot + wifi usage

Revert "risc-v/esp32c3: linker script fix for mcuboot + wifi usage"

This reverts commit 3de5d2021b3a4c5fb506863f7b4763b57f038432.

Testing no brownout detector

Reenabled brownout
This commit is contained in:
Filipe Cavalcanti 2024-10-23 14:49:22 +02:00 committed by Xiang Xiao
parent f36dff8105
commit 59a03d7ec3
1 changed files with 15 additions and 8 deletions

View File

@ -141,11 +141,12 @@ SECTIONS
*libhal.a:timer_hal.*(.literal.timer_hal_capture_and_get_counter_value .text.timer_hal_capture_and_get_counter_value) *libhal.a:timer_hal.*(.literal.timer_hal_capture_and_get_counter_value .text.timer_hal_capture_and_get_counter_value)
*(.wifi0iram.*) *(.wifi0iram .wifi0iram.*)
*(.wifirxiram.*) *(.wifirxiram .wifirxiram.*)
*(.wifislpiram.*) *(.wifislpiram .wifislpiram.*)
*(.wifiorslpiram.*) *(.wifiorslpiram .wifiorslpiram.*)
*(.wifislprxiram.*) *(.wifislprxiram .wifislprxiram.*)
*(.wifiextrairam .wifiextrairam.*)
} >iram0_0_seg AT > ROM } >iram0_0_seg AT > ROM
@ -163,9 +164,10 @@ SECTIONS
/* This section contains data that is not initialized during load, /* This section contains data that is not initialized during load,
* or during the application's initialization sequence. * or during the application's initialization sequence.
*/ */
. = ALIGN(4);
*(.noinit) *(.noinit)
*(.noinit.*) *(.noinit.*)
. = ALIGN(4) ;
} >dram0_0_seg } >dram0_0_seg
.dram0.data : .dram0.data :
@ -250,9 +252,9 @@ SECTIONS
esp_head.*(.rodata .rodata.*) esp_head.*(.rodata .rodata.*)
esp_start.*(.rodata .rodata.*) esp_start.*(.rodata .rodata.*)
. = ALIGN(4);
_edata = ABSOLUTE(.); _edata = ABSOLUTE(.);
_data_end = ABSOLUTE(.); _data_end = ABSOLUTE(.);
. = ALIGN(4);
} >dram0_0_seg AT > ROM } >dram0_0_seg AT > ROM
/* Shared RAM */ /* Shared RAM */
@ -307,6 +309,8 @@ SECTIONS
*(.fini) *(.fini)
*(.gnu.version) *(.gnu.version)
. += 16;
_text_end = ABSOLUTE(.); _text_end = ABSOLUTE(.);
_instruction_reserved_end = ABSOLUTE(.); /* This is a symbol marking the flash.text end, this can be used for mmu driver to maintain virtual address */ _instruction_reserved_end = ABSOLUTE(.); /* This is a symbol marking the flash.text end, this can be used for mmu driver to maintain virtual address */
_etext = .; _etext = .;
@ -455,7 +459,10 @@ SECTIONS
{ {
. = ALIGN(4); . = ALIGN(4);
*(.rtc.literal .rtc.text) *(.rtc.literal .rtc.text)
} >rtc_iram_seg *(.rtc.entry.text)
. += 16;
. = ALIGN(4);
} > rtc_iram_seg AT > ROM
/* RTC BSS section. */ /* RTC BSS section. */