shuttersparks
Member
Teensy 3.2 here. It's working flawlessly, yakking over USB with a central control system running on a Linux box.
It seems that this question must have been asked by somebody but I can't find what I'm looking for.....
This system will eventually need to run unattended for unlimited periods of time. So, issues of the millis() timer overflowing and other possible corruption are an issue. I have tens of thousands of systems running out in the world, some still running non-stop since the late 1980s. Many are in life-safety and other critical applications. One of my practices is for such systems to reboot themselves periodically, like once a week, at a safe time. (No, this particular system is not for a life-safety application.)
Can I simply create a C function and insert a bit of machine code to jump to location 0 to induce a restart? Will this clear the millis() counter or does that require an actual hardware reset? If necessary, I'll do that.
It seems that this question must have been asked by somebody but I can't find what I'm looking for.....
This system will eventually need to run unattended for unlimited periods of time. So, issues of the millis() timer overflowing and other possible corruption are an issue. I have tens of thousands of systems running out in the world, some still running non-stop since the late 1980s. Many are in life-safety and other critical applications. One of my practices is for such systems to reboot themselves periodically, like once a week, at a safe time. (No, this particular system is not for a life-safety application.)
Can I simply create a C function and insert a bit of machine code to jump to location 0 to induce a restart? Will this clear the millis() counter or does that require an actual hardware reset? If necessary, I'll do that.