AnsweredAssumed Answered

[FRDM-KW41Z] Demo gpio_led_output.c working well. Clean copy of it doesn't.

Question asked by Gilles Clerc on Jan 19, 2017
Latest reply on Jan 19, 2017 by Gilles Clerc

Hi there,


I just want to try to blink a single led (gosh) and can't get this to work even with the demo within the connectivity software (with the SDK 2.0 inside i guess).


Ok, so if i build the project gpio_led_outpute_frdmkw41z the led is blinking as expected. But if i do the same things in my own project it didn't. I maybe miss something here.


I did create a new project with the Kinetis SDK 2.x Project wizard (link to the sdk2.0 inside the folder of the connectivity software), and simply did exactly the same things with the GPIO:


// Define the init structure for the output LED pin

gpio_pin_config_t led_config = {kGPIO_DigitalOutput, 0,};


// Init the output




//toggle it with some delay




I tried everything. Even to change with the define on board.h (LED_RED_INIT(), LED_RED_TOGGLE().


The thing is: It's working very well with the demo but not with my project despite it's exactly the same include define  etc.. (copy pasted!!)


Any one of you have an idea? Maybe i miss a configuration somewhere?


Sorry for my english.