__ramfunc
In this section:
Syntax
See Syntax for object attributes.
Description
The __ramfunc keyword makes a function execute in RAM. Two code sections will be created: one for the RAM execution (.textrw), and one for the ROM initialization (.textrw_init).
If a function declared __ramfunc tries to access ROM, the compiler will issue a warning. This behavior is intended to simplify the creation of upgrade routines, for instance, rewriting parts of flash memory. If this is not why you have declared the function __ramfunc, you can safely ignore or disable these warnings.
Functions declared __ramfunc are by default stored in the section named .textrw.
Example
__ramfunc int FlashPage(char * data, char * page);