Everything

-SECURITY_OPT_BYTE [V1.12 or later]


This option specifies the control value for the security option byte.

[Specification format]

-SECURITY_OPT_BYTE=value

 

-

Interpretation when omitted

The value specified in an assembly source file or the value defined in the device file is set.

[Detailed description]

-

This option specifies the control value for the security option byte for value.

-

Specify a hexadecimal value in the range from 0x0 to 0xFF for the control value for the security option byte.

-

Specifying a value that cannot be specified for the control value for the security option byte will cause an error.

-

The control value for the security option byte is specified at address 0xC4.

-

The control value for the security option byte can also be specified by defining the segment with the following relocation attributes in the assembly source file.
Define the segment with 5 bytes in total, including the user option bytes and on-chip debugging control value starting from address 0xC0.

        .section    .option_byte, opt_byte
          .db       0xfd                ;Address 0xC0
          .db       0xfe                ;Address 0xC1
          .db       0xff                ;Address 0xC2
          .db       0x04                ;Address 0xC3
          .db       0xff                ;Address 0xC4

-

If the assembly source file and this option are specified at the same time, this option takes priority.

-

If the device file, the assembly source file, and this option are specified at the same time, this option takes priority.

[Example of use]

-

To set 0xC4 at address 0x04 as the control value for the security option byte, describe as:

>rlink a.obj b.obj -device=dr7f124fgj.dvf -security_opt_byte=04

[Remark]

-

If the -form={object|relocate|library} option or -extract option is specified, this option will be invalid.

-

If the -device option is not specified, this option will be invalid.

-

When specifying the security ID value in the assembly source file, do not use a label reference. Doing so might result in an unexpected value due to relocation resolution.