I have been working on a project about S32K312mcu to read and write SD card using SPI, but what has always confused me is that after configuring SPI for STM32's cubemx, it will automatically generate the initialization and enable of the SPI pins, while S32DS needs to configure it again. I wanted to try to transplant it using the STM32 driver code, but it always failed. So I would like to ask if anyone has SPI and SD card drivers for the S32K312 or S32K3 series.
As mentioned in case #00660962:
We have no drivers for SD card in SPI mode for S32K3 devices.
I guess that the libraries mentioned on the community are for Kinetis devices. So, you can take a look at the Kinetis SDK:
https://www.nxp.com/design/design-center/development-boards-and-designs/software-development-kit-for...
It's mentioned in the Features:
"SDMMC, a software component supporting SD Cards and eMMC"
Or you can take a look at following resources:
https://www.nxp.com/docs/en/application-note/AN10406.pdf
https://community.nxp.com/docs/DOC-330958