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.

CCS/LAUNCHXL-F28379D: LAUNCHXL-F28379D How to use two CanBus at the same time in Simulink?

Part Number: LAUNCHXL-F28379D

Tool/software: Code Composer Studio

Hi

I can see the 'Two Controller Area Network (CAN) Modules' from datasheet.

I can use CanBus on the development board J12.(set GPIO 12 17 in eCAN_B) Baud rate is 500kbps.

But I can not use eCAN_A.(set  GPIO 31 30) Baud rate is 500kbps.

This is my external circuit. (the IC used is MCP2562.)  

And this is my Simulink block.

Does anyone have a solution? Thank you.

  • Hello, we've contacted Mathworks about your post. Someone from their support team should reply soon.

    Whitney

  • Does the CAN work via CCS example on pins 31 & 30? Can you verify the HW setup works correctly for those pins?

    Thanks,

    -Brian

  • Hi Brian

    Thank you for your reply.

    Currently, I measured the eCAN_B (GPIO 12 17) using a digital storage oscilloscope.

    This is the signal I measured.( GPIO 12 17 )

    This is the pin position I measured.

    After that, I measured the eCAN_A (GPIO 3 4 , 19 18 ) using a digital storage oscilloscope.

    This is the signal I measured. All signals are high level !! I think it is not turned on the CanBus function.

    This is the pin position I measured.

    This is all my settings. I can't find other settings about CanBus.

    The conclusion is that I can't find other settings to enable eCAN_A to turn on the GPIO (4 5 or 19 18) .

    I hope you can help me find a solution, or we can communicate directly online.

    Thank for your assistance.

    -Roy

  • Hi,

    The reason we don't see signal on other GPIO pins is because they are not connected to SN65HVD23x CAN Transceivers.

    This component will generate the CAN Bus signal CAN-H and CAN-L. In the Absence of the Transceivers this conversion does not happen and we cannot view the CAN signals.