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: Leds not blink

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hello.

Writed program for flashing leds.  Founded next problems:

1) Not blink leds;

2) Program not save in NVRAM. The program exists while debugging mode;

3) Where can i find instruction: for save in NVRAM, work in DEBUG mode?

blinkLight.zip

  • A,

    In the "F2833x Firmware Development Package User's Guide" you will find a blink LED example code:

    C:\ti\c2000\C2000Ware_<version>\device_support\f2833x\docs

    See section 2, "Getting Started and Troubleshooting" and the code is on page 18.

    Also, to learn more about the device, please see the F2833x Workshop at:

    https://training.ti.com/c2000-f2833x-microcontroller-workshop?context=1137791-1137783

    Starting in Lab 6 you will find code that toggles an LED in the DefautlIsr_6.c file.  In lab 11 exercise you will learn how to program the flash.  I recommend reviewing the entire workshop from the beginning.  The workshop will explain how to develop code running from RAM and how to modify the code to  run from flash.

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken

  • Hi.

    I have several question.

    In path "C:\ti\c2000\C2000Ware_<version>\device_support\f2833x\" found file "Example_2833xLEDBlink.c".

    1) In this code need turn on LED pull up?

    2) How long does the light last?

    3) How to light an LED for a second?

    Options for the 3rd question: do I need to increase the period in the processor or need enable or turn on a lift?

    Please help me correct this particular file correctly.

  • A,

    By default, GPBPUD is enabled for GPIO pin 32.  See the F2833x TRM, page 121:

    http://www.ti.com/lit/sprui07

    The ConfigCpuTimer() function can be found in:

    C:\ti\c2000\C2000Ware_3_01_00_00\device_support\f2833x\common\source\DSP2833x_CpuTimers.c

    Notice the period is specified in microseconds.  So, for the code as is, GPIO32 will be toggled once per 500 milliseconds - meaning the LED will blink at a rate of 1 Hz.  You can modify the period to change the blink rate.

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken

  • A,

    It's been a while since I have heard from you last. Therefore, I am assuming that my previous reply resolved your issue and I will close this thread. If this isn’t the case, please reject this resolution or reply to this thread. If this thread locks, please make a new thread describing the current status of your issue. Thank you.

    - Ken

  • Please, close theme.