SLAU646F September 2015 – June 2020
The following attributes may be applied to variable declarations:
See the description of this attribute in Section 5.1.1.
Variables with this attribute are not initialized by the C runtime startup code or the program loader. Not initializing data in this way can reduce program startup times. A compiler warning will be provided if a variable marked with the noinit attribute is initialized to a constant value.
Variables with this attribute are not initialized by the C runtime startup code. Instead their value is set once when the application is loaded, and then never initialized again, even if the processor is reset or the program restarts. Persistent data is intended to be placed into Flash RAM, where its value will be retained across resets. The linker script used to create the application should ensure that persistent data is correctly placed. A compiler warning is provided if a variable marked with persistent is not initialized to a constant value.
See the description of this attribute in Section 5.1.1.