Reset Hydra from code?
Keebler
Posts: 58
What's the simplest way to reboot the Hydra from code?·· I'd like to add an option in HAM to reboot after upload.
I see something about the CLK register (bit 7), I also see something about restarting Cog 0.·
Does anyone have a code snippet to share ?· [noparse]:)[/noparse]
Thanks,
Rich
I see something about the CLK register (bit 7), I also see something about restarting Cog 0.·
Does anyone have a code snippet to share ?· [noparse]:)[/noparse]
Thanks,
Rich
Comments
From Spin:
REBOOT
From ASM (I would think but haven't tried):
mov CLK #$80
But do you mean from the PC end of the USB connection?
Cool, thanks. I just wanted to see what was the most reliable mechanism and which method people are using most in practice.
That being said, it would be good to know how to do it over USB if it's even possible.
Rich
I tried toggling the DTR with Jasper's Booter API but that didn't cause the Hydra to reboot. Isn't that more of an indicator to the propellor that programming is starting?
Thanks,
Rich
Andre'
I modified his function and it works fine now.
Now, I·have H.A.M.·auto rebooting after uploading to the·Hydra. ·[noparse]:)[/noparse]
Rich