Commit 70806018 authored by schneider's avatar schneider Committed by Rahix
Browse files

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

parent 877212d2
......@@ -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");
printf("Trying to boot\n");
boot((uintptr_t *)PARTITION_START);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment