Skip to main content
SV.9
Associate
March 18, 2024
Solved

SPC560P discovery board struck in this specific line at code.

  • March 18, 2024
  • 1 reply
  • 1186 views

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.

Best answer by SV.9

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.

1 reply

Max VIZZINI
Technical Moderator
March 18, 2024

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 

SV.9
SV.9AuthorBest answer
Associate
March 19, 2024

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.