So, say you have a simple F280xx project and in a cmd file, you are trying to specify a section for the FlashAPI lib. This is what's in the Flash API example cmd files in controlSuite.
Flash28_API : { -lFlash2803x_API_V100.lib(.econst) -lFlash2803x_API_V100.lib(.text) } LOAD = FLASH_A_H, RUN = RAML0, LOAD_START(_Flash28_API_LoadStart), LOAD_SIZE(_Flash28_API_LoadSize), RUN_START(_Flash28_API_RunStart), PAGE = 0
When I look at the memory allocation, I notice there is no .econst section of Flash28_Erase.obj, even though I told it to include .econst.
Now, if I don't specify .econst or .text in the -l option and compile again with no other code changes, suddenly I get the .econst section of Flash28_Erase.obj, which adds another 40 bytes (which is weird because 1325 + 40 != 1366 as shown below).
Flash28_API : { -lFlash2803x_API_V100.lib } LOAD = FLASH_A_H, RUN = RAML0, LOAD_START(_Flash28_API_LoadStart), LOAD_SIZE(_Flash28_API_LoadSize), RUN_START(_Flash28_API_RunStart), PAGE = 0
Have tried with both CGT 6.4.x or 15.2.x