Hi,
I trying to "port" the AN4561 code for the MTRCKTSPS5604P board to the TRK-MPC5604P. Hardware-wise I think I'm okay but for the application I'm quite unsure... The things is that the app note code is for Green Hills Multi-Ide and I'm using Codewarrior 10.5.
I created a bareboard project for the MPC5604P and added the AN4561 sources to my project. After a lot of changes (newer AMMCLIB, different declaration in jdp_0100_CUT2.0.h vs MPC5604P.h) I manage to get the code to compile. I can start the debugger on run it a bit, but when the interrupts are enabled my code goes to serve the INTC interrupt and dies and the NMI trap.
The handler looks like that:
void INTC_INTCInterruptHandler(void)
{
INTCInterruptFn *handlerFn = (INTCInterruptFn*)(*(unsigned int*)&INTC.IACKR.R);
(**handlerFn)();
INTC.EOIR.R = 0;
}
The location reached by the call " (**handlerFn)();" is clearly wrong. I wonder if the interrupt vector table for GHS and Codewarrior (gnu) compiler are compatible. Any ideas ?
Regards,
Jasmin
解決済! 解決策の投稿を見る。
Hi,
I have send you the version of this application code for CW with latest libraries used.
Peter.
Hi petervlna
Could you provide the example code(MPC5604 PMSM based on CW 2.XX) for me?
I could not find it on web..
Thank you.
Hi,
I have spoken to AN owner and he has the code for CW 2.xx also.
Peter
Thanks Peter,
I've installed CW 2.10.
The AMMCLIB I have are v1.0.2, v1.0.4 and v.1.1.0. Did v1.0.3 was released ? Also the lib file (.a) I have are either for Green Hill, Diab or CW10x. The lib file MPC560xP_AMMCLIB_v1.0.3.PPCEABI.V.UC.A is not part of the available AMMCLIB release on freescale website.
Regards.
Jasmin
Hi,
I am not sure if 1.0.3 was released, but we have it.
Peter