2024-03-18 12:53 AM
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.
Solved! Go to Solution.
2024-03-19 06:53 AM
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.
2024-03-18 10:13 AM
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
2024-03-19 06:53 AM
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.