This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ARM-CGT: How to insert a constant into linked binary through linker cmd file

Expert 2055 points
Part Number: ARM-CGT


Using TI ARM C compiler, linker.

Is it possible to create a constant inside the liker *.cmd file,  and assign that constant to a variable accessible in my C code?

Literally, how to create a const number assign it to a symbol to be accessible in C as extern.

I know how to say create this with SIZE(putsizehere) of a section, but this is not it.  I just want to hardcode a constant through the config (because it's something specific to my linking configuration..)