SPI CS1(instead of CS0) on Kinetis for SD interface.

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

SPI CS1(instead of CS0) on Kinetis for SD interface.

1,076 Views
abubakaribm
Contributor I

I am using MQX 4.2 and I have a code for (SPI) SD card  for MCF52259. My Quesion is,Can I use the this code for Kinetis ??  If yes , My customized board has SD card CS connected with PTD4 that is SPI0_CS1 (and at SPI0_CS0 spi flash is connected). How can I enable CS1 (PTD4 as a SPI0 CS1)  , I tried fopen ("spi0:1", NULL); ,fopen ("spi0:2", NULL); It did not worked. Any Idea or sample code of Kinetics that can run SD card on SPI0 with CS1(PTD4).

Thanks in advance.

Labels (2)
0 Kudos
1 Reply

978 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Abu:

The low level driver is different.

Kinetis uses SPI drivers source/io/spi.

MCF uses legacy SPI drivers. source/io.spi_legacy.

The usage is different. Please refer to the MQX_IO_User_Guider.pdf  for more details.

Regards

Daniel

0 Kudos