#pragma DATA_SECTION(variable, memorylication)
eg:
#pragma DATA_SECTION(Lock_f, ".infoB")
i thing, this variable will be created in segmentB ie flash information memory
if i want to have a variable in flash main memory how to change above program line
which compiler?
Pragma directives are quite different on different compilers.
In general you has to define a section in a header file for data, code ...
With the pragma directive you can say the compiler to create the variable in the special section.
which compiler?
Pragma directives are quite different on different compilers.
In general you has to define a section in a header file for data, code ...
With the pragma directive you can say the compiler to create the variable in the special section.