MPC5777C_MCAL4_3_RTM_1_0_2 SPI ASYNCTRANSMIT with DMA Module can not transmit.

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

MPC5777C_MCAL4_3_RTM_1_0_2 SPI ASYNCTRANSMIT with DMA Module can not transmit.

485 Views
Cao_
Contributor I

Hello NXP Team,

I used MPC5777C_MCAL4_3_RTM_1_0_2 version of MCAL for SPI configuration to implement SPI+DMA asynchronous send function, but after configuration, when calling setup_EB and spi_AsyncTransmit interface to send 4-byte data in 100ms cycle, It is found that spi has been in Pending state and can not be sent successfully. Do you have the project of MPC5777C_MCAL4_3_RTM_1_0_2 version MCAL using DMA to realize SPI asynchronous sending for reference?

Screenshot of the MCAL configuration is as follows:

Cao__0-1691479890099.png

Cao__1-1691479917977.pngCao__2-1691479942243.pngCao__3-1691479956998.pngCao__4-1691479985271.pngCao__5-1691480002032.pngCao__6-1691480027754.pngCao__7-1691480064984.pngCao__8-1691480086127.pngCao__9-1691480107782.pngCao__10-1691480142550.pngCao__11-1691480196999.png

 

0 Kudos
Reply
1 Reply

465 Views
Cao_
Contributor I

Sorry the problem is solved after the DMA channel polling arbitration is modified, and if the priority arbitration is used, the priority of AUX is higher than the priority of TX, and the priority of RX is lower than the priority of TX, SPI can be sent normally.

0 Kudos
Reply