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/TMS320F28335: CRC error detected how to overcome this problem??

Part Number: TMS320F28335


Tool/software: Code Composer Studio

Hi all,

I am using can communication between two DSP(TMS320F28335). Communication between the two DSP is proper when one DSP transmitting multiple values to other DSP using CAN communication.In the same program, I have included Epwm which provides a duty pulse for the converter. as soon as I switch on the system,duty cycle vary CRC error starts coming ..plz help me for this..Is it because noise gets added in CAN communication or any other reason?? 

while running code ECanregs.CANES.CRCE is getting set.why does this happen.

  • When you say "duty cycle vary", are you referring to the PWM duty cycle or are you saying the CAN bit timing gets messed up? Regardless, it is likely noise is affecting the bus. You can confirm this by scoping the relevant pins.

    CEE is set because CCR is set, which happens when the node is in bus-off condition.
  • hi sir,

    yes, the PWM duty cycle starts varying (i.e after I start battery supply, the PWM wave duty cycle is used for a bidirectional converter which helps to maintain an output voltage.)As soon as the battery is connected to a system , CAN communication is shown CRC bit is set.and some value gets lost. how to cure this CRC error? 

    I didn't understand the last sentence, plz elaborate this.what is CCE, CCR,bus-off condition??

  • The root cause is the noise in the system. The CRC error is just the effect. When TEC >255, it results in bus-off condition. Once node enters bus-off, CCR bit is set. Please refer to information on the protocol (many resources available online) about how the error counters are incremented.