Blink LED

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Blink LED

1,640件の閲覧回数
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,456件の閲覧回数
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,456件の閲覧回数
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,456件の閲覧回数
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 件の賞賛
返信