Technical information
Operating Precautions for CPDW9X/NT-CDR-V85X, Y-GHS-MULTI-V800
TM
Customer Notification r20tu0003ed1812 37
No. a27
Incorrect code generation on bit accesses
No. a28
Bad epilogue in interrupt with “-prepare_dispose” and “-notda”
Version Information
V3.5.1
Details
The compiler generates wrong epilogue sequence within interrupt service routine with options
“-prepare_dispose” and “-notda”. The stack address is not reloaded into the EP after the function
call. Therefore the epilogue sequence restores wrong register values.
Example:
test.c:
void foo(void)
{
asm("mov 0x5a5a5a5a,ep");
}
#pragma ghs interrupt
void timer(void)
{
foo();
}
Command Sequence
ccv850e –noobj -c -g -list –prepare_dispose -notda test.c
Workaround
A new compiler (PATCH to 3.5.1b4), which fixes this problem, can be downloaded from the NEC
WEB page(s) at http://www.renesas.eu/updates?id=443
No










