FRDM K64 with PIT, in C++

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FRDM K64 with PIT, in C++

1,678 次查看
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.

标签 (1)
0 项奖励
回复
2 回复数

1,396 次查看
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 项奖励
回复

1,396 次查看
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 项奖励
回复