17.4.2 Basic information
The basic information defines CPU type: cpu, Base clock interval: tim_base, Base clock timer exception code: tim_intno, System stack size: sys_stksz, Whether to check stack: stkchk, Maximum priority: maxtpri, Maximum interrupt priority: maxintpri, Maximum number of interrupt handlers: maxint; Maximum value of exception code: maxintno.
[CPU_TYPE (chip_type);] [DEF_TIM (tim_base);] CLK_INTNO (tim_intno); SYS_STK (sys_stksz); [STK_CHK (stkchk);] [MAX_PRI (maxtpri);] [MAX_INTPRI (maxintpri);] MAX_INT (maxint [, maxintno ] ); |
If omitted The CPU type should be the device type specified in the -cpu option. When the PE number is specified in the -peid option, the CPU type corresponding to the PE number should be specified. When the -cpu option setting is omitted, the CPU type should be G3K.
Specifies the base clock interval (unit:millisecond) of the timer to be used.
A value from 0x1 to 0xffff can be specified for tim_base.
A value from 0x1 to 0xffff can be specified for tim_base.
Note The base clock cycle means the occurrence interval of base clock timer interrupt tim_intno, which is required for implementing the TIME MANAGEMENT FUNCTIONS provided by the RI850V4. To initialize hardware used by the RI850V4 for time management (such as timers and controllers), the setting must therefore be made so as to generate base clock timer interrupts at the interval defined with tim_base.
Specifies the exception code for the base clock timer interrupt that is necessary to implement the time management facility provided by the RI850V4.
The value that can be specified for tim_into is an interrupt source name specified in the device file or a value from 0x1000 to the maximum exception code maxintno.
Note When an interrupt source name is specified for tim_intno, -cpu D name must be specified for the CF850V4 activation option.
Specifies the system stack size (in bytes).
A value from 0x0 to 0x7ffffffc (aligned to a 4-byte boundary) can be specified for sys_stksz.
A value from 0x0 to 0x7ffffffc (aligned to a 4-byte boundary) can be specified for sys_stksz.
Note 3 The stack size that is actually secured is calculated as the specified stack size plus "20 + 80 (size of context area of interrupt handler)".
Specifies whether to check the stack overflows before the RI850V4 starts processing.
The keyword that can be specified for flg is TA_ON or TA_OFF.
The keyword that can be specified for flg is TA_ON or TA_OFF.
Note 1 When INTPRI3 is specified, the RI850V4 manages interrupts within the range from priority INTPRI3 to the minimum interrupt priority.
The minimum interrupt priority is determined as follows. When the CPU type of the target device is G3K: IINTPRI7 is the minimum interrupt priority.
When the CPU type of the target device is G3M or G3KH or G3MH: INTPRI15 is the minimum interrupt priority.
The minimum interrupt priority is determined as follows. When the CPU type of the target device is G3K: IINTPRI7 is the minimum interrupt priority.
When the CPU type of the target device is G3M or G3KH or G3MH: INTPRI15 is the minimum interrupt priority.
Note 2 When the interrupt handlers for the EI level maskable interrupts are called in the reduced mode (the RINT bit in the reset vector base address (RBASE) or the exception handler vector address (EBASE) is set to 1), the maximum interrupt priority should be set to INTPRI0.
A value from 0x0 to 0x200 can be specified for maxint, and a value from 0x1000 to 0x11ff can be specified for maxintno.
Note 1 Specify for maxint "the total number of interrupt handlers defined in the Interrupt handler information".