S32K146 : FREERTOS+LSPI,but SPI dones't work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K146 : FREERTOS+LSPI,but SPI dones't work

955 Views
592314340
Contributor I

I used freertos in the project and creat a task , in the task i used  LPSPI_DRV_MasterTransferBlocking() and LPSPI_DRV_SlaveTransfer(), the SPI is transfed by DMA,the same code can work without FREERTOS,my code is attached.

0 Kudos
2 Replies

857 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hi Chen Xiao,

Can you let me know where your code is getting stuck? Usually, one of the reasons for this problem is the stack size gives it for the tasks, it can be modified in the following section:

pastedImage_1.png

And also, increasing the heap size usually helps too.

pastedImage_2.png

Let me know if this helps you.

Best Regards,

Alexis Andalon

0 Kudos

857 Views
592314340
Contributor I

that's ok ,thanks!

0 Kudos