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 项奖励
回复