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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
635 Views
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 Kudos
Reply
1 Solution
631 Views
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.

View solution in original post

0 Kudos
Reply
2 Replies
632 Views
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 Kudos
Reply
627 Views
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 Kudos
Reply