// We're currently running the bootloader at 0x00000000
// The main application exists at 0x00002000
// Get a function pointer to the main application's ResetISR
void (*(* const app_pfnVectors))(void) = 0x00002000;
void (*app_entry)(void) = app_pfnVectors[1];
// Run the main application, this will not return
app_entry(); |