My application is split into several static libraries which are linked together.
One of the libraries is a PORT library which contains source code for interrupts handlers. The source code of isr.cpp
below has the sys_tick_handler
definition optimized out. Whenever the sys_tick
interrupt occurs, the null_handler is called.
I have created a simple workaround to fix this, by declaring in isr.h
some kind of dummy function. Then defining it in the isr.cpp
file. I need to call this dummy function in my main. It helps, because after all, the sys_tick
interrupts are invoking the handler from isr.cpp
.
I'm not proud of it, it is just workaround as I said — so I'm looking for a real fix for this problem.
Here is the code of isr.cpp
:
extern "C" {
void sys_tick_handler(void) {
}
}
Workaround isr.h
:
void func();
Workaround isr.cpp
:
void func() {}
extern "C" {
void sys_tick_handler(void) {
}
}