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.

PROCESSOR-SDK-AM62A: How to use MCAN Interrupt to external communication with a CAN transceiver module?

Part Number: PROCESSOR-SDK-AM62A

I have configured CAN communication using the MCAN0 port on the AM62a StarterKit.

but there is only one interrupt in the SDK routine, the receive and send share one interrupt, and if the receive and send occur at the same time, the program will run away.

How do I set up two interrupts, one for receiving and one for sending?

  • Hi,

    Let me check with the team about setting up two interrupts, since I haven't tested this out yet.
    I will get back to you with updates.

    Regards,
    Aparna

  • Thank you for your support. Hope to reply soon!!!

  • Hi,

    I need a few clarifications from your setup to understand your requirements better.

    CAN in general is lacking a flow control mechanism. A protocol must be added to control the flow of packets.
    Also interrupts are not controllable from the application layer. How do you comprehend that having two interrupts will solve the issue that you are facing?

    Also, please provide more information about the runway condition.

    Regards,
    Aparna

  • hi,

         How do I detect can bus off? I want to debug if it's can bus off

  • Hi,

    In order to detect/debug can bus-off error, please check the value of CFG_PSR Register (Offset = 44h)

    It is the CAN protocol status register, and you can monitor the bus-off status at BO field bit.



    Regards,
    Aparna