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.

TMS320F28386D: Assign CAN pins

Part Number: TMS320F28386D

Hello,

In the related post here:

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1001876/tms320f28386d-switch-can-peripheral-from-cpu1-to-cpu2/3701435#3701435

You were stating to me that to switch the CAN peripheral ownership between CPU1 and CPU2, I had to assign CAN pins to the other peripheral (in addition to other stuff).

I think this was a mistake as CPU assignment of I/Os is only relevant for GPIO. Do you confirm ?

Best regards,

Clément

  • Hi Clement,

    Assignment of CAN CPU ownership is done with CPU1 by writing to specific CPUSEL register.  The CAN pin assignment as to which RX/TX pins to use should also be done in CPU1.  The rest of CAN setup, like bit rate, interrupts and object setup will be done in CPU2 (if CAN ownership is given to CPU2).

    Regards,

    Joseph

  • Hi,

    I think you misunderstood my question.

    In the post I linked, it was suggested that at ownership change I needed to change ownership of the pins.

    However as pins are linked to the peripheral once configured as CAN, it doesn't make sense.

    Just wanted to confirm that what was this part of the answer to my previous question is wrong.

    Clément

  • Hi Clément,

    Sorry for that.  I think you were referring to this particular statement in the other post: "You need to assign CAN pins, CAN module and associated memory to CPU2 and have CPU2 configure CAN module."

    You are correct.  Pins are linked to the peripheral once they are associated with CAN (for example through GPIO_setPinConfig function).  Ownership of the peripheral pins are not assigned to a particular CPU.

    Regards,

    Joseph