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.

TCAN4550: Help Needed

Part Number: TCAN4550
Other Parts Discussed in Thread: , MSP430FR6989

Hi ,

 

We have ordered TCAN4550EVM (CAN Controller with Integrated Transceiver) board from below TI website.

Link:

https://www.ti.com/tool/TCAN4550EVM

 

Also TCAN4550 Demo Software(Rev. B) – SLLC469B.ZIP is attached on the above mentioned website.

The demo SW contains the TCAN 4550 library files also it is mentioned that they are using MSP430FR6989 main/HOST microcontroller.

When we got the shipment, It contains the development board with CAN controller but it does not have main/HOST microcontroller(MSP430FR6989)

Hence we ordered MSP430FR6989 LaunchPad Development Kit from the below TI website.

Link:

https://www.ti.com/tool/MSP-EXP430FR6989#tech-docs

Problem:

  1. CAN Reception: We send message with Identifier 0xAA, 4 bytes, 0x11, 0x22, 0x33 0x44 through the CAN tool.

              Set breakpoint on the below highlighted lines. Breakpoint gets hit and we receive the correct data ie 0x11, 0x22 0x33, 0x44 with Message identifier 0xAA . This is expected behavior.

if (MsgHeader.ID == 0xAA)

{

          data[0] = dataPayload[0];

          data[1] = dataPayload[1];

          data[2] = dataPayload[2];

          data[3] = dataPayload[3];

             }

             However the behavior is not consistent meaning everytime breakpoint does not get hit

2)      Also in the demo software Init_CAN function(), below things are mentioned.

              Do we need to change anything here?

             NOTE: We changed to SID_ID.SFID1 = 0x0AA; for testing purpose and send data with identifier 0x0AA. Then the breakpoint in the code does not get hit.

 

3)      Also we are not seeing any CAN message out from the board. Demo SW transmits message based on Switch S1(P1.1) is pressed

4)      Please find the attached doc for Hardware connection we made.

I am Senior Software Engineer from CURT manufacturing group/Lippert Components Inc located in Wixom Michigan.

We are planning to use TCAN4550 CAN controller for one of our automotive product. 

 

Please let us if we missed out anything here(Software Configuration , hardware connection) .

 

Do you have any Field Application Engineer located in  Michigan who can help us on this, would be great help.

  • Hi Venkata,

    I'm glad you were able to get a hold of these evaluation boards to start testing our devices! Because you are using the MSP430FR6989 Launchpad, you may be interested in the TCAN4550 Booster Pack. This is similar to the TCAN4550 EVM as it is a tool to evaluate the device, but it shares a pinout and form-factor of the Launchpad and can be mounted directly on the to MCU board as a daughter card. This simplifies the setup and eliminates the need for jumper wires. You will get the same functionality out of the TCAN4550EVM, but the booster pack may be worth considering if you're looking for a second setup to work with. 

    1. I'm not sure I understand your explanation fully. I see that you are sending a message on the CAN bus to the TCAN4550 using a secondary board. The TCAN4550 is able to receive the message properly, but it seems inconsistent. Do you mean that sometimes when the secondary node sends a CAN message the debugger does not stop at the breakpoint within the receive conditional statement?
    Please ensure the program is running at the time that the message is sent on the CAN bus. Perhaps try debugging this using a real-time solution; have the MSP430 toggle the state of an LED (P1.0 on the launchpad for example) when a message is received and run the test without the debugger. This will rule out any inconsistencies or timing problems introduced by the debugger itself. 

    2. The default initialization in the demo code configures the CAN controller to operate at a nominal data rate (arbitration) of 500kbps and an FD data rate of 2Mbps. Any CAN messages received by the device are expected to be at these speeds as well. If a different data rate is used by the secondary node, the TCAN4550 demo should be modified to match this data rate. 
    The demo also sets up a couple ID filters (which you seem to have already modified for your test) as well as the RX and TX FIFO/Buffers which should be fine as-is for simple transmit or receive tests. 

    3. The demo code is configured to transmit two different CAN frames (buffer 1 then buffer 0) at the start of the program, so any reset of the system should result in two CAN frames appearing on the bus (if the frames are not acknowledged by a receiving node, the frames may repeat). The S1 button can also be used to manually transmit buffer 0 during runtime. Make sure that the program is running when this button is pressed (debugger is not paused) as this can impact the operation of the interrupts. 

    4. I'm not able to see any of the attachments that you shared. Can you please try posting them again? I find that using the "Insert" tool in the reply box is the most consistent way to share files on E2E. 

    Regards,
    Eric Schott

  • Should we go ahead and buy the TCAN4550 Booster Pack. in this case?

     

    Please refer the below points.

     

    1. Yes, I meant that sometimes when the secondary node sends a CAN message the debugger does not stop at the breakpoint within the receive conditional statement.

    We made sure that the program is running when the CAN message is sent on the CAN bus. We will try without the debugger and let you know the feedback.

    1. We set 500 kbps data rate only in CAN tool.

    Are we expected to change anything here Init_CAN function()?

     

    NOTE: We are trying to test the Demo SW provided by TI on the website

    1. We made sure that the program is running when the Switch S1(P1.1) is pressed
    2. Please find the attached document for the Connection. Also please find the attached demo code.(we are using for our testing)

     

    Please let us know about the TCAN4550 booster pack, so that we can test one more time with TCAN 550 boosterpack.CCS_CAN_Test.zip

  • Hi Venkata,

    Buying the Booster Pack would not be necessary as it has the same functionality as the EVM. It would simply be more convenient to make the digital connections because the pin breakout is the same as the Launchpad. 

    How are you verifying that the S1 button does not send a CAN message? Are you looking at the CAN tool for received messages? If so, make sure that the message configured in the demo is not configured to be CAN FD. This will required if the CAN tool is not able to understand CAN FD or operate at 2Mbps.
    header.FDF = 0;
    header.BRS = 0;
    I would recommend looking at the CAN bus with an oscilloscope to verify that the CAN bus is active when expected from the TCAN4550 demo. 

    I'll await your feedback on the real-time testing. 

    Regards,
    Eric Schott