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/TMS320F28388D: Make the LED blink with only CM-core

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi TI

I have a question regarding the new DSP board TMS320F28388D.

Is it possible to make an LED blink without loading any code down to the c28 core?? 
The example you have made for the CM-core will only make the LED blink if the code for the c28 core is written to.

I have used the example led_ex1_c28x_cm_blinky_cm

If it is possible i would like ti know. I am new to programming.

Thank you

BR

Asbjørn Schram Anneberg

  • Hi,

    The C28x1 is the master core and is the one which sets up the PLL, CM clock, boots up the CM core, GPIO owner assignments etc. So, you need to have a bare minimal code running on the C28x core to make CM core run.

    There is a sample C28x code in the C2000ware example, that just configures the clock and assigns some GPIOs to CM core. You can use that as a reference and update the GPIO assignments accordingly.

    <C2000ware>\driverlib\f2838x\examples\c28x\cm_common_config_c28x\

    Regards,

    Veena

  • Hi Veena

    Thank you. It resolved my issue. 

    Do you know where i can find some information on how the GPIO pins are configurated? 

    I mean like how to set up and GPIO for output and what to write in ccs. Cant seem to find it anywhere. Like what to write to configure an LED and so on.

  • Hi,

    The cm_common_config_c28x example mentioned above does the GPIO assignments for some of the perioherals.

    For example, to configure UART pin no.84,

        GPIO_setPinConfig(GPIO_84_UARTA_TX);
        GPIO_setDirectionMode(84, GPIO_DIR_MODE_OUT);
        GPIO_setPadConfig(84, GPIO_PIN_TYPE_STD);
        GPIO_setQualificationMode(84, GPIO_QUAL_ASYNC);
    You can check the led_ex1_c28x_cm_blinky_cpu1 example to see how LED pin is configured as output pin and assigned to CM. It also shows how to set the output value of the GPIO pins to turn on and off the LED.
    Hope that helps!
    Regards,
    Veena