First of all, I'm not very professional, and I'm still learning, so if I ask questions that seem stupid, I hope you can help me answer them, thank you very much;
I am implementing SPI communication function on S32k144 chip, using LPSPI2. The pins used are as follows:
The development tool I use is IAR. My program mimics the code in the lpspi_transfer_s32k144 project and is configured as master. However, when the program reached the LPSPI_Init(base) line in the lPSPI_DRv_Masterinit() function at runtime, it could not continue, and there was a hard fault. I have been debugging for several days, but it still hasn't been solved. I hope anyone can help me. The code is in txt file.
Looking forward to answering. Thank you exeryone.