Hello!
I'm working with s32k148-q176 EVB and trying to test lpspi communication based on FreeRTOS. I find the example project "freertos_s32k148". then I change its code. Altough i can build this project with no problems, the lpspi communication does not work.
Here is rots_start function in rtos.c file.
Here is my Task function.
Here is related function.
Here is the Debug window.
The varibles status_slave and status_master are equal to 2.
2 means, lpspi transfer is status busy.
I have no idea how to solve it.
Can anyone help?
Hello,
Are you calling LPSPI_DRV_MasterInit and LPSPI_DRV_SlaveInit ?
Thanks,
Rares
I also having a problem in which LPSPI_DRV_MasterInit and LPSPI_DRV_SlaveInit both intialized and frertos stop at default isr when masterTransferBlocking or any spi transfer function is called from the any task. since i have intialized wdog it will retart the controller every time.
Hi,
Maybe you can try to reset the interrupts priority of SPI.
Liu.