MK10DN512 IAR Project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MK10DN512 IAR Project

740 Views
john71
Senior Contributor I

Where can I find a demo IAR project for MK10DN512?

I was trying to change my MK10FN1M project, linker and header files but get numerous errors.

0 Kudos
Reply
2 Replies

570 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Evgeny Erenburg,

You can download the SDK for the MK10DN512.

pastedImage_2.png

And select IAR as your IDE. 

pastedImage_3.png

Link to download the SDK. 

Hope it helps!

Victor.

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

----------------------------------------------------------------------------------------------------------------------- 

0 Kudos
Reply

570 Views
john71
Senior Contributor I

Thank you. I did so. Bit it has kinda lame

void SystemInit (void) {

    /* Watchdog disable */
    #if (DISABLE_WDOG)
    /* WDOG->UNLOCK: WDOGUNLOCK=0xC520 */
    WDOG->UNLOCK = WDOG_UNLOCK_WDOGUNLOCK(0xC520); /* Key 1 */
    /* WDOG->UNLOCK: WDOGUNLOCK=0xD928 */
    WDOG->UNLOCK = WDOG_UNLOCK_WDOGUNLOCK(0xD928); /* Key 2 */
    /* WDOG->STCTRLH: ?=0,DISTESTWDOG=0,BYTESEL=0,TESTSEL=0,TESTWDOG=0,?=0,?=1,WAITEN=1,STOPEN=1,DBGEN=0,ALLOWUPDATE=1,WINEN=0,IRQRSTEN=0,CLKSRC=1,WDOGEN=0 */
    WDOG->STCTRLH = WDOG_STCTRLH_BYTESEL(0x00) |
                 WDOG_STCTRLH_WAITEN_MASK |
                 WDOG_STCTRLH_STOPEN_MASK |
                 WDOG_STCTRLH_ALLOWUPDATE_MASK |
                 WDOG_STCTRLH_CLKSRC_MASK |
                 0x0100U;
    #endif /* (DISABLE_WDOG) */
}

Without clock configuration. And this is the most tricky part.

0 Kudos
Reply