Page 1 of 1

ROM bootloader memory usage

Posted: Fri Apr 20, 2018 12:06 pm
by michprev
Hi,
which memory regions exactly uses ROM bootloader? According to esp32 technical docs I would like to do something like this:

Code: Select all

MEMORY
{
    IRAM (RX) : ORIGIN = 0x40080000, LENGTH = 0x40000
    DRAM (RW) : ORIGIN = 0x3ffAE000, LENGTH = 0x52000
}
But this way my image does not get loaded.

Re: ROM bootloader memory usage

Posted: Fri Apr 20, 2018 9:05 pm
by WiFive

Re: ROM bootloader memory usage

Posted: Mon Apr 23, 2018 3:33 am
by ESP_Angus
Hi michprev,

Are you using the esptool.py load_ram command? In addition to the ROM ranges WiFive linked, if you're using the software loader stub then you need to avoid its memory regions:
https://github.com/espressif/esptool/bl ... _32.ld#L18

(Note: these regions are currently bigger than they need to be, I plan to reduce these sizes in an update.)

You can pass --no-stub to not have to worry about avoiding these areas of memory, also.

Angus