Reading to and writing from an SD card on a FRDM-MK64 board using mbed

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading to and writing from an SD card on a FRDM-MK64 board using mbed

No ratings

Reading to and writing from an SD card on a FRDM-MK64 board using mbed

Reading and Writing to SD Card

Description:

A small project made with mbed (mbed.org) on the FRDM-MK64 using the SD card capabilities.

The program will open a file called test.txt in the root of the SD card, and will create one if it does not exist.

It will then write "one two three four five" in the .txt file.

It will then read the text and output the result.
You will need a terminal application (I recommend Termite) in order to see the outputs.

The current program overwrites anything that was previous on the SD card.

To prevent this, change the "w" to "a" during the writing process.

This changes the instruction from a 'write' to an 'append'.

This should be compatible with all boards that have an SD card connected.

However the appropriate pins from SDFileSystem will have to be changed to suit the board.

Check your board's schematic for the appropriate pins.

Attachments
Comments

Nice demo program. Are you willing to share the code?

Hi Barry,

Not sure if you get the source code, but there are other tutorials/projects which might be of interest to you:

Tutorial: Data Logger with the FRDM-K64F Board:

http://mcuoneclipse.com/2014/05/26/tutorial-data-logger-with-the-frdm-k64f-board/

FatFs + SDHC data logger with KSDK in Kinetis Design Studio:

https://community.freescale.com/docs/DOC-105852

FRDM K64F Data Logger using FatFs with KSDK 1.2.0:

http://centaurian.co.uk/2015/07/15/frdm-k64f-data-logger-using-fatfs-with-ksdk-1-2-0/

Regards,

Tomas

Version history
Revision #:
1 of 1
Last update:
‎07-24-2014 05:52 AM
Updated by: