Assign symbols to specific memory regions in ld script#458
Assign symbols to specific memory regions in ld script#458vladyslavmarkovaccenture wants to merge 4 commits into
Conversation
Change-Id: I7971a283f712c66695d976dc343eb749cb207698
Change-Id: I7ed597ca3fa125fcc703c1c14ece6f4eebc5bb4e
| *(.data) | ||
| *(.data*) | ||
| /* Communication-related components */ | ||
| *app.o(.data .data*) |
There was a problem hiding this comment.
The same file list is now listed 7 times in this linker script, in different variants - hard to maintain.
Can this be factored out? E.g. via include construction, or macros? (Preprocessor would need to be employed explicitly, though.)
There was a problem hiding this comment.
Unfortunately we need to reference units 7 times. I created a single source of truth file for hot memory. Macros are defined within linkerscript itself.
|
@vladyslavmarkovaccenture Can you please explain the background behind this change? Which problem it solves? Ideally, in the commit message and or documentation? |
|
@rolandreichweinbmw I will add another commit to this PR with changes to documentation. TL;DR functionally it's an expansion of usable memory. All new stuff will be put to SRAM_U by default, "hot" functionality is moved to SRAM_L. Previously SRAM_U was not used (except for 0x400 bytes allocated for NoInit). |
ea3fe07 to
9f96c38
Compare
Assign symbols to specific memory regions in ld script