Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Last active January 22, 2020 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lupyuen/b0b7782f21330e292ea65b9c875bd9a7 to your computer and use it in GitHub Desktop.
Save lupyuen/b0b7782f21330e292ea65b9c875bd9a7 to your computer and use it in GitHub Desktop.

What's a Reset Handler?

The first line of code in our Application Firmware is in neither Rust nor C... It's in Arm Assembly Code. This is part of the Reset Handler function.

The Reset Handler is executed upon power up, after the Bootloader, just before our Rust application.

Reset Handler performs low-level functions (like initialising the RAM) which are best done in Assembly Code instead of C or Rust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment