This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Change the Default Order of Sections in RAM

Hello,

I am using a Silicon Labs EFM32 MCU and would like to place the stack at the front of RAM followed by the data sections.

How do I go about doing that?

The linker script looks like this:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x00000800 0x0001F800 { ; load region size_region
ER_IROM1 0x00000800 0x0001F800 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x20000000 0x00004000 { ; RW data
.ANY (+RW +ZI)
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

It doesn't seem to mention anything about the stack or data sections.

thanks

0