hi everyone
After I added the FreeRTOS module, there were issues with my LPSPI transmission,What is the reason for this?
I perform SPI transmission on external Flash, and the code can run normally without FreeRTOS. When FreeRTOS is added, the code will make an error at the command being transmitted.Why?
已解决! 转到解答。
Hi Petr
I did not initialize LPSPI in task scheduling, just like SDK v4.0 freertos_s32k144 demo use prvSetupHardware() function Initialize LPSPI .Start SPI communication after initialization, using LPSPI_ DRV_ The MasterTransferBlocking function will report an error.
My phenomenon is that after adding the freertos module, my SPI transfer function will directly report an error.
Best Reagrds
Hi Petr
Thank you for your reply. I seem to have found the cause of the problem, The SemaWait() function was called in the LPSPI_DRV_MasterTransferBlocking() function.When the freertos module was not added, this function exists in osif_baremetal. c. However, after adding freertos, it will jump to osif_ Freertos. c, this may be the reason why the function cannot run, but I haven't found a solution yet. Do you have any ideas?
Best Regards