Some flash devices require a key to be written to an address
to activate certain features. An
provides a simple method of writing a value to a specific address.
Assuming a device has flash memory from
a key is required in address
0x8000. To do this
__at section, you must declare a variable
so that the compiler can generate a section called
The following example shows a scatter file with manual placement of the flash execution region:
Use the linker command-line option
enable manual placement.
The following example shows a scatter file with automatic
placement of the flash execution region. Use the linker command-line
--autoat to enable automatic placement.