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: Application issues of chips

Part Number: TCAN4550

Can you please help me check if there are any drivers for the Android platform? Currently, there are significant differences in the code and I am very anxious to obtain drivers for the Android platform

  • Tony,

    Unfortunately, TI has not created/developed any Android drivers for the TCAN4550. We have drivers written in C, and Linux drivers for the device. 

    Please let us know if you have any other questions.

    Regards,

    Eric Hackett 

  • Could you please explain which registers are required for normal operation, as well as a complete description of the power on/off timing.

    Also, give me the drivers for C and Linux, thank you!

  • Tony,

    The C drivers are available in the product folder on TI.com, as well as a software guide that will enable the user to understand the registers required for normal operation. The datasheet has the complete description of the power on/off timing.

    The Linux drivers are community-managed, and can be found utilized through that Linux CAN community. 

    Regards,

    Eric Hackett 

  • 安卓的驱动能不能参考其他家的IC代码修改一下,只改寄存器相关的内容?我这边自己写太耗时间了,因为对IC的寄存器配置部分也不太熟悉。需要原厂处理IC的部分,我这边只处理平台部分.下面发的驱动也是安卓自带别家的IC的驱动,也是SPI的.

    hi311x.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /* CAN bus driver for Holt HI3110 CAN Controller with SPI Interface
    *
    * Copyright(C) Timesys Corporation 2016
    *
    * Based on Microchip 251x CAN Controller (mcp251x) Linux kernel driver
    * Copyright 2009 Christian Pellegrin EVOL S.r.l.
    * Copyright 2007 Raymarine UK, Ltd. All Rights Reserved.
    * Copyright 2006 Arcom Control Systems Ltd.
    *
    * Based on CAN bus driver for the CCAN controller written by
    * - Sascha Hauer, Marc Kleine-Budde, Pengutronix
    * - Simon Kallweit, intefo AG
    * Copyright 2007
    *
    * This program is free software; you can redistribute it and/or modify
    * it under the terms of the GNU General Public License version 2 as
    * published by the Free Software Foundation.
    */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    mcp251x.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /*
    * CAN bus driver for Microchip 251x/25625 CAN Controller with SPI Interface
    *
    * MCP2510 support and bug fixes by Christian Pellegrin
    * <chripell@evolware.org>
    *
    * Copyright 2009 Christian Pellegrin EVOL S.r.l.
    *
    * Copyright 2007 Raymarine UK, Ltd. All Rights Reserved.
    * Written under contract by:
    * Chris Elston, Katalix Systems, Ltd.
    *
    * Based on Microchip MCP251x CAN controller driver written by
    * David Vrabel, Copyright 2006 Arcom Control Systems Ltd.
    *
    * Based on CAN bus driver for the CCAN controller written by
    * - Sascha Hauer, Marc Kleine-Budde, Pengutronix
    * - Simon Kallweit, intefo AG
    * Copyright 2007
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Can Android drivers refer to other IC codes and modify only register related content? It takes too much time for me to write on my own because I am not very familiar with the register configuration part of the IC. I only handle the platform part of the IC that needs to be processed by the original factory. The driver sent below is also an Android built-in IC driver from another company, which is also SPI.

    6404.hi311x.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /* CAN bus driver for Holt HI3110 CAN Controller with SPI Interface
    *
    * Copyright(C) Timesys Corporation 2016
    *
    * Based on Microchip 251x CAN Controller (mcp251x) Linux kernel driver
    * Copyright 2009 Christian Pellegrin EVOL S.r.l.
    * Copyright 2007 Raymarine UK, Ltd. All Rights Reserved.
    * Copyright 2006 Arcom Control Systems Ltd.
    *
    * Based on CAN bus driver for the CCAN controller written by
    * - Sascha Hauer, Marc Kleine-Budde, Pengutronix
    * - Simon Kallweit, intefo AG
    * Copyright 2007
    *
    * This program is free software; you can redistribute it and/or modify
    * it under the terms of the GNU General Public License version 2 as
    * published by the Free Software Foundation.
    */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    0118.mcp251x.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /*
    * CAN bus driver for Microchip 251x/25625 CAN Controller with SPI Interface
    *
    * MCP2510 support and bug fixes by Christian Pellegrin
    * <chripell@evolware.org>
    *
    * Copyright 2009 Christian Pellegrin EVOL S.r.l.
    *
    * Copyright 2007 Raymarine UK, Ltd. All Rights Reserved.
    * Written under contract by:
    * Chris Elston, Katalix Systems, Ltd.
    *
    * Based on Microchip MCP251x CAN controller driver written by
    * David Vrabel, Copyright 2006 Arcom Control Systems Ltd.
    *
    * Based on CAN bus driver for the CCAN controller written by
    * - Sascha Hauer, Marc Kleine-Budde, Pengutronix
    * - Simon Kallweit, intefo AG
    * Copyright 2007
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Do you have any debugging tools related to CAN? For example, cantils or others?

  • Hi Tony,

    The TCAN4550 is based on the M_CAN IP developed and licensed by Bosch. This IP is a common CAN FD Controller IP used in many devices and MCUs, and modification of code for any other M_CAN related device should be fairly simple.  However, there are other CAN FD Controller IPs used in other devices such as the MCP251x ICs that use a completely different register stack that would be difficult to directly modify.

    An overview of the basic configuration needed for the TCAN4550 can be found in the TCAN45xx Software User's Guide (Link).

    A detailed description and overview of the Bosch M_CAN registers can be found in the M_CAN User's Manual (Link).  These registers are used without modification in the TCAN4550 with one exception.  The TCAN4550 has added an offset of 0x1000 to each register address.  For example the M_CAN Control register has an address of 0x18 in the Bosch User's Manual, but the TCAN4550 uses address 0x1018 for this register.  (0x1000 + 0x18 = 0x1018).

    There is an example demo code in ANSI-C available for review and modification.  It can be downloaded from the Software Development section of the TCAN4550-Q1's ti.com product folder (Link) or (SLLC469 - TCAN4550 Demo Software (Link).

    Regards,

    Jonathan