Skip to content
Snippets Groups Projects
Commit a493ca70 authored by schneider's avatar schneider
Browse files

feat(bootloader): Drop into MSC if no filesystem is available

parent 4d346ba2
No related branches found
No related tags found
No related merge requests found
Pipeline #2355 passed
......@@ -288,6 +288,13 @@ int main(void)
}
}
/* Get the intital SP of the firmware. If it is 0xFFFFFFFF, no image has been
* flashed yet. Drop into MSC for initial flashing. */
if (*((uint32_t *)PARTITION_START) == 0xFFFFFFFF) {
printf("No valid image in flash\n");
msc();
}
printf("Trying to boot\n");
boot((uintptr_t *)PARTITION_START);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment