Bluetooth serial programming
-
- Posts: 163
- Joined: 24 March 2008, 23:33 PM
- Location: Southern California (Blue)
ZXCmdMode, whether invoked by code or by OS ATN character (Pesistent&H13=ATNCharcode) capture, succumbs to the watchdog. Downloads via ZXCmdMode fail if the watchdog is running.
That makes the watchdog and the OS-captured ATN character download mutually exclusive. And, if captured by code (Pesistent&H13=0), the watchdog can and must be closed before calling ZXCmdMode - but that leaves the machine, um, unwatched. ZXCmdMode could disable the watchdog but, again, leaving it unwatched.
Don, can ZXCmdMode, instead, hit the watchdog often in its control loop? That would solve both: ZXCmdMode could run with the watchdog running, and that mode would have the protection of the watchdog even after the application handed over control.
That makes the watchdog and the OS-captured ATN character download mutually exclusive. And, if captured by code (Pesistent&H13=0), the watchdog can and must be closed before calling ZXCmdMode - but that leaves the machine, um, unwatched. ZXCmdMode could disable the watchdog but, again, leaving it unwatched.
Don, can ZXCmdMode, instead, hit the watchdog often in its control loop? That would solve both: ZXCmdMode could run with the watchdog running, and that mode would have the protection of the watchdog even after the application handed over control.
Tom
Perhaps. Some careful analysis is needed to determine the places where it would need to be done. If this were implemented, it wouldn't be available in devices already in the field since the code changes would be in the bootloader that we install during manufacturing. If needed, existing devices would need to be sent back to be re-programmed.GTBecker wrote:[C]an ZXCmdMode, instead, hit the watchdog often in its control loop?
- Don Kinzer