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.

CC2650 TIRTOS Example programs run in Debug mode but not in release mode.

Other Parts Discussed in Thread: TIMAC, CC2650

Hi,

I have created TIRTOS empty project by following the user guide instructions provided in  "TI-RTOS 2.11 for SimpleLink™ Wireless MCUs.

The problem is all the example program works fine in the Debug mode, but it is not working in Release mode.

I am not sure whether I have done any mistakes, for ref. I have placed the project files which I have created.  please correct me if I have missed any configurations.

4214.LCD.zip5141.LED_Blink.zip

  • Hi Santosh,
    Your LED blink example looks exactly like the empty min, so I tried building that with optimization on (-O2) and it worked fine. In what way are you seeing the example not work? Would it be easy for you to upgrade to the latest version of TI-RTOS (2.20.00.06)? The version you are using is pretty old.
    Thanks,
    Janet
  • Hi Janet,

    Thanks for your quick reply.

    Reason for using the TIRTOS 2.11 version:

    I am working in TIMAC, The TIMAC is using TIRTOS 2.11 version RTOS. So,

    1. I am suppose to use the TIRTOS 2..11.

    2.  implement the LCD code

    3. Integrate the LCD code with TIMAC driver.

    So, I hope I answered your question.

    Yes the Empty project is working absolutely fine in both Debug mode and release mode.

    But the LCD example code is only working in Debug mode but not in release mode.

    What's working ?

    In Debug mode, the LCD is behaving as per the read me file provided along with the example file.

    What is not working ?

    In the release mode,(Stop the debugging, reset the cc2650 or swithoff the SmartRF06 board and switch ON).

    The LCD is blank,

    And before BIOS_Start();(i made a LED to blink for 5 times, to identify whether the problem is after BIOS_Start() or before BIOS_Start().

    Even the LED is not blinking?

    I made the optimization level to "None".

    Please help me out.

  • Please find the LCD source file, 2703.LCD.zip

  • Only Empty(Minimal) Project is working in both debug mode and release mode.  But the Empty project and LCD SmartRF06EB examples are not working in release mode.

    Please try it out. And help me as soon as possible.

  • Hi Santosh,
    I copied your LCD code changes in my TI-RTOS 2.20 LCD project, and both debug and release versions ran fine. For the release version, though, the Delay() function seemed to be optimized out so I did not get the blinking light.
    Best regards,
    Janet