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/TCAN4550EVM: I Can't make CAN output(CAN_H, CAN_L) with TCAN4550EVM with MSP430FR6989 LaunchPad

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

Tool/software: Code Composer Studio

Hi Team,

I would like test TCAN4550 CAN function with MSP430FR6989.

The connection is as shown below:

P2.3  -  nINT

P2.5 - nCS

P1.7 - SDO

P1.6 - SDI

P1.4 - SCLK

GND - GND

Vbat : 36Vdc

First I Have checked the SPI between TCAN4550 and MSP430 with example code(TCAN455x Driver Library Demo (Rev. A) ) which is supported by TI.

I just add AHB_READ_32(REG_SPI_CONFIG) for reading ID of TCAN4550.

And this is the result. I Think the SPI is working well.

And now, I would like to see CAN output(CAN_H, CAN_L).

With your example code, not changing anything, I couldn't get the CAN output.

This waveforms are after pressing S1 on MSP430 LaunchPad.

What's wrong with my work?

  • Oh, My picture is not uploaded, I'll ask again

  • Hi Jongwoo,

    Could you please try to upload the images one more time?  They don't seem to have worked.

    Max

  • Hi team,

    I attached his question again on behalf of Jongwoo Bae. (due to their network system seems to block image uploading)

    He prepared two sets of TCAN4550EVM and found SPI responded but not output CAN_H or CAN_L.

    Would you please help us?

    Thank you.

    Ernest Cho

    --------------------------------

  • Hi Ernest,

    Thanks for relaying Jongwoo's images. 

    Hi Jongwoo,

    The connections you listed between the TCAN4550 EVM and the MSP430 are correct. This is the configuration that is used in the example code. It also appears that your SPI test where you read the device ID is successful. However, during this test, it looks like TCAN4550 has set its SPI ERROR flag. AfterTCAN4550 detects nCS's high-to-low transition, the first byte it will send (using SPI clock) will be the contents of the interrupt register's (0x0820) first 8 bits. In this test, bits 3 and 7 are set indicating the SPI error. Reading the SPI status register (0x000C[30:16) will describe this error in more detail. Please let me know what this register reads during the simple SPI test.

    During the second test where CAN traffic is tried, it appears that TCAN4550 does not recognise the beginning of the SPI transaction. If we compare both test results, we can see that TCAN4550 does not transmit the interrupt status after nCS transitions to low. Can you confirm that the device is configured the same way - both in hardware and software - between the two tests? Are these test run directly after one another or is there any hardware movement or separate configuration?

    Let me know what you find out.
    Regards,
    Eric