Hi
I have attached binary files for FRDM-KE02Z40M and FRDM-KE02Z and SD card (build with KDS and GCC).
In both cases the SD card can be connected using the following pins:
// - SPI0_CS PTE-3 (J9-7) [VDD J9-4 / 0V J9-14]
// - SPI0_SCK PTE-0 (J9-1)
// - SPI0_MOSI PTE-1 (J9-3)
// - SPI0_MISO PTE-2 (J9-5)
There is a DOS-like interface on the OpenSDA virtual COM port UART which allows the SD card to be manipulated. Eg.
Disk interface
===================
up go to main menu
info utFAT/card info
dir [path] show directory content
dird [path] show deleted directory content
dirh [path] show hidden content
infof [path] show file info
infod [path] show deleted info
cd [path] change dir. (.. for up)
file [path] new empty file
write [path] test write to file
mkdir new empty dir
rename [from] [to] rename
trunc truncate to [length] [path]
hide [path] file/dir to hide
unhide [path] file/dir to un-hide
prot [path] file/dir to write-protect
unprot [path] file/dir to un-protet
print [path] print file content
del [path] delete file or dir.
undel undelete [name]
format [-16/12] [label] format (unformatted) disk
fformat [-16/12] [label] full format (unformatted) disk
re-format [-16/12] [label] reformat disk!!!!!
re-fformat [-16/12] [label] full reformat disk!!!!!
sect [hex no.] display sector
help Display menu specific help
quit Leave command mode
D:\>dir
Directory D:\
---- 26.10.2015 12:00 <DIR> dir1
---A 26.10.2015 12:00 256 M21.txt
1 files with 256 bytes
1 directories, 4115939328 bytes free
This is available at http://www.utasker.com/kinetis.html and will work on most Kinetis parts and IDEs without needing any porting effort. utFAT documentation at http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF
and the project, processor and SD card can be simulated in (approx.) real time as shown below.
Regards
Mark
