What shold be the reason for gettings stuck at the " while((MCG->S & MCG_S_IREFST_MASK) != 0x00U)"?

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

What shold be the reason for gettings stuck at the " while((MCG->S & MCG_S_IREFST_MASK) != 0x00U)"?

ソリューションへジャンプ
636件の閲覧回数
omkardixit
Contributor III

Hi

I was working on the TWR-K70F120M using Keil IDE. So, i was trying the example code given by the keil pack installer here i'm attaching screenshot.

Untitled2.png

But while debugging i found out its getting stuck at the following line

Untitled.png

What should be the reason?? I'm new to the controller any help will be really helpfull.

Regards,

Omkar Dixit

0 件の賞賛
返信
1 解決策
632件の閲覧回数
ErichStyger
Senior Contributor V

Basically your clock configuration does not work, and the clock block on the MCU is not able to synchronize/lock in. Check if the clock configuration you are using is indeed what you have available on your board.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
633件の閲覧回数
ErichStyger
Senior Contributor V

Basically your clock configuration does not work, and the clock block on the MCU is not able to synchronize/lock in. Check if the clock configuration you are using is indeed what you have available on your board.

0 件の賞賛
返信
628件の閲覧回数
omkardixit
Contributor III

Yes right! i changed the the following macro earlier it was 1 i made it 0 now it worked!

Thanks a lot.!!

clock_issue.png

Regards

Omkar Dixit

0 件の賞賛
返信