esp32.project.ld , changing order of data in segment

km-ids
Posts: 4
Joined: Thu May 16, 2019 1:40 pm

esp32.project.ld , changing order of data in segment

Postby km-ids » Thu Sep 26, 2019 3:18 pm

I want to have
.noinit (NOLOAD):
{
. = ALIGN(4);
_noinit_start = ABSOLUTE(.);
*(.noinit .noinit.*)
. = ALIGN(4) ;
_noinit_end = ABSOLUTE(.);
} > dram0_0_seg

go ahead of
.dram0.data :
{ ...
}

in the linking of my application.

I see during the build process that esp32.project.ld.in is being copied into the output folder and renamed to esp32.project.ld, which is then used for linking.
I didnt want to edit files in the esp-idf install folder. Is there an easy way to copy the LD file to my project folder and edit the cmake file in my project folder to get this local copy used instead?

thanks

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

Re: esp32.project.ld , changing order of data in segment

Postby ESP_Angus » Mon Oct 07, 2019 11:15 pm

Hi km-ids,

Unfortunately there isn't an easy way to override just this file in your project.

May I ask why you need the noinit data to come first in the memory map? There might be some other way we can suggest to support this.


Angus

Who is online

Users browsing this forum: Google [Bot] and 160 guests