I need to test the SD Interface on my K64 dev board, but there is no example show me how to init, read or write SD cards.
Please help to send me the link if there is one.
Solved! Go to Solution.
Hi Kevin:
Add to mark's comments, I would suggest you also refer to the sdcard_fs demo in MCUXpresso SDK , this project is a demonstration program that uses the SDK software. It mounts a file system based on a SD card then does "creat directory/read directory/create file/write file/read file"
operation.
SDK_2.3.0_FRDM-K64F\boards\frdmk64f\driver_examples\sdcard_fatfs
Regards
Daniel
Kevin, where did you find SDHC example in NXP SDK ?
I do not see any example of sdcard neither sdhc in the latest SDK v2.4 - was it removed?
See my list of driver_examples which came with FRDM-K64F SDK v2.4.0 . Notice - I've built this SDK with SDHC and fatFS components chosen.
What happened? Was it removed? Please advise
Hi Vladimir
sdcard_fs was removed to this folder
FRDM-K64F_2.4_all_20180605\boards\frdmk64f\fatfs_examples\fatfs_sdcard
Regards
Daniel
Thanks for reply, Daniel . In my current SDK folder boards\frdmk64f\ there is no "fatfs_examples" . When configuring SDK package for FRDM-K64F board , I included SDHC and fatFS drivers. Did you include something else or was your SDK not latest ?
In the latest SDK 2.5 for Frdm-k64f board, you can see fatfs_examples.
Regards
Daniel
Hi Kevin:
Add to mark's comments, I would suggest you also refer to the sdcard_fs demo in MCUXpresso SDK , this project is a demonstration program that uses the SDK software. It mounts a file system based on a SD card then does "creat directory/read directory/create file/write file/read file"
operation.
SDK_2.3.0_FRDM-K64F\boards\frdmk64f\driver_examples\sdcard_fatfs
Regards
Daniel
Was sdcard_fatfs example removed in SDK_2.4.0_FRDM-K64F ? It is not in here... neither sdhc...
It works and I found the sdhc example I want in NXP SDK.
Hi
There is a powerful SD card (utFAT) interface for your board (including expert functions for analysing the FAT), working together with FTP or web servers, and also for USB-MSD operation.
utFAT (on SPI or SDHC) http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF
It also allows SD card emulation for complete testing of applications using SD cards in (approx.) real-time in Visual Studio. [This video shows the lowest level of operation: https://youtu.be/VY-I0_h5p4Q]
All available in the open source version linked to below. Or run some of the binary references as the board links below to see immediate operation.
Regards
Mark
Kinetis: http://www.utasker.com/kinetis.html
Kinetis K64:
- http://www.utasker.com/kinetis/FRDM-K64F.html
- http://www.utasker.com/kinetis/TWR-K64F120M.html
- http://www.utasker.com/kinetis/TEENSY_3.5.html
- http://www.utasker.com/kinetis/Hexiwear-K64F.html
Free Open Source solution: https://github.com/uTasker/uTasker-Kinetis
Working project in 15 minutes video: https://youtu.be/K8ScSgpgQ6M
For better, faster, cheaper product developments consider the uTasker developer's version, professional Kinetis support, one-on-one training and complete fast-track project solutions to set you apart from the herd : http://www.utasker.com/support.html