Skip to content

Instantly share code, notes, and snippets.

@Harakan
Created February 2, 2016 19:55
Show Gist options
  • Save Harakan/e713ebfd84f29dca571b to your computer and use it in GitHub Desktop.
Save Harakan/e713ebfd84f29dca571b to your computer and use it in GitHub Desktop.
void Reset_Handler()
{
int *from = &_data_flash_start;
int *to = &_data_start;
while (to != &_data_end)
*(to++) = *(from++);
to = &_bss_start;
while (to != &_bss_end)
*(to++) = 0;
main();
while (1) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment