ROM bootloader memory usage

michprev
Posts: 92
Joined: Fri Aug 04, 2017 8:57 pm

ROM bootloader memory usage

Postby michprev » Fri Apr 20, 2018 12:06 pm

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.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: ROM bootloader memory usage

Postby WiFive » Fri Apr 20, 2018 9:05 pm


ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: ROM bootloader memory usage

Postby ESP_Angus » Mon Apr 23, 2018 3:33 am

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

Who is online

Users browsing this forum: No registered users and 94 guests