OVMS3-idf/components/esp32
Angus Gratton 2b0f623259 bootloader/early boot: Error out if >192KB of static DRAM is allocated (temporary fix)
Currently the last 128KB of DRAM is reserved for the bootloader & early boot stacks. This means if >192KB of static DRAM
is allocated, the only available heap is this region - which is disabled until the scheduler starts. As a result, you
get either heap corruption on early boot if the static data overlaps startup heap (leading to very weird errors), or
FreeRTOS will fail to start when it can't malloc() anything.

Long term fix is to move the stacks & bootloader data to the very end of RAM, and only reserve that part for early
boot. This is a little fiddly because of also wanting to make sure this memory is not preemptively fragmented when it
gets reintroduced to the heap. This will become more important if/when we have more static allocation options in the
future.

For now, these errors make it clear why the boot has failed.

Ref TW13909
2017-07-12 13:06:56 +08:00
..
hwcrypto component/soc : move dport access header files to soc 2017-05-09 18:06:00 +08:00
include Merge branch 'doc/wifi_set_vendor_ie' into 'master' 2017-06-30 16:37:18 +08:00
ld Merge branch 'feature/sysview_via_apptrace' into 'master' 2017-06-29 08:40:13 +08:00
lib@fcdc5ccdfa esp32: update wifi lib to fix a sniffer issue 2017-06-24 10:45:20 +08:00
test Merge branch 'feature/sysview_via_apptrace' into 'master' 2017-06-29 08:40:13 +08:00
cache_err_int.c component/soc : move dport access header files to soc 2017-05-09 18:06:00 +08:00
clk.c esp32: make time monotonic across resets 2017-06-16 12:06:04 +08:00
component.mk component/esp32 : fix dualcore bug 2017-05-08 21:53:43 +08:00
core_dump.c esp32: Core dump sanity checks were added 2017-04-26 21:13:02 +03:00
cpu_start.c bootloader/early boot: Error out if >192KB of static DRAM is allocated (temporary fix) 2017-07-12 13:06:56 +08:00
crosscore_int.c component/soc : move dport access header files to soc 2017-05-09 18:06:00 +08:00
deep_sleep.c component/soc : move dport access header files to soc 2017-05-09 18:06:00 +08:00
dport_access.c stack sizes: Revert stack size increases added in 8d43859 2017-06-29 14:57:13 +10:00
event_default_handlers.c event handler: Add debug event handler for confirmed IPv6 LL address 2017-06-23 16:15:16 +10:00
event_loop.c esp_event_send: check if the event loop is initialized 2017-06-05 11:01:26 +08:00
freertos_hooks.c Add comments/headers according to merge request comments 2016-11-15 12:10:02 +08:00
gdbstub.c Fix small bug in gdbstub where it sometimes would not return a valid stop reason, timing out gdb. Also clean up the code a bit. 2016-12-02 17:42:11 +08:00
heap_alloc_caps.c MR things 2017-03-09 19:59:09 +08:00
hw_random.c esp_random: XOR the RNG register value several times before returning it 2017-01-04 17:07:12 +11:00
int_wdt.c driver: timer 2016-11-23 17:23:21 +08:00
intr_alloc.c esp32: SEGGER SystemView Tracing Support 2017-06-27 20:52:43 +03:00
ipc.c ipc task: Allow configuration of IPC task stack size 2017-06-30 15:04:19 +10:00
Kconfig ipc task: Allow configuration of IPC task stack size 2017-06-30 15:04:19 +10:00
lib_printf.c uart_tx_wait_idle: fix issue with last character not transmitted 2016-12-08 01:42:37 +08:00
libhal.a Initial public version 2016-08-17 23:08:22 +08:00
Makefile.projbuild phy init data: Read PHY init data partition offset from menuconfig 2016-11-18 20:11:16 +08:00
panic.c Merge branch 'feature/sysview_via_apptrace' into 'master' 2017-06-29 08:40:13 +08:00
phy.h soc: add source code of rtc_clk, rtc_pm 2017-04-11 15:45:54 +08:00
phy_init.c phy_init: fix log level for "PHY data partition validated" message 2017-07-05 11:29:53 +08:00
phy_init_data.h phy init data update 2016-12-19 14:23:39 +08:00
restore.c esp_system: remove link time dependency on WiFi stack 2017-06-15 18:15:36 +08:00
spiram.h Initial public version 2016-08-17 23:08:22 +08:00
system_api.c esp_chip_info: populate ‘model’ field 2017-07-06 11:01:40 +08:00
task_wdt.c Add interrupt allocation scheme / interrupt sharing. Also modifies drivers and examples. Also allows interrupts 2016-12-08 12:39:33 +08:00