1915967_en-US

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

1915967_en-US

1915967_en-US

S32k146 read data from SD-card with SPI

Hi,
we need to read data from our micro-SD card.

Is there any example for the communication between s32k146 and a sd-card via SPI without SDK?

Best regards

Sandra

Re: S32k146 read data from SD-card with SPI

Hi LBowen,

I used the project "S32K144_Project_LPSPI" which is posted on the bottom of the following topic https://community.nxp.com/t5/S32-SDK/S32K144-Fatfs/m-p/1205126/highlight/true#M2016 as base. You have to use f_read instead of f_write to read data from the sd-card. 

Best regards


Re: S32k146 read data from SD-card with SPI

Hi @12914A 

As the S32K family does not directly support SD cards (not expected use-case)we do not have such example or drivers for this device. The driver must be written by the user.

We have an application note (S32K1xx Series Cookbook) that provides software examples and describes the necessary startup steps needed to get started with S32K1xx series MCUs.  Also, we can help with the LPSPI module and problems with communication such as not transmitting words as programmed or not receiving expected words.


BR, VaneB

Re: S32k146 read data from SD-card with SPII want to ask, has it been solved? I also need this routine, thank you
Tags (1)
No ratings
Version history
Last update:
‎01-06-2026 01:42 AM
Updated by: