FRDM K64 with PIT, in C++

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FRDM K64 with PIT, in C++

1,322件の閲覧回数
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,040件の閲覧回数
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,040件の閲覧回数
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 件の賞賛
返信