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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,785 次查看
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.

标签 (2)
0 项奖励
回复
1 回复

1,687 次查看
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 项奖励
回复