mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
esp32: Change 192KB runtime static limit workaround to a 176KB link time workaround
Turns out some app memory around 0x3ffdc000 is also used by APP CPU. This is a workaround until code to remove the 176KB limit is committed.
This commit is contained in:

committed by
Angus Gratton

parent
eb0f2f2f04
commit
f8580ea98f
@@ -136,13 +136,6 @@ void IRAM_ATTR call_start_cpu0()
|
||||
esp_panic_wdt_stop();
|
||||
}
|
||||
|
||||
// Temporary workaround for an ugly crash, until we allow > 192KB of static DRAM
|
||||
if ((intptr_t)&_bss_end > 0x3FFE0000) {
|
||||
// Can't use assert() or logging here because there's no .bss
|
||||
ets_printf("ERROR: Static .bss section extends past 0x3FFE0000. IDF cannot boot.\n");
|
||||
abort();
|
||||
}
|
||||
|
||||
//Clear BSS. Please do not attempt to do any complex stuff (like early logging) before this.
|
||||
memset(&_bss_start, 0, (&_bss_end - &_bss_start) * sizeof(_bss_start));
|
||||
|
||||
|
Reference in New Issue
Block a user