Hi,
the example you try is created for different board (TRK). TRK board has different crystal (8MHz). MPC5604P in mini-module board has probably 40MHz crystal. You have to use different code to initialize PLL.
Replace function InitModesAndClks in you project with this source code:
/* Enter RUN0 with PLL as sys clk (64 MHz) with 40 MHz crystal reference. */
void InitModesAndClks(void) {
ME.MER.R = 0x0000001D; /* Enable DRUN, RUN0, SAFE, RESET modes */
CGM.FMPLL[0].CR.R = 0x11200100; /* 40MHz xtal: Set PLL0 to 64 MHz */
ME.RUNPC[0].R = 0x000000FE; /* enable peripherals run in all modes */
ME.RUN[0].R = 0x001F0074; /* RUN0 cfg: IRCON,OSC0ON,PLL0ON,syclk=PLL */
/* Mode Transition to enter RUN0 mode: */
ME.MCTL.R = 0x40005AF0; /* Enter RUN0 Mode & Key */
ME.MCTL.R = 0x4000A50F; /* Enter RUN0 Mode & Inverted Key */
while (ME.GS.B.S_MTRANS) {} ; /* Wait for mode transition to complete */
while(ME.GS.B.S_CURRENTMODE != 4) {}; /* Verify RUN0 is the current mode */
}
Now it should work. Please write me back if it helps you.
Regards,
Martin