Quantcast
Channel: Bare Metal ARM linker script: How to relocate initialized data from ROM to RAM? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by old_timer for Bare Metal ARM linker script: How to relocate...

int global_var = 0xAAA;int global_too;void main(){ global_var = 0xBBB;}MEMORY{ bob : ORIGIN = 0x08000000, LENGTH = 0x100 ted : ORIGIN = 0x20000000, LENGTH = 0x100}SECTIONS{ .text : { *(.text*) } >...

View Article



Answer by HS2 for Bare Metal ARM linker script: How to relocate initialized...

Have a look at this comprehensive explanation regarding memory layout and linkage.You have to add the related startup code copying over the RAM sections in ROM to their destinations in RAM and...

View Article

Bare Metal ARM linker script: How to relocate initialized data from ROM to RAM?

I would like to put initial values of global variables in ROM section, and then, relocate their addresses and copy their values to RAM (so it can be edited by the program).My linker script SECTIONS:/*...

View Article
Browsing all 3 articles
Browse latest View live


Latest Images