Cant reset/erase

Posted on
  • Good day.

    I saved some code, then i want reset to blank state.

    check
    check
    check
    check
    check
    check
    >reset()
    =undefined
    Uncaught Error: Expecting a function to call, got Uint8Array
     at line 1 col 1
    reset()
     ^
    check
    check
    check
    

    And nothing to reset ... dump of saved code

    >dump()
    var poll = new Uint8Array([252, 5]);
    var reset = new Uint8Array([252, 5]);
    setInterval(function () {
        print('check');
        if (Serial4.available()) {
          print(Serial4.read());
        }
      }, 500);
    Serial4.setup(9600, {"parity":"even","bytesize":8,"stopbits"­:1});
    pinMode(A10,"input_pullup");
    pinMode(C11,"input_pullup");
    

    p.s. reset button did not help too

  • when i try upload new code same problem ...

  • You probably figured this out, but it's because you overwrote the reset function. I guess you saved the code, so it's loaded automatically at startup?

    To get around it, see what it says in the troubleshooting page under Espruino stopped working after I typed save(). By pressing buttons in the right way, you can stop Espruino automatically loading the code that you saved.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Cant reset/erase

Posted by Avatar for Unknown @Unknown

Actions