English
Language : 

CC78K4 Datasheet, PDF (427/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
Flash Area Branch Table
#pragma ext_table
RESTRICTIONS
• The branch table is located at the first address of the flash area.
• If #pragma ext_table does not exist before #pragma ext_func, #pragma vect with –ZF specification,
#pragma interrupt, or #pragma rtos_interrupt, an error occurs.
• The first address of the branch table is assumed to be 0x80 to 0xff80. However, match the first address value
with the flash start address which is specified by the -ZB linker option. If the address does not match, it results
in a link error.
• It is necessary to reconfigure the library for interrupt vectors (_@vect100 to _@vect3e) in accordance with
the specified first address of the branch table. The default is 4000H in the interrupt vector library. To specify a
value other than 0x4000, reconfigure the library as shown below.
1. Change the place of H in ITBLTOP EQU 4000H of vect.inc in the \NECTools32\SRC\CC78K4\SRC directory
to the specified address.
2. Run \NECTools32\SRC\CC78K4\BAT/repvect.bat in DOS prompt, and update library using the assembler, etc.
Copy the updated library \NECTools32\SRC\CC78K4\LIB to \NECTools32\LIB78K4 to be used for linking.
Caution The above directory may differ depending on the installation method.
COMPATIBILITY
From another C compiler to this C compiler
• Modification is not required if #pragma ext_table is not used.
• When specifying the first address of the flash area branch table, change the address according to the
method above.
From this C compiler to another C compiler
• Delete the #pragma ext_table instruction or delimit it with #ifdef.
• When specifying the first address of the flash area branch table, the following modification is required.
User’s Manual U15556EJ1V0UM
427