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/TMS320F28377S: USB boot loader problem.

Part Number: TMS320F28377S


Tool/software: Code Composer Studio

Hello,

We are working on a power converter and we are using TMS320F28377S microcontroller in it. For updating firmware we use USB flash programmer given in C2000. It work fine, until we not use high voltage supply (550V DC, we are using  SMPS and linear voltage regulator to convert high voltage input supply to 3.3V for microcontroller). We are getting this error (attachment ) while firmware update using USB and some times microcontroller was not detected on PC USB. We also not connect the +5V supply of PC with our PCB, only D+,D- and GND are connected  . All other function's are working normally, including firmware update using SCI. So anyone face similar problem then please share possible cause and solution.    

   

  • Hi ,

    From the error , looks like it is able to open the USB device but unable to read the device descriptor correctly 

    Does this occur everytime you connect the high voltage supply?

    What is the AUXCLK freq? 

    Best Regards

    Siddharth

  • Does this occur every time you connect the high voltage supply?-- YES, This problem come only then we connect it with high  power supply.

    Please note some time microcontroller not even detect on the PC USB port. 

    What is the AUXCLK freq? --60 MHz , Crystal Frequency is 20MHz.

    This is the init function....

    "InitSysPll(XTAL_OSC,IMULT_20,FMULT_0,PLLCLK_BY_2);"

    This is USB initialization function...

    void Init_USB_Boot(void)
    
    {
    
    EALLOW;
    ClkCfgRegs.XCLKOUTDIVSEL.all = 0x04;
    ClkCfgRegs.CLKSRCCTL3.all = 0x04;
    
    GPIO_SetupPinOptions(73, GPIO_OUTPUT, GPIO_PUSHPULL);
    GPIO_SetupPinMux(73, GPIO_MUX_CPU1, 3);
    GPIO_SetPadConfig_1(73,GPIO_PIN_TYPE_STD);
    GPIO_SetPinConfig_1(GPIO_73_XCLKOUT);
    // Clock source is SYSCLK GPIO_73_XCLKOUT
    // SysCtl_selectClockOutSource(SYSCTL_CLOCKOUT_SYSCLK);
    
    // XCLOCK out = clock source /8
    // HWREG(CLKCFG_BASE + SYSCTL_O_XCLKOUTDIVSEL) = 3U;
    EDIS;
    
    
    InitAuxPll(SYSCTL_OSCSRC_XTAL,12,1,2);
    
    return;
    }
    
     
    
    

  • Hi ,

    If it occurs everytime you connect the high power supply , then I don't think it is a software issue. Can you monitor the voltage on the USB pins when you connect the high power supply?

    Best Regards

    Siddharth

  • As you ask. these are the wave form of UCB pins with high voltage power supply and normal supply( used in lab for testing).

    1. Waveform on D+ wrt GND is with normal supply.

    2.Waveform on D- wrt GND is with normal supply. 

    3. Waveform on D+ wrt GND is with HIGH voltage supply. 

    4. Waveform on D+ wrt D- is with HIGH voltage supply. 

  • Hi,

    Are the waveforms captured for the same trigger point?

    Not sure what is causing this issue. Will seek help from a hardware expert and get back to you.

    Best Regards

    Siddharth