SD card file helloworld demo using new mbed RTOS ver 5 file driver setup. Pins setup for LPC1768 - read comment in code about project's json file requirements for adding the SD filesystem driver
SD card r/w demo for mbed OS version 5 on LPC1768.
File drivers are added in json file with "target.components_add": ["SD"] for use in most recent OS 5 version.
Test messages are sent to serial port with printf's.
Revision 2:21d14147254e, committed 2019-09-24
- Comitter:
- 4180_1
- Date:
- Tue Sep 24 18:16:27 2019 +0000
- Parent:
- 1:3a59eb72e0cf
- Commit message:
- ver 1.1
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3a59eb72e0cf -r 21d14147254e main.cpp --- a/main.cpp Tue Sep 24 17:32:01 2019 +0000 +++ b/main.cpp Tue Sep 24 18:16:27 2019 +0000 @@ -28,7 +28,7 @@ } printf("Reading back from new file: "); while(fscanf(fr,"%c",&filereadchar) == 1) { - printf("\%s",&filereadchar); + printf("\%c",filereadchar); } fclose(fr); sd.deinit();