Is it possible to exclude part of the memory (bootloader) from the optimization of the compiler?
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.
Is it possible to exclude part of the memory (bootloader) from the optimization of the compiler?
Hello Samuelr,
The bootloader in this device is in ROM and is not compiled as it is already on the device. If you are doing an application level bootloader, like MSPFRBOOT, then that would be compiled and affected by your optimization settings.
There is not a way to exclude memory segments; however, there are certain things you can do to exclude portion of code form optimization settings.
First, you can exclude specific functions with the pragma described in this E2E post: https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/125869/iar-pragma-optimize-none-in-ccs
Second, there is also an option to exclude whole files from optimizations within CCS. Check out the following information: https://dev.ti.com/tirex/explore/content/simplelink_cc13x2_26x2_sdk_5_10_00_48/docs/ble5stack/ble_user_guide/html/ble-stack-5.x-guide/debugging-index.html#single-file-optimizations (This guide is from TI's SimpleLink devices, but the same CCS options are available for MSP430.)
For more information about MSP430 Compiler specific options, check out the MSP430 Compiler Guide: www.ti.com/lit/slau132
**Attention** This is a public forum