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.

MSPM0G3105: CC Studio Hangs while building CAN RX code.

Part Number: MSPM0G3105

I am developing a custom PCB which requires using the CAN interface on the MSPM0G3105. I am using a TCAN1057 as the transceiver. I believe the hardware is correct based on the following factors:

  • When transmitting using code built from snippets of the SDK 2.07 "MCAN single message tx", the bus shows data. 
  • When transmitting onto the CAN bus using a "Seeed Can Analyzer", the RX pin of the transceiver shows a signal between 0-3.3V as expected.

For completeness, here is my schematic:

Transceiver.pngMicrocontroller.png

Note that the solderjumper is soldered correctly, with the TX signal going to pin 16 and RX to pin 17.

 

NONE of this is my issue however. I have tried to create a very simple piece of code to capture RX messages on the bus:

CC Code.png

The error is caused by the code on line 11. When this line is omitted, the code builds (CTRL+B) completely fine (albeit with warnings for each rxFs member being potentially uninitialized):

Screenshot 2025-10-30 135105.png

BUT, when I uncomment the "DL_MCAN_getRxFIFOStatus();" code line and try to build the project, the "building" progress bar pops up and I get ZERO output. I eventually need to hit cancel as it never builds:

Screenshot 2025-10-30 135347.png

If anyone has suggestions or guidance to assist me with this, it would be incredibly helpful. Thanks!

  • Hi,

    It sounds like the example code built, right?

    I would try restarting CCS; that often clears up behavior like this.

    -Matthew

  • Hello Matthew,

    That was one of the first things I tried, with unfortunately no success (Also the example code did not build). I tried clearing all my cached files and built files. I restarted my PC. When none of that worked I reinstalled my software. That still didn't work. 

    I created an empty project which did build, and added lines line by line to see where it would all fall over. The culprit is the line:
    "
    DL_MCAN_getRxFIFOStatus(MCAN0_INST, rxFS);

    "
    For some reason, when I comment out that line - everything is fine. When I leave it in, the code does not build. I have tried all different compiler optimisation settings to no avail.
  • Hi John,

    I would like to double check: You don't get any errors (even on the examples), and you experience a hang?

    I am checking internally with our software team, so let me get back to you soon.

    -Matthew

  • Hi,

    The function is expecting a pointer -- not the instance itself.

    DL_MCAN_getRxFIFOStatus(MCAN0_INST, &rxFs)

    -Matthew