This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Accessing section from C code

I am porting legacy code to the Keil/uVision5/MDK-ARM Standard Cortex-M Version 5.11.0.0.
The code uses in few places static variables/objects in a specific section, which then becomes an array of the given objects. A "manager" handles the objects by iterating over the section array.

All of this works assuming that the start and end of the section is accessible from the C/C++ code.

In gcc the start and end of a section is given by __start_<sectionname> and __stop_<sectionname>.
In the IAR compiler the same information is accessed with the __section_begin( <sectionname> ) and __section_end( <sectionname> ).

Are there any ways of getting this functionality in the Keil/uVision5 Cortex-M compiler?

Parents Reply Children
No data