Looking for an example about writing on a sd with the kl27 mcu using the fatfs library or another

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Looking for an example about writing on a sd with the kl27 mcu using the fatfs library or another

1,113 Views
juancamilomonto
Contributor I

Hello, im looking for an example step-by-step about writing on a micro sd using the kl27. It could be with the fats library or another.

Labels (1)
Tags (2)
0 Kudos
7 Replies

774 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Juan,

Erich posted several documents on FATfs:

http://mcuoneclipse.com/2012/07/30/fatfs-with-kinetis/

http://mcuoneclipse.com/2013/05/04/added-write-protection-pin-to-fatfsmemsdhc/

Updated McuOnEclipse Components: USB for KL24Z, FatFs v0.10c, Shell Backspace and FreeRTOS Trace Hoo...

http://mcuoneclipse.com/2014/07/13/multi-drive-support-with-fatfs/

Hope this helps!

Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

774 Views
juancamilomonto
Contributor I

Hi Zhang,

Thnks for answer. I need a more specific example for the kl27, I already have seen those documents but they didnt help. I need this to develop an academic project to write a SD with the information from some sensors.

regards,

Juan Camilo Montoya

0 Kudos

774 Views
mjbcswitzerland
Specialist V

Hi

See http://www.utasker.com/kinetis/FRDM-KL27Z.html#SD
as well as http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF [this gives details about using the SPI interface with the SD card as well as the API]

It allows the KL27 to work with an SD card, based on utFAT2.0 (this has more features that fsfat) and it allows you to simuate the KL27 and the SD card in (approx.) real-time using VisualStudio. There is a simuation there that you can try which will allows you to format the card, create directories, write files etc.
On the target the SD card can be used as an external USB-MSD drive.

Regards

Mark

Kinetis: µTasker Kinetis support

KL27: µTasker Kinetis FRDM-KL27Z support

For the complete "out-of-the-box" Kinetis experience and faster time to market

774 Views
juancamilomonto
Contributor I

Hi Mark,

Thanks for the answer.

Do you have any example in Kinetis Design Studio, I am not so acquainted with uTasker and I really need to know how to work with the SD card on the KL27.

0 Kudos

774 Views
mjbcswitzerland
Specialist V

Hi Juan Camilo

The project can be opened and built with the following IDEs, including KDS:

It depends on what you are intending to do:

- 1. Study/Learning to see how SPI and FAT works - VisualStudio simulation is the best method

- 2. Developing an application that needs to work with an SD card whereby you need a reliable and full-featured API but don't really need to understand how SPI and FAT works - any compiler/IDE and the API User's manual.

Regards

Mark

Kinetis: µTasker Kinetis support

KL27: µTasker Kinetis FRDM-KL27Z support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 Kudos

774 Views
juancamilomonto
Contributor I

Hi Mark,

I dont have the uTasker software and I need to develop an application that write information from sensors on th SD, its only for academical purposes.

thanks,

Juan Camilo Montoya

0 Kudos

774 Views
mjbcswitzerland
Specialist V

Hi Juan Camilo

Please register at http://www.utasker.com/Licensing/request.html

and then you will have access to all software that you need - it includes everything necessary for immediate data logging applications to SD cards and USB-MSD for retrieval.

Don't be frightened by the registration - it is to just to help coordinate user support and every thing is free for academic users.
I will then contact you by email to coordinate things so that you don't lose any time completing the work.

Regards

Mark

Kinetis: µTasker Kinetis support

KL27: µTasker Kinetis FRDM-KL27Z support

For the complete "out-of-the-box" Kinetis experience and faster time to market


0 Kudos