AnsweredAssumed Answered

Hello world program for Kinetis

Question asked by Fabian Unknown on Dec 8, 2010
Latest reply on Jan 25, 2011 by Anthony Huereca



I am trying to write a small hello world program for the Kinetis K60 but it's not working. It's just a pin I want to toggle.


#include <stdio.h>

#include "derivative.h" /* include peripheral declarations */

int main()
    GPIOC_POER |= (1<<0);
        printf("Hello World!\n");
        GPIOC_PTOR = (1<<0);
    return 0;

Using MCU_init or not makes no difference. The pin simply does nothing.

I also tryed to use a DAC but when I add the DAC0 settings in the "Target CPU" view the program crashes and jumps to PE_ISR(isrINT_NMI) when calling the MCU_init method.


PS: Why is here no extra forum for Kinetis?