Hi everyone,
I am new to use MCUXpresso, I think it's time to get rid of Processor Expert.
I used the default configuration for FRDM-K64F, and I used GPIO driver attempting to light up the leds. But it didn't work.
Here is the configuration:
Here is the code generated by PinTool:
And at last the code I wrote:
All go normally, I can run step by step and it runs into the main no error, but led didn't light up.
Thanks
Hello Hancheng,
From the schematic of FRDM-K64 , configure the PTB21 to low(0) , the blue LED
can be light , use this code :
GPIO_ClearPinsOutput(BOARD_LED_BLUE_GPIO,1<<BOARD_LED_BLUE_GPIO_PIN);
while in your code , you set this pin to high (1) :
So please change it ,then your project can work well .
Hope it helps !
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------