AnsweredAssumed Answered

TWR-K60FN1M Demo HID device, pll blocking? (newbie question)

Question asked by giggler g on Dec 20, 2012
Latest reply on Jan 8, 2013 by Maclain Lobdell

Hi,

 

Just playing with a new toy, a tower having micro PK60FN1M0VLQ12 using IAR EWB demo code.  Using the HID mouse demo, builds ok, uploads to ram on the tower but blocks forever in pll_init(...), specific code:

 

/* Wait for LOCK bit to set */

    #if(defined MCU_MK20D5) || (defined MCU_MK20D7) || (defined MCU_MK40D7)

       ...

    #else   

        while (!(MCG_S & MCG_S_LOCK_MASK)) {};

    #endif


Never exits the above while loop.  Header file include in demo code is KM60N512VMD100.h, not exactly the P/N of the device on the tower.


Any suggestions to help me get going with be good.  A chap here suggested using a different version of the function from another demo, found in mcg.h and mcg.c but these are not compatible with the way they wrote this HID demo.


Regards,


giggler

Outcomes