cancel
Showing results for 
Search instead for 
Did you mean: 

SPC560P discovery board struck in this specific line at code.

SV.9
Associate II

Hi,

Today I've been working on software on the SPC560P discovery board and found that my board got struck at a specific line of the code, and when I tried with other code, the results were the same.

Code struck in this specific line: 

* Waits for the mode switch or an error condition. *
  while (ME.IS.R == 0U){
   ;

 

Please help me to fix it. Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi Max,

Thank you for your reply, and at the same time, I found that the issue is with our external oscillator, which is damaged, due to which our code has stopped, and after replacing that, our issue got fixed.

View solution in original post

2 REPLIES 2
Max VIZZINI
ST Employee

Hi,

The MCU has the possibility to have several "run modes". In each run mode is possible to set a group of peripherals to be used.

The check you mention in your post is there to verify if the switch of the run mode has been completed.

Possible failures could derive from the fact that you try to change the run mode without having stopped and removed the clock from the active peripherals.

We are not able to help you further has your context is not clear.

Best Regards,

AutoDevKit team 

Hi Max,

Thank you for your reply, and at the same time, I found that the issue is with our external oscillator, which is damaged, due to which our code has stopped, and after replacing that, our issue got fixed.