Can someone upload a project in C++ where the PIT is working, for the FRDM K64
I've just transformed my project from C to C++. I have 2 interrupts (UART and PIT). Even though I added extern "C" in all files... still, PIT does not seem to work, UART works just fine.
I've set a breakpoint in the 'interrupt handler' but the Segger debugger is crashing, probably because the linker throws away this method. Same thing happened to me in the UART interrupt but there adding the Extern "C" solved the problem.
I've had it fixed. It works only when the interrupt function exist on the main.cpp. I don't know why, but as long as it is there, it is working well.