Hello vihaan,
do you refer to the "copied to RAM at startup" in default Start08.c or Start12.c?
if yes, this part of code is to copy initialization data from ROM to RAM .
for example we define a global variable:
unsigned int g_val = 0x1234;
before power on chip, g_val is in ROM, it's not possible in RAM because RAM can't store anything when power off,
once power on, "copied to RAM at startup" routine is needed to copy g_val value from ROM to RAM, becuase g_val is global variable, it must be in RAM memory when power on.
does this clarify the issue?
Best Regards,
Zhang Jun.
==============================================================
this answer is for you, if it helps, please click on "Correct Answer" button. Thanks!
==============================================================