- This topic has 1 reply, 2 voices, and was last updated 7 years, 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Mastering STM32 book support forum › Memory layout question
Hello
In the memory layout section you said that , there must be a function which copies the data from flash to SRAM.
But when i checked in KEIL , there is no such function.
for example, the startup code says something like this
; Reset handler
Reset_Handler PROC
EXPORT Reset_Handler [WEAK]
IMPORT SystemInit
IMPORT __main
LDR R0, =SystemInit
BLX R0
LDR R0, =__main
BX R0
ENDP
the “SystemInit” doesnt have any code to copy the data from flash to sram.
then it comes to the “main”
but i can still see the data sitting in the SRAM . who copied the data to SRAM?
Hi,
unfortunately I don’t have experience with Keil.