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.

MSPM0G3507: Issue of Transmission complete interrupt in MCAN

Part Number: MSPM0G3507

Tool/software:

Hi experts,

I am testing interrupt function on MCAN based on the demo "mcan_single_message_tx_LP_MSPM0G3507_nortos_ticlang" by using G3507 LP.

I add the Transmission complete interrupt as follows:

and let MCU sends data continuously

On PC sides, I can receive the data from MCU

However the "complete_count" do not increase.

Any suggestions for this issue?

Thanks,

Leo

  • Hey Leo, thanks for reaching out! Can you set a breakpoint in the IRQHandler to see what the behavior is when it enters the interrupt routine?

    -Brian

  • Hi Brian,

    I add he BKPT in the IRQHandler. And the MCU do not stop here.

    For comparison, I test the RX interrupt in "mcan_message_rx_LP_MSPM0G3507_nortos_ticlang". The RX interrupt is OK.

    So, the What are the trigger conditions for Transmission complete interrupt? Can "mcan_single_message_tx_LP_MSPM0G3507_nortos_ticlang" trigger it.

    The follow is register value of rx demo vs tx demo:

    Thanks,

    Leo

  • Hi Leo, ok if you aren't ever hitting that IRQ handler, looks like we have something going on with the definition of the TX complete. Try importing the mcan_multi_message_tx, then add the same counter to see if it works in this scenario. 

    -Brian