Replies: 2 comments 7 replies
-
|
Your macro expansion is right, but I would not assume it is actually consuming initialized flash bytes just from the That section is declared as: SECTION_DATA_PROLOGUE(priv_stacks_noinit,(NOLOAD),)
...
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)Under XIP, What is confusing is that the legacy |
Beta Was this translation helpful? Give feedback.
-
|
Could you use tools like One thing though, even if the section is not occupying space in the ELF file, it is possible that your ELF to flashing binary file conversion is adding that into the binary file. |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi There
linker file:
section "priv_stacks_noinit" is managed in above ld file.
At the end of that file, it is defined like this:
And in my environment: CONFIG_XIP=y, so the following applied:
#elif defined(CONFIG_XIP) || defined(Z_VM_KERNEL)
#define GROUP_DATA_LINK_IN(vregion, lregion) > vregion AT > lregion
Therefore, the privileged stack would exist in both ROM and RAM, and copied from ROM to RAM at power on.
And I checked the commit message and it doesn't show the necessity of loading it from ROM.
Is there a specific reason why it must be loaded from ROM ?
At this moment, if a user wants to increase CONFIG_PRIVILEGED_STACK_SIZE, the ROM size would be increased as well due to above reason.
Beta Was this translation helpful? Give feedback.
All reactions