11.12.2 User-Defined Boot and Secure Segments

User-defined boot and secure segments are supported in program memory and data memory. This allows an application to take advantage of the CodeGuard Security language extensions on any device, not just CodeGuard Security-enabled devices. User-defined segments are specified with the ram_size and flash_size options (see 9.6 Options that Specify CodeGuard Security Features).

A summary of user-defined boot and secure segments is written to the link map file. For example:

User-Defined CodeGuard Segments
  boot RAM:          0x20 bytes
  secure RAM:        0x80 bytes
CodeGuard FLASH Memory:
  boot    (none)
  secure  (none)
  general 0x100 to 0x17ffe
CodeGuard RAM Memory:
  general 0x800 to 0x26ff
  secure  0x2700 to 0x277f
  boot    0x2780 to 0x279f

User-defined segment options should not be combined with CodeGuard Security options. They are intended for debugging and/or special bootloader applications. User-defined segment options are not encoded in the FBS, FSS, FGS configuration words.