Hi together,
how can I store a special string in flash at a specific location under
the Keil\ufffdV3 environment by using the GCC compiler?
With the Keil compiler I can do it with the "_at_" command.
Regards,
Ralf
Ralf
> how can I store a special string in flash at a specific location under
> the KeilµV3 environment by using the GCC compiler?
> With the Keil compiler I can do it with the "_at_" command.
use the attribute((__section__("sectionname")))
Then add this section in the linker script.
E.g.:
#define MYSECT __attribute((__section__(".strings")))
MYSECT const char string[] = "Hello";
Linkerscript:
.strings 0x1000 :
{
*(.strings)
}
--
42Bastian Schick