Hi,
I am trying to find a solution to the following scenario:
I have an embedded board which has a small amount of non-volatile battery backed SRAM. The SRAM is used to store data during system power fail. Using the GCC compiler is it possible to label a variable to ensure that it is mapped to the battery backed memory area using a type modifier?
This is not unlike the functionality offered by the section variable attribute described in section 5.31 of the GCC manual. Unfortunatley the to use the section variable attribute the data must be initialized. As I need to retain data during system power fail the variables can not be initialized.
Any ideas on this would be greatly appreciated. I am developing in C using GCC as a cross compiler for a MCF5206e.
Regards
Marc
Heber Ltd. Registered Office: Belvedere Mill, Chalford, Stroud, Glos, GL6 8NT, England. Registered England: 1744505