We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
is it possible to define a const variable at a given address using AC6 similar to this?
__attribute__((used)) const char signature[16] __attribute__((at(0x08041000)))={"my_signature"};
I think it would be possible to place this string in a separate c-file and create a section in the scatter-file and define a address/length, but I would prefer something similar to this above.
Thank you.
Hi,
how about this:
const char signature[16] __attribute__((used)) __attribute__((section(".ARM.__AT_0x08041000"))) = {"my_signature"};
Best regards, Milorad
Thank you, exactly what I need.