This content has been marked as final.
Show 3 replies
-
1. Re: Reset by software
bob.marlowe Dec 18, 2016 6:28 AM (in response to chaplin.u_1533771)Start a timer when button pressed, when still pressed when timer expires issue a CySoftwareReset().
Bob
-
2. Re: Reset by software
chaplin.u_1533771 Dec 18, 2016 7:24 AM (in response to chaplin.u_1533771)Thanks !
-
3. Re: Reset by software
e.pratt_1639216 Dec 22, 2016 9:18 AM (in response to chaplin.u_1533771)I would suggest setting a flag when the timer expires rather than directly resetting, as the device could (theoretically) reboot and read the button switch as being "on" from before the device reset.
If you used a flag, and waited until the end of the button press to reset, then you would remove the possibility of the software reading the button as being "on" when it resets, but it depends on what your implementation needs I suppose.