I know that I can use the __attribute__ command to specify the FLASH space to put in the CONST variable I want, but now I want to put this variable in the last position of the FLASH space, but the last part of the FLASH is to put .RW_Data, how should I put it? I want the const variable to be placed at the end?
Use a scatter file with appropriate sectioning? Use a pointer rather than an AT directive? Have your code write in a default value? Post-process the .HEX file to add the value in? If you're particularly adept you could work on the .ELF/AXF file.