Part Number: MSP430G2955
Tool/software: Code Composer Studio
Dear TI-team,
I'm using CCS Version: 6.0.1.00040 and GNU compiler v4.9.1. In my project in msp430g55.ld file I have divided FLASH memory space into two parts: my own bootloader (in MY_SEGMENT) and other project functions (in ROM), and they should works independent!. As I can see in a *.map file all my bootloader functions are located in MY_SEGMENT address space. But in generated assembler listing files I see that compiler uses some optimization functions like "__mspabi_srli_4" from ROM address space in my bootloader functions. But my bootloader should works independent, even if other FLASH memory space is empty. I have tryed to use __attribute__(optimize("O0"))) for each function of my bootloader, but problem still remain. How can I force compiler to optimize within each code segment only, or how can I disable this substitutions for dedicated functions?
Thank you in advance.