diff options
author | Gurjant Kalsi <me@gurjantkalsi.com> | 2016-05-10 22:15:17 -0700 |
---|---|---|
committer | Gurjant Kalsi <me@gurjantkalsi.com> | 2016-05-10 22:15:17 -0700 |
commit | a2d9629dadf3086e7d52a4ad222404cd32e8fc25 (patch) | |
tree | 879efe437d32208ffc301fade83467d80694b700 /target | |
parent | c19fcc5bb37aea0ff5ba07c54c5dc9b13395c166 (diff) | |
download | common-a2d9629dadf3086e7d52a4ad222404cd32e8fc25.tar.gz |
[dartuino][spifs] Add a better error message when QSPI is not formatted on dartuino
Diffstat (limited to 'target')
-rw-r--r-- | target/dartuinoP0/init.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/target/dartuinoP0/init.c b/target/dartuinoP0/init.c index 7ad01951..222eaffc 100644 --- a/target/dartuinoP0/init.c +++ b/target/dartuinoP0/init.c @@ -153,10 +153,17 @@ void target_init(void) status_t mount_success = fs_mount(DEAULT_SPIFS_MOUNT_POINT, DEAULT_SPIFS_NAME, SPIFS_TARGET_DEVICE); if (mount_success != NO_ERROR) { - printf("failed to mount '%s' at path '%s' on '%s'." - " Make sure that device is formatted\n", + printf("************************************************************\n"); + printf("failed to mount '%s' at path '%s' on '%s'.\n" + "Make sure that device is formatted.\n", DEAULT_SPIFS_NAME, DEAULT_SPIFS_MOUNT_POINT, SPIFS_TARGET_DEVICE); + printf("Run the following command to format the device then reboot\n" + "the device to mount the filesystem:\n"); + printf("\t] fs format %s %s\n", DEAULT_SPIFS_NAME, + SPIFS_TARGET_DEVICE); + printf("************************************************************\n"); + } #endif |