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: Release Only Bugs - Difference Between Debug and Release

Part Number: TMS320F28335


Tool/software: Code Composer Studio

Hello everyone,

I am an intern and trying to develop necessary codes for our products using TMS320f28335 and CCS V8.1.0. I have my own codes and previous working codes at my disposal. They are working fine in DEBUG mode but when I switch to release mode I get more than 40 errors. Most of them are " XXXX memory range has already been specified" and "memory range overlaps existing memory range". These bugs doesn't come up at debug mode. So my questions are,

1-) When should I use debug and release mode?

I did some research and internet says release mode take less space in your memory. But does it affect speed? Because when I upload my code to our devices they will be shipped to the customer right away.

2-) Why did release mode thinks I am using already defined memories while debug doesn't?

3-) I would also like if someone can describe what are these modes for, I am a bit lost about this topic.

Thanks in advance for your answers. Sorry for asking the obvious but I am new to the embedded systems and DSP's world.

Regards,

Berkan

  • Hi Berkan,

    Berkan Arslan said:
    They are working fine in DEBUG mode but when I switch to release mode I get more than 40 errors. Most of them are " XXXX memory range has already been specified" and "memory range overlaps existing memory range". These bugs doesn't come up at debug mode.

    I suspect that the Release configuration is specifying an additional linker command file that is conflicting with the others. Please remove the unneeded cmd file.

    Berkan Arslan said:
    1-) When should I use debug and release mode?

    Those are just default build configurations. For more information, please see the below link in the User's Guide fore more details:

    https://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_project-management.html#build-configurations

    Berkan Arslan said:
    I did some research and internet says release mode take less space in your memory. But does it affect speed? Because when I upload my code to our devices they will be shipped to the customer right away.

    As mentioned in the User's Guide link I provided above, what the release configuration does can vary greatly depending on the device. Many examples from TI will have their own spin on what those configuration do. So it is really quite variable and you should go through the options yourself.

    Berkan Arslan said:
    2-) Why did release mode thinks I am using already defined memories while debug doesn't?

    See my first comment about the possibility of the extra cmd file.

    Berkan Arslan said:
    3-) I would also like if someone can describe what are these modes for, I am a bit lost about this topic.

    Check the link to the User's Guide that I mentioned above.

    Hope this helps

    Berkan Arslan said:
    Sorry for asking the obvious but I am new to the embedded systems and DSP's world.

    Welcome!

    Thanks

    ki

  • Hi Ki,

    After tampering with settings I realized my release build configurations was different than debug's just as you said. It was indeed a linker file problem.

    Also those guides you provided are also very needed for my training.

    Thanks again for your swift reply and help.