S32K344 PIT timer callback function not working after SPI send data

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K344 PIT timer callback function not working after SPI send data

1,669 次查看
Steven_Cho
Contributor II

Hi Support Team,

I set a PIT timer to enter the callback function once every 10ms. It base on  SW32K3_RTD_4.4_2.0.0.

When I use Lpspi_Ip_SyncTransmit to send 2 bytes, the timer works fine.
But the timer doesn't work after I send 30 bytes using Lpspi_Ip_SyncTransmit.

Can you tell me why this happened?

Thanks

0 项奖励
回复
5 回复数

1,654 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Steven_Cho

The synchronization operate will block the current thread until the function is executed before continuing other operations, so make sure there is enough time to complete the current transfer.
You can try extending the PIT timing time and then test again

0 项奖励
回复

1,645 次查看
Steven_Cho
Contributor II

Hi Support Team,

I try to use Pit_Ip_StartChannel to extend 1 sec but still not work.

Should I change spi transmit method to Lpspi_Ip_AsyncTransmit?

If yes, how to use Lpspi_Ip_AsyncTransmit to send data? Could you give me a example?

Thanks

0 项奖励
回复

1,633 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Steven_Cho

I made a very simple routine, you can refer to it and test it. I did not have the problem you mentioned.

0 项奖励
回复

1,628 次查看
Steven_Cho
Contributor II

Hi Support Team,

Because you provide test project is based on RTD 3.0.0, I install it and test your project. It works fine.

Then I retry my project it works fine too without any modification. 

Thank you

 

1,642 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Steven_Cho

you can sent me your project and i will help you check it.

0 项奖励
回复