Guru Meditation Error with pin setWatch

Posted on
  • I have error after press the button

     pinMode(D35, 'input_pulldown');
      setWatch(function(e) {
        console.log('bttn pressed');
      }, D35, { repeat: true, edge: 'rising' });
      
    

    with D34 also this same error, D15 work

    This work fine, but I don want to use setInterval

    setInterval(function() {
      console.log( digitalRead(D34));
    }, 100);
    

    Error
    Guru Meditation Error: Core 0 panic'ed (LoadStoreAlignment). Exception was unhandled.
    Core 0 register dump:
    PC : 0x40096a27 PS : 0x00060f30 A0 : 0x800967df A1 : 0x3ffdcf20
    A2 : 0x4009b1ff A3 : 0x00000000 A4 : 0x00060423 A5 : 0x00000001
    A6 : 0x0006bd0e A7 : 0x00000000 A8 : 0x00000000 A9 : 0x00000000
    A10 : 0x00000000 A11 : 0x00000000 A12 : 0x00000024 A13 : 0x6bd00000
    A14 : 0xf4240000 A15 : 0x00000008 SAR : 0x0000001c EXCCAUSE: 0x00000009
    EXCVADDR: 0x4009b1ff LBEG : 0x4009b258 LEND : 0x4009b286 LCOUNT : 0xffffffff
    Backtrace: 0x40096a27:0x3ffdcf20

  • ESP32 uses registers for GPIO.
    Pin 0 to 31 use first register, pin 32 to ... second one.
    There are some differences between both, looks like second register is limited somewhere.

  • I'm also seeing this error with pin 25

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

Guru Meditation Error with pin setWatch

Posted by Avatar for user125091 @user125091

Actions