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。
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??
Hi,
also call xcptn_xmpl(); in the main to enable interrupts.
BR, Petr
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。