0

Hi,

Is there a known workaround/alternative to IAR’s __no_init variable qualifier?  The idea is to be able to NOT automatically initialize a variable, not even to 0.  The C-runtime start-up code typically copies initialized data by copying from Flash, or in the case of non-initialized data, sets it to 0.

The purpose is to use a bit of RAM to store temporary data after a warm-reset, such as for debugging watchdog resets.  I’d like to avoid having to mess with the startup code along with adding a new linker section in RAM.

Open Source Tools Support answered