Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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.
Finish editing this message first!
Please register or to comment