Bluetooth serial programming

Questions and discussion about the ZBasic IDE.
liam.zbasic
Posts: 163
Joined: 24 March 2008, 23:33 PM
Location: Southern California (Blue)

Post by liam.zbasic »

An Application Note on this subject would be very useful.
GTBecker
Posts: 616
Joined: 17 January 2006, 19:59 PM
Location: Cape Coral

Post by GTBecker »

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.
Tom
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

GTBecker wrote:[C]an ZXCmdMode, instead, hit the watchdog often in its control loop?
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.
- Don Kinzer
Post Reply