Hi All,
I want two bytes of constant value to be generated at memory address 0x3E8FFE through linker command file.That means when I generate hex file at this particular address there should be constant value which I specify.
Thanks,
Srinivas
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.
Hi All,
I want two bytes of constant value to be generated at memory address 0x3E8FFE through linker command file.That means when I generate hex file at this particular address there should be constant value which I specify.
Thanks,
Srinivas
Hi Srinivas,
You can create a constant and place it a separate section and map that the required address in teh linker command file.
Eg:
#pragma DATA_SECTION(var, "sect")
uint32_t var;
.cmd file:
sect : > Required Address
Please make sure that the address you are referring to is a writable address.
Regards,
Veena