An example program for the S25FL216K flash memory
Dependencies: S25FL216K_FATFileSystem mbed
Fork of S25FL216K_HelloWorld by
Revision 3:321618d7c9a5, committed 2013-11-19
- Comitter:
- Sissors
- Date:
- Tue Nov 19 21:09:35 2013 +0000
- Parent:
- 1:e8698224bb08
- Child:
- 4:6a2931c19204
- Commit message:
- Bugfix
Changed in this revision
--- a/S25FL216K_USBFileSystem.lib Fri Aug 02 19:01:53 2013 +0000 +++ b/S25FL216K_USBFileSystem.lib Tue Nov 19 21:09:35 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/Sissors/code/S25FL216K_USBFileSystem/#355e49586f92 +http://mbed.org/users/Sissors/code/S25FL216K_USBFileSystem/#ec125501d68f
--- 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);
--- a/mbed-src.lib Fri Aug 02 19:01:53 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/Sissors/code/mbed-src2/#aee376ec5d1a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.lib Tue Nov 19 21:09:35 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/#673126e12c73