Technical information
Operating Precautions for CPDW9X/NT-CDR-V85X, Y-GHS-MULTI-V800
TM
Customer Notification r20tu0003ed1812 14
No. a3
Compiler generates incorrect branches inside an interrupt services routine
Version Information
V3.3
Details
In object mode the compiler generates incorrect branches inside an interrupt service routine.
Example:
extern void foo(void);
extern int test(void);
void isr (void)
{
#pragma ghs interrupt
if (test()==1)
{
foo();
}
}
This will generate an endless loop in case result of “test()” is not 1.
Workaround
Use option –noobj to use assembly mode for compilation.










