Question: Why am I getting the warning " ignoring changed section attributes for .data " ?
Answer: When you place code into the .data section you will get the following warning: Warning: ignoring changed section attributes for .data This is because the .data section does not, by default, expect to have code attributes associated with it. In this case you can ignore the warning, because you intend to add attributes to the .data section. Even though the warning indicates that the linker is ignoring your attribute, it will still place your code in RAM. You can verify this in the map file by checking which section your code has been placed in. To clear this warning you would need to modify the cm3gcc.ld file. The best approach would be to add a custom section located in RAM for you code. However, since this is Creator generated source code, changes you make to this file will be overwritten when rebuilding the project.