S32K344 PIT timer callback function not working after SPI send data

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

S32K344 PIT timer callback function not working after SPI send data

1,650 Views
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 Kudos
Reply
5 Replies

1,635 Views
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 Kudos
Reply

1,626 Views
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 Kudos
Reply

1,614 Views
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 Kudos
Reply

1,609 Views
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,623 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Steven_Cho

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

0 Kudos
Reply