Hello NXP Community,
I am currently working on a project involving the S32K146 MCU and facing a critical issue with SPI communication.
When I integrate the FATFS library for SD card operations with LPSPI communication, the MCU fails to read the MCU registers correctly. Here's a detailed breakdown of the problem:
I would greatly appreciate any insights or suggestions to resolve this issue. Specifically, I am looking for advice on:
Thank you in advance for your support!
Best regards,
Koushik
Hi @KKB
this is an application issue, we can provide only very limited support here.
Generally: I would try to avoid sharing of resources on S32K1 devices because there's nothing like semaphores. For example, do not use the same LPSPI instance directly if it is used also by some other stack or task. Also make sure that no re-entrance is happening. This may be an issue if the same resources are used in interrupt handlers.
Regards,
Lukas
There is no same LPSPI Instances are used, The problem I am facing is that MCU is trying to access the undefined memory location (0xDEADBEEE). Any help regarding this problem is much appreciated.
Regards,
Koushik