Use default configuration and LED doesn't light up.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Use default configuration and LED doesn't light up.

1,507 次查看
hanchengyang
Contributor II

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:

175890_175890.pngpastedImage_2.png

Here is the code generated by PinTool:

175891_175891.pngpastedImage_4.png

And at last the code I wrote:

175892_175892.pngpastedImage_5.png

All go normally, I can run step by step and it runs into the main no error, but led didn't light up.

 

Thanks

标签 (1)
0 项奖励
回复
1 回复

1,332 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Hancheng,

From the schematic of FRDM-K64 , configure the PTB21 to low(0) , the blue LED

can be light , use this code :

  1. GPIO_ClearPinsOutput(BOARD_LED_BLUE_GPIO,1<<BOARD_LED_BLUE_GPIO_PIN);

while in your code , you set this pin to high (1) :

pastedImage_1.png

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!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复