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: Pinout state configuration on DSP programming tms28335

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Hi,

I need controlled the pinout state during DSP programming tms28335.

Especifally, i need configurate the gpio40 as output in low state.

The configuration used is:

Eallow;

GpioCtrlRegs.GPBMUX1.all=0x0000;

GpioCtrlRegs.GPBDIR.bit.GPIO40=1; //Salida

GpioCtrlRegs.GPBQSEL1.all=0x0000;

GpioCtrlRegs.GPBQSEL2.all=0x0000;

GpioCtrlRegs.GPBPUD.all=0xFFFF;

EDIS;

With above configuration, when Erase, Program and Verify, the GPIO40 is hold HIGH. Only turned LOW when run the DSP.

How can I make sure that the GPIO 40 is always LOW during DSP programming?

Thanks, Jorge.

  • Jorge,

    I do not belive that GPIO 40 is driven high during flash programming. So in that case: add a pull-down resistor, probably about 10K ohms connected between GPIO40 and ground should work well.

    Please verify this solution before designing hardware around it. Adding a pull resistor can affect the speed  or output level of the GPIO it is connected to. A large value of 10K ohms shouldn't cause you any issues, but its always good to verfy. Also this will only work if the device does not drive the GPIO high during programming.

    Regards,

    Cody

  • Hi Cody

    Thanks for your answer.

    I send the circuit developed for more information

    DSP_DO1: GPIO40

    When DSP_DO1 is HIGH -> LED is ON (add blue in circuit)

    Configuration:

    Eallow;

    GpioCtrlRegs.GPBMUX1.all=0x0000;

    GpioCtrlRegs.GPBDIR.bit.GPIO40=1; //Salida

    GpioCtrlRegs.GPBQSEL1.all=0x0000;

    GpioCtrlRegs.GPBQSEL2.all=0x0000;

    GpioCtrlRegs.GPBPUD.all=0xFFFF;

    EDIS;

    Only, when Programing, the LED is turned ON. Is there a way to prevent the led from turning ON while the dsp is programmed?

    Thanks

    Regards, Jorge.

  • Jorge,

    the GEL file has the ability to effect the GPIO status while programming. Have you looked at how you are configuring the device in your GEL file?

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/759014

    Regards,
    Cody