How do I set up both CAN modules on the PIC DSPIC33EP128GM604?
Argh, I finally found what was wrong. Initializing the DMA for the CAN module (or otherwise) includes:


Pointing to the Peripherals Register --> I had done that correctly
Pointing to the buffers in use ---> I had done that correctly too
Selecting the required peripheral as the interrupt source for the DMA --> I had done this correctly for CAN1 (DMA1REQ = 70;), but I did not change this when I copied the code to set up the DMA for CAN2 which was IRQ 71 and not 70! Changing this to DMA1REQ = 71 for CAN2 fixed everything!