Please consider the following code.
//--- module main.c --- ... void main() { ... set_status_word(...); ... } //--- module can.c --- ... void CAN_int_handler(void) interrupt 7 { ... set_status_word(...); ... } //--- module utils.c --- ... void set_status_word(...) { ... }
This forum doesn't seem to add new messages at the end... Never mind. This could be a bug in the linker. Did you file a bug report ? Not yet. First, I want to make sure it isn't my bug. Besides, it would be a second bug I found in Keil C. Too many for a single programmer, isn't it? ;-)