Technical information
Operating Precautions for CPDW9X/NT-CDR-V85X, Y-GHS-MULTI-V800
TM
Customer Notification r20tu0003ed1812 24
No. a13
The “#pragma intvect” directive fails with new generation compiler
Version Information
V3.3, V3.5, V4.0.5, V4.0.5c, V4.0.7(a)
Details
The “#pragma intvect” directive fails by using the new generation compiler and the compiler
option “-japanese_automotive_c”.
Example:
test.c:
#pragma intvect test 0x100
volatile int count;
void main(void)
{
while(1);
}
#pragma ghs interrupt
void test(void)
{
count++;
}
Command Sequence
ccv850e -c2000 -c -noobj -japanese_automotive_c -zda=all test.c
Workaround
Add definition of interrupt service routine in front of the “#pragma intvect” directive.
__interrupt void test (void); /* Add this line */
#pragma intvect test 0x100
volatile int count;
void main(void)
{
while(1);
}
#pragma ghs interrupt
void test(void)
{
count++;
}










