TCAN4550: No clock is defined

Part Number: TCAN4550

We are currently using the TCAN TCAN4550RGY part in our design. While working with the driver model, we are encountering the following error:

Error: "No clock is defined."

We would appreciate your guidance on resolving this issue.

Could you please help us understand:

  • What causes the "No clock is defined" error?
  • Is there any required clock configuration or initialization that must be performed before using the driver model?
  • Are there any specific settings, example projects, or documentation that explain the correct clock configuration for the TCAN driver?

If any additional information, such as our software version, configuration files, or logs, is required, please let us know and we will provide them.

We look forward to your support in resolving this issue.

  • Hi Sathish,

    I am assuming your question you are trying to use the tcan4x5x Linux Driver.

    The "no CAN clock source defined" or "no clock found" error for the tcan4x5x driver happens when your device tree (DTS) or board file lacks the required clock-frequency property or a fixed-clock definition. The driver needs this frequency (typically 20MHz or 40MHz) to configure the internal CAN/MCAN bit timings.

    Add the clock-frequency property (matching your physical crystal oscillator, usually 40000000 for 40 MHz) inside your tcan4x5x node in your DTS:
    &spi0 {
        tcan4x5x: can@0 {
            compatible = "ti,tcan4x5x";
            reg = <0>;
            spi-max-frequency = <18000000>;
            clock-frequency = <40000000>; /* Set to 20000000 or 40000000 */
            int-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
            reset-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
            boschs,mram-cfg = <0x0 15 15 5 5 0 10 10>;
            status = "okay";
        };
    };

    Regards,
    Jonathan