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/TMS320F28377D: The SDFM module of 28377d always has the clock loss error

Part Number: TMS320F28377D
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

Tool/software: Code Composer Studio

In the SDFM module of 28377d ,the Sdfm1Regs.SDIFLG.bit.MF1==1,I can't clear this flag。In the datasheet this error means the clock loss。The clock is 20M。what happend?Thank you!

  • when MF1 = 1, it means SDCLK is missing. Once this bit is set, you can't clear this flag until the condition which caused the bit to get set is no longer existing.

    1) Make sure you have a valid clock signal on SD-C1 pin
    2) Make sure your GPIO is configured correctly as SD-C1 pin.

    Regards,
    Manoj
  • HI! Manoj
    I have set the GPIO correctly,and the clock signal is PWM5A andPWM5B. But there is still have the clock missing error. What can i do to this question. thank you!
    Regards,
    shook
  • Which GPIO pins are used as SD-C1 / SD-D1 pins? and how have you configured? Did you already look into SDFM example code available in controlSuite / C2000Ware?

    Regards,
    Manoj
  • HI! Manoj
    thank you for the answer.
    The problem Occurs when using CCS simulation,I set the breakpoint in the program to check my program, when the program stop running, this error will happend. I think this error is right becase when the program is stoped but the clock of the sd-c didn't stop. so this error is happend.My understand is right? thank you!
  • Is your PWM configured to stop on breakpoint? Also, please answer my questions on earlier post.

    -Manoj
  • Hi,Manoj

    This is the GPIO configuration of SD-C and SD-D,The another configuration is same as the example code available in controlSuite, C:\ti\controlSUITE\device_support\F2837xD\v210\F2837xD_examples_Cpu1\sdfm_pwm_sync_cpu. 

    Then I test the C:\ti\controlSUITE\device_support\F2837xD\v210\F2837xD_examples_Cpu1\sdfm_pwm_sync_cpu. when  I stop simulation, it still has the clock error 

    YES,when I stop simulation the EPWM TBcount stoped. How I set the configuration if I want the EPWM didn't stop when I stop the simulation.thank you!

    regards

    shook 

  • Shook,

    Check whether TBCTL.FREE_SOFT = 3 (PWM register), this will make sure that PWM will continue toggling when you hit a breakpoint.


    Regards,

    Manoj

  • Did you resolve this issue?

    -Manoj