esp-idf/components/bootloader
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
..
src bootloader/early boot: Error out if >192KB of static DRAM is allocated (temporary fix) 2017-07-12 13:06:56 +08:00
Kconfig.projbuild flash encryption/secure boot: Restructure documentation 2017-02-15 09:42:46 +11:00
Makefile.projbuild make: don’t override TEST_COMPONENTS 2017-03-09 19:43:39 +08:00