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.

TMS320F28379D: CAN test between TMS320F28379D and PCAN

Part Number: TMS320F28379D
Other Parts Discussed in Thread: TMS320F28069

Dear All,

I'm testing CAN communication with TMS320F28379D based board and PCAN. It works well after power on reset. However, while data is being transferred from the PCAN, if board enters the debug mode and run with the "resume" button after flash programming, the communication is not made. When debugging mode is entered, PCAN detects communication error and data re-transmission occurs.CAN Communication is resumed when the same experiment is performed on TMS320F28069 based hardware. Is there any special setting for TMS320F28379D based board in explained condition?

Sincerely,

Eui-heon

  • Hi Eui-heon,

    When in debug mode and the communication error occurs, can you monitor register CAN_ES contents on the TMS320F28379D?

    Thanks,

    Joseph

  • Dear Joseph,

    The contents of CAN_CTL and CAN_ES are as following.

    Sincerely,

    Eui-heon

  • Dear Joseph,

    The reason why TMS320F28379D based board and PCAN did not communicate when entering debug mode was the initial condition of IO port.
    I solved my problem by inserting a pull-up resistor on the CAN TX and CAN RX pins. I refer to page 934 of  SPRUHM8H as shown below.

    If I enter the debug mode using  modified TMS320F28379D based board and TMS320F28069 based board which was not pulled-up on TX and RX pins, PCAN will stay in passive error state, but PCAN will go into bus-off state if I test using not modified TMS320F28379D board.

    Sincerely, 

    Eui-heon

  • Hi Eui-heon,

    Glad to hear you were able to solve your issue based from the F28379D documentation.

    Regards,

    Joseph