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.
Thanks.
Hi Jennie,
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.
Thanks.
Hi Roy,
I currently have K64 PIT C demo code but don't have same for C++.
Can you please upload your demo code here.
we can check it.
Thanks.
Best Regards
Jennie Zhang