Shop OBEX P1 Docs P2 Docs Learn Events
Code For Reset? — Parallax Forums

Code For Reset?

KomaruKomaru Posts: 10
edited 2009-09-26 03:37 in Propeller 1
I'll keep this short-
I was just wondering if there was any sort of code that I could type into the Propeller IDE that would force the HYDRA to reset.
If you know of anything I could do, please let me know!

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-09-25 03:27
    The identify menu command will force the Hydra to reset without changing the current program. Downloading a program to either RAM or EEPROM will also cause a reset.
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2009-09-25 04:21
    Komaru,

    Do you want something like the SPIN equivalent of the REBOOT command?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • KomaruKomaru Posts: 10
    edited 2009-09-25 23:02
    At Beau Schwabe:
    Ah, yes, that would be what I'm looking for, if you could provide that, that would be great.
  • AntoineDoinelAntoineDoinel Posts: 312
    edited 2009-09-25 23:40
    hi

    have a look at the code attached, it's·my·mod of comboKeyboard.spin that will reset when hitting ctrl+alt+del.

    can't remember who·hinted this technique for reset in an old thread... thanks to him anyway.

    bye
    Alessandro
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2009-09-26 00:41
    Komaru,

    From the IDE itself there is not a command to reset the Propeller, however if you toggle the DTR pin from any PC program capable of toggling the DTR pin, you can cause a reset to the Propeller.

    One program example that can do this is the Parallax Serial Terminal.

    Short of that if you want to do it from the Propeller itself, the SPIN "REBOOT" command should work.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • BradCBradC Posts: 2,601
    edited 2009-09-26 02:04
    Beau,

    As Mike mentioned above, simply doing an "F7 Identify Propeller" is a quick and easy way to reset the prop in the IDE.

    I use it all the time when I've botched a calculation and my guitar amp starts spewing high volume noise. F7 is the emergency shut-up key [noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    lt's not particularly silly, is it?
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2009-09-26 03:37
    BradC,

    So it does. Hmmm, I guess I just don't use F7 that often. I stand corrected.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
Sign In or Register to comment.