S32K344 PIT timer callback function not working after SPI send data

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K344 PIT timer callback function not working after SPI send data

1,674件の閲覧回数
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,659件の閲覧回数
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,650件の閲覧回数
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,638件の閲覧回数
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,633件の閲覧回数
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,647件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@Steven_Cho

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

0 件の賞賛
返信