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.
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