Blink LED

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

Blink LED

1,625 次查看
pasini
Contributor I

Hi

MK60N1M0 + MQX 4.1 - IAR

I have tried everything to make my board to run my code but  I haven't succeeded.

Can someone just show me a piece of code that uses an external 4MHz cristal clock and blinks a LED at port B7 ?

It can be even alternatively in the Kinetis Design Studio.

Thanks in advance

Luiz

标签 (1)
标记 (1)
0 项奖励
回复
3 回复数

1,441 次查看
Rick_Li
NXP Employee
NXP Employee

Hi Luiz,

Can you please refer to the examples comes with MQX v4.1.

These examples are located in {MQX}\mqx\examples\gpio\build\.

If these there are still problems, then, please reply!

0 项奖励
回复

1,441 次查看
pasini
Contributor I

I've seen the examples, but i  need to run code from my own board ( not a tower ).

Based on the examples, my code is stoped while trying to check the source of the FLL reference (bsp_cm.c)

void __pe_initialize_hardware(void)

{

..........

while((MCG_S & MCG_S_IREFST_MASK) == 0x00U) { /* Check that the source of the FLL reference clock is the internal reference clock. */

  }

  while((MCG_S & 0x0CU) != 0x00U) {    /* Wait until output of the FLL is selected */

  }

0 项奖励
回复

1,441 次查看
Rick_Li
NXP Employee
NXP Employee

Hi Luiz,

I don't think your issue is a MQX issue.

I would suggest creating an new project in CodeWarrior with Processor Expert tools for MK60N1M0 and then configure the clock module.

Then generated code to see if this new created project works on your side.

this project is just testing your firmware to see if it works well!

0 项奖励
回复