Skip to content
RED SAG Skills
medium10 pts · first answer countsembedded-cstartup-code

How startup finds .data

How does the startup code know where .data is in flash and where to copy it in RAM?

extern uint32_t _sidata, _sdata, _edata;
uint32_t *src = &_sidata, *dst = &_sdata;
while (dst < &_edata) *dst++ = *src++;
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions