Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
What does the code;
" Simulate a fault with an infinite loop, but only after 25 loop iterations if (count == 25) while (1) {}; LED 2 will stay on during the fault myled2 = 0; count ++; "
do in the WATCHDOG Timer code. Specifically how do I read "if (count == 25) while (1) {};"; does this send the program back to the beginning of the while() loop or is it another while() loop???
Where is it placed in the overall program code; at the end following the program code in the main program loop; or at the beginning of the main program loop???