Hello soheil.fard@litens.com,
Can you please explain a bit your scenario?
Do you want to get a shell exactly like in Eric's tutorial? Or do you want to slog different parameters at runtime on the SD Card?
Well, both ways in NXP's MBDT fro S32K we do not offer native support for the SD card. But, you can achieve this functionality by using custom code.
In order to write and read data on an SD card, you need to have a file system. For that, the tutorial presented is using the FATFS library. So to this in Simulink you have to do the following:
1. Use NXP SPI blocks to configure the SPI peripheral that will act as the physical layer for the SD Card.
2. Add all the files from the FATFS to your project and integrate them same way like in this tutorial here https://community.nxp.com/docs/DOC-345880
3. for each read and write blocks basically you will use a Matlab function that will call the c code for the functionality you want to achieve.
Hope this helps,
Marius