The following example shows how to set FF to R8C/3x Series Option Function Select Register 2 (register 0FS2).
C Language Start-up:
Add the two lines to fvector.c as shown below.
Add the three lines to sect30.inc as shown below.
When applying startup or a project for the R8C/1x or R8C/2x series instead of the R8C/3x series, this setting will cause an overlap error in the section during the link. In this case, change the start address of the variable vector table (vector section) to an address lower than FED8h to avoid an overlap between the variable vector table and the reserved area (register 0FS2).
|C/C++ Compiler Package for M16C Series and R8C Family [M3T-NC30WA]|