FRDM K64 with PIT, in C++

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM K64 with PIT, in C++

637 Views
roymessinger
Contributor V

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.

Labels (1)
0 Kudos
2 Replies

355 Views
roymessinger
Contributor V

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.

0 Kudos

355 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

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

0 Kudos