4.2.8 Boot Row Memory

Some devices have a Boot Row (BOOTROW) memory, which can be used for end-production data and is not affected by a device erase. The memory is accessible to the CPU both in locked and unlocked state, but only when the CPU is executing from the BOOT sector. Check your device data sheet to see if this memory is relevant for your selected device and for more information.

To place data into this memory, assign the data to any section prefixed with .bootrow, for example:

const unsigned char __attribute__((used, section(".bootrowinit"))) x2[8] = {0x64, 0x28, 0x00, 0x01, 0xAB, 0x8A, 0xA8, 0x33};

This section is automatically placed at the correct address by the default linker script.