This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM48L952: [FAQ] HW trigger problem of CAN1 IF1 using DMA

Part Number: RM48L952


Hello, thank you for always answering my questions.
Today, I tried to use DMA HW Trigger when sending data to message box 1 of IF1 of CAN1. However, the transmission did not work properly and only the receive data using CAN2 IF3 worked properly.
In my code, the data is transmitted using SW trigger. How do I modify the code to transmit data using HW trigger?
Thank you for your time. Below is my code.

20220427_CAN2.zip

  • Hi,

    I got you question, and will study it and response to you later. 

  • Hi,

    the DCAN1 IF1 DMA request is triggered if it is enabled by the DE1 bit in the DCAN CTL register, additionally in the DCAN IF1CMD register the DMA Active bit needs to be set. Then the transfer from/to IF1 and message RAM needs to be triggered. Once the transfer completes the DMA request will be triggered. 

    Your code doesn't enable DE1, and DAM_Active. The transfer between DCAN1 IF1 and Message RAM should be triggered manually by writing the message number to IF1CMD register.