An example program for the S25FL216K flash memory
Dependencies: S25FL216K_FATFileSystem mbed
Fork of S25FL216K_HelloWorld by
Diff: main.cpp
- Revision:
- 3:321618d7c9a5
- Parent:
- 1:e8698224bb08
- Child:
- 4:6a2931c19204
--- a/main.cpp Fri Aug 02 19:01:53 2013 +0000 +++ b/main.cpp Tue Nov 19 21:09:35 2013 +0000 @@ -18,7 +18,7 @@ int main() { flash.attachUSB(&usbCallback); - + wait(0.1); printf("Hello World!\r\n"); @@ -26,7 +26,10 @@ if(fp == NULL) { printf("Could not open file, assuming unformatted disk!\r\n"); - printf("Click in the nice popup window to format disk with default settings!\r\n"); + printf("Formatting disk!\r\n"); + flash.format(); + printf("Disk formatted!\r\n"); + printf("Reset your device!\r\n"); while(1); } else { wait(0.2);