Hello @Ehsaaan ,
I have checked you configuration and I see that the Port configures for DSPI0 but not SPI2
hungnguyenphi_0-1636967949820.png
The reference clock is not correct.
hungnguyenphi_1-1636968067006.png
Could you please help to update it and recheck
Best regards,
Hung