MSPM0G3507: Classic CAN communication implementation

Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG

Hi,

I am trying to implement CAN communication in the LP- MSPM0G3507. I'm trying with the example code of MCAN_message_rx  using a Can transceiver TJA1050T/cm, 118 .

It does not support CAN FD, so i was configuring it as classic CAN by unticking the CAN FD in sys config. file.

and Transmitting the messages from PCAN as mentioned in the example code with ID 0x03 and 0x04.

But it wont work and the STATUS in PCAN will come as BUS OFF.

Attaching the sysconfig. image

Before that i had tried with MCAN_single_message_tx example code , by disabling the CAN FD mode and testing with PCAN.

I am able to see the transmitted messages in PCAN.

  • Hello Rupa,

    I will reply to you tomorrow.

  • Hello Rupa,

    I am sorry that because I am not proficient in using CAN, so I need continue discuss with my colleague and reply to you in next Monday.

    Best Regards,

    Janz Bai

  • Hi Rupa,

    It is ok to disable the CANFD mode in sysconfig.

    But which version of SDK are you using? 

    And please check the sampling point at first. 

    By the way, do you have a CAN analyzer to test?

    Thanks,

    Yuhao

  • Hi Yuhao, 

    Thanks for you reply

    It is ok to disable the CANFD mode in sysconfig.

    Since the CAN transceiver IC I am using doesn't support CANFD so i disabled it.

    Without disabling the same when i tested the CAN_transmit example code no messages were received. 

    So for CAN Recieve example code  (MCAN_message_rx ) also i disabled the CAN FD mode. But the status in CAN Analyzer will show as "BUS OFF" the moment i try to transmit message through PCAN analyzer with the ID mentioned in example code. 

    But which version of SDK are you using

    I am using SYSconfig. 1.20.0

    By the way, do you have a CAN analyzer to test?

    Yes i am using PCAN Analyzer 

  • Are you using the latest SDK(2.00.01)? We have tested the example code with CAN transceiver from TI(TCAN1046) and it works well with CANFD disable. We also tested with CAN analyzer before. The possible issue may be un-match sampling point, or wrong configuration in CAN analyzer. 

  • Hi Yuhao,

    The sampling point is set at 87.5%. Is the sampling point setting okay, Do i need to change it?
    and in the example code the bit rate is set at 250kbits/s. I am configuring the same in can analyzer.

  • Do you have two launchpads to test? One for rx and one for tx. You can use them to test whether the Can transceiver and the example codes are ok.

  • I have only one launchpad to test. the Can transceiver should be working fine as i tested, CAN_transmit example, and it is working fine.
    Only issue i am facing with can recieve example MCAN_message_rx. I havent modified anything in the code , except from disabling CAN FD mode 
    I have one more question, can we receive Rx data in buffer, all example codes are using Rx fifo to receive the messages. How can I configure the Rx buffer to work. 

  • The issue was with can GND it was not properly connected , now it is working fine in Evaluation board. 
    I am facing one more issue, now i am using a 48pin microcontroller with the same code , there transmit as well as receive  is not working. 
    the only thing i need to change is the device configuration and it should have worked