SPC5748G CAN DMA Unable to enter interrupt

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

SPC5748G CAN DMA Unable to enter interrupt

775 Views
longfeiwang
Contributor III

I use demo project “flexcan_dma_receive”,and  i find that void DMA_0_ISR (void) is not registered in the project,So I registered this function in intc_SW_mode_isr_vectors_MPC5748G.c。

pastedImage_1.png

But the current operation result is that the DMA interrupt cannot be entered,and EDMA.INT0'flag is setted to1.The DMA target buffer RxDATA has received data with ID 0X555 in the buffer。

Is there something wrong with my operation??

0 Kudos
2 Replies

659 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

also call xcptn_xmpl(); in the main to enable interrupts.

BR, Petr

0 Kudos

659 Views
longfeiwang
Contributor III

Follow your suggestion to initialize this function xcptn_xmpl();,Then, after continuously sending 8 frames of data(0-7) with ID 0X555, it enters the interrupt.After I fetched this data(1-7) from the RxDATA buffer,I continue to send 8 frames of data(8-15) with ID 0X555,DMA can not enter the interrupt。When I checked the SADDR.R register and the DADDR.R register, the address changed after the first interrupt,So I re-initialized these addresses in the interrupt function but still cannot enter the interrupt function。

0 Kudos