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.

TMS570LC4357: DCAN Receive not working

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hi,

I am using a Hercules Safety MCU Development Kit TMS570.

I am unable to receive messages sent from Peak CAN. I am able to transmit messages.

When trying to receive messages, I see below errors in ES Register. LEC changes between 2 and 1 during debug session.

I am using STANDARD CAN and sending the below message from PCAN.

The NewDat bit in IF2MCTL never becomes one, even when new messages are being sent from PCAN.

I have checked the acceptance filtering settings and the mask is set to 0x1FFFFFFF to accept all messages.

I am using a baud rate of 1Mbps on both ends; software and PCAN. On PCAN when I turn on periodic sending of messages, the bus state changes to BUS HEAVY and then to BUS OFF.

As transmit is working as expected, I believe the wiring is correct.

Could you please suggest what could be causing the errors?

Regards,

Rashmitha

  • Hi Rashmitha,

    Looks like you didn't turn ON "Extended Frame" in PCAN side:

    what about "Identifier extension" setting on HALCoGen side, by default it will be in enable state only right.

    In that case either you should send extended frame from PCAN or else you should disable it from HALCoGen.

    --
    Thanks & Regards,
    Jagadish.

  • Hi Jagadish,

    I was using standard frame, not EXTENDED.

    The problem I had was because of using the wrong Oscillator frequency in HALCOGEN project settings. The HALCOGEN project was reused from another project and the mismatch is oscillator frequency impacted the PLL settings and CAN baud rate scaling settings.