3.2.7.7.4 Project Properties
If the memory sections are defined but not referenced in the application code, the 'Garbage collect unused sections' option in Project Properties → Linker → Optimization must be unchecked. Otherwise, the linker will not include the sections in the .elf file.