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.

AM2634: LIN wakeup signal is not sent when LIN_sendWakeupSignal SDK API is called

Part Number: AM2634

Dear TI experts, 

I am not able to see a LIN wakeup frame on the bus even when the SDK function LIN_sendWakeupSignal is called with proper base address of LIN Channel.

But the other frames are being sent.

Can you please guide me on how to use the wakeup of LIN bus.

  • Hi Prashanth,

    Due to some logistics problem, we can only come back with this issue by 13th July. Hope that is not a major problem.

    Best Regards,
    Aakash

  • Hi , Yes that's fine please update this ticket once you have setup.

    Thanks for conveying.

  • Hi , Can you please check if Wakeup frame is being sent in the present SDK function which I was not able to get.

    Thanks & Regards,

    Prashanth Arun

  • Hi Prashanth, Apologies for delayed response. Team is still looking at the issue and will be back with the issue by 25th August.

    Best Regards,

    Punit

  • Hi ,

    We have found an issue with LIN_sendWakeupSignal function. This is the correct implementation -

    static inline void LIN_sendWakeupSignal(uint32_t base)
    {
        /* Parameter Validation */
        DebugP_assert(LIN_isBaseValid(base));
        /* Set key in Byte 0 (MSB) of transmit buffer 0 register */
        HW_WR_FIELD32_RAW((base + CSL_LIN_LINTD0), CSL_LIN_LINTD0_TD0_MASK, CSL_LIN_LINTD0_TD0_SHIFT, (uint16_t)LIN_WAKEUP_KEY);
        /* Set the powerdown mask */
        HW_WR_FIELD32_RAW((base + CSL_LIN_SCIGCR2), CSL_LIN_SCIGCR2_POWERDOWN_MASK,
                    CSL_LIN_SCIGCR2_POWERDOWN_SHIFT, CSL_TRUE);
        /* Transmit TDO for wakeup */
        HW_WR_FIELD32_RAW((base + CSL_LIN_SCIGCR2), CSL_LIN_SCIGCR2_GENWU_MASK, CSL_LIN_SCIGCR2_GENWU_SHIFT, CSL_TRUE);
        /* Set the powerdown mask */
        HW_WR_FIELD32_RAW((base + CSL_LIN_SCIGCR2), CSL_LIN_SCIGCR2_POWERDOWN_MASK,
                    CSL_LIN_SCIGCR2_POWERDOWN_SHIFT, CSL_FALSE);
    }
    We have created an internal ticket to track the same - https://jira.itg.ti.com/browse/MCUSDK-11836
    Best Regards,
    Aakash