Hello,
I'm trying to configure DCAN and DMA to move incoming messages from the IF3-Registers to an address in RAM. Therefore I connected DCAN1 (with MessageBox1 as TxD) and DCAN2 (with MessageBox1 as RxD) and set the Update Enable Bit for the DCAN2-MsgBox1. To enable DMA Request for DCAN2IF3 I set DE3 in the DCAN2 CTL Register. The DMA funktions I used are based on the 3146.MIBSPI_DMA_Demo from this forum. For DCAN DMA Connection the DMA Request Line 4 ist used (DCAN2 IF3).
When I start the program, a message is sent from DCAN1 (MsgBox1) to DCAN2 (MsgBox1), where DataA and DataB is moved from IF2 to IF3 Register. It's working fine so far. But although the DMA Interrupts are enabled with HALCoGen, no Flags are set in the DMA Registers when the CAN message is coming in and the DMA Transfer with Hardware Request isn't working. When I use DMA Software Request the DMA Transfer works fine. What do I have to do to get the DMA Hardware Request working with the DCAN2 IF3 Registers?
Regards,
Joris