To use the SD card with the FatFs PE component issue

cancel
Showing results for 
Search instead for 
Did you mean: 

To use the SD card with the FatFs PE component issue

620 Views
matherinewang
Contributor III

Hi All,

I create a new Kinetic project in KDS IDE 3.0.0, which using KSDK 1.2.0 and Processor Expert.

then, i start to use the SD card with the FatFS PE component, i follow  the demo which links below from Erich Styger

Tutorial:Data Logger with the FRDM-K64F Board | MCU on Eclipse 

But it gets problem when create HW SPI component as shows below:

pastedImage_0.png

If i ignore the problem, and press ok, then KDS will create all components, but SM component will shows 'the component is not supported for selecte processor'.

pastedImage_1.png

And the same problem for the SS component, as shows below:

pastedImage_2.png

  I have done a test here:

1. delete all PE component include Cpu

2. detete variable below for KSDK_1.2.0, and use KSDK1.1.0

pastedImage_3.png

3. create new cpu component

4. create fatfs and related component

5. then everything goes well

So, why SDK1.2.0 have this problem, but 1.1.0 work well? does anyone have same problem as me, thanks in advance?
 
 
 
 
 
 
 
 
 
 
 


0 Kudos
3 Replies

186 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello matherine wang:

It is not because of the version, but about KSDK itself. The components from Erich Styger you are trying to use are not compatible with KSDK projects.

When you deleted the variable, the project actually changed to be a No-KSDK project and it lets you add legacy components.

The correct approach in KDS if you want to follow the tutorial is to create a new project for K64 but in the "Rapid Application Development" set the Kinetis SDK option as None:

pastedImage_2.png

Regards!

Jorge Gonzalez

186 Views
matherinewang
Contributor III

Hi, but i want to use both PE components for SD card and KSDK, so what can i do?

0 Kudos

186 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello matherine:

It's not possible to combine KSDK components with non-KSDK ready components, so you have to go either of both routes.

- If you choice not to use KSDK just select "none" as shown in the picture.

- If you want to use KSDK, here are some tutorials:

FRDM K64F Data Logger using FatFs with KSDK 1.2.0 | Centaurian  (with PE)

FatFs + SDHC data logger with KSDK in Kinetis Design Studio  (without PE)

And also a demo without FatFs in KSDK installation:

C:\Freescale\KSDK_1.2.0\examples\twrk64f120m\driver_examples\sdhc_sdcard

Regards!

Jorge Gonzalez

0 Kudos