EncoderButton
EncoderButton copied to clipboard
Crash at boot when using the examples
Hello,
I am using a lilygo t7 v1.5 board (esp32-wrover-b). I am trying to use a button with an encoder+button, but the examples of EncoderButton and my own code both are crashing the lilygo board at startup.
ELF file SHA256: 0000000000000000
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13864
load:0x40080400,len:3608
entry 0x400805f0
E (120) gpio: esp_ipc_call_blocking failed (0x103)
E (121) gpio: gpio_install_isr_service(449): GPIO isr service already installed
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x400ef14f PS : 0x00060933 A0 : 0x800d3beb A1 : 0x3ffe3af0
A2 : 0x00000000 A3 : 0x3ffc1988 A4 : 0x3ffc1988 A5 : 0x00060923
A6 : 0x00060920 A7 : 0x00000001 A8 : 0x800d37a8 A9 : 0x3ffe3ab0
A10 : 0x3ffbdba4 A11 : 0x00000008 A12 : 0x00000003 A13 : 0x3ffe3af0
A14 : 0x007bdb90 A15 : 0x003fffff SAR : 0x0000001d EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x400862c1 LEND : 0x400862d1 LCOUNT : 0xfffffff7
Backtrace:0x400ef14c:0x3ffe3af00x400d3be8:0x3ffe3b10 0x400d1d88:0x3ffe3b40 0x400d1e09:0x3ffe3b70 0x400d162d:0x3ffe3b90 0x400d1769:0x3ffe3bb0 0x400d17b6:0x3ffe3bd0 0x400d129b:0x3ffe3bf0 0x400da133:0x3ffe3c10 0x40082bdd:0x3ffe3c40 0x400792ca:0x3ffe3c90 |<-CORRUPTED
The board is not currently connected to anything. It seems to come from the button part of the library and not the Encoder part of the library. I am also able to run the basic example from the Bounce2 library without issue.
Thank you
Hi
This appears to be a problem with interrupts and may be related to this: https://github.com/espressif/esp-idf/issues/7594
The EncoderButton does not directly use interrupts - that is done by Paul Stoffregen's Encoder library - does that work on its own?
Hi, I tried the examples using the encoder and there is also the same problem. I tried to load the basic example from the Encoder library and, like for the bounce library examples, there is no problem.
@tgrauss I had this same issue. I know this is a bit old now, but thought it might be helpful.
I have been using some code with EncoderButton for some while, however wanted to move to ESP32 to use ESP32 NOW. I had a look around for ESP32 encoder libraries, but couldn't find one quite like this. For me, the way EncoderButtons does things is cool.
So, I ended up porting a version of an encoder library to a new library called Encoder_esp32. This has allowed me to use EncoderButton with an ESP32.
My fork is here: https://github.com/Cobalt6700/EncoderButton
@Stutchbury Thanks for the library!
Hi, Thank you, this will be useful.
De: "Cobalt6700" @.> À: "Stutchbury/EncoderButton" @.> Cc: "tgrauss" @.>, "Mention" @.> Envoyé: Vendredi 29 Septembre 2023 14:54:54 Objet: Re: [Stutchbury/EncoderButton] Crash at boot when using the examples (Issue #8)
[ https://github.com/tgrauss | @tgrauss ] I had this same issue. I know this is a bit old now, but thought it might be helpful.
I have been using some code with EncoderButton for some while, however wanted to move to ESP32 to use ESP32 NOW. I had a look around for ESP32 encoder libraries, but couldn't find one quite like this. For me, the way EncoderButtons does things is cool.
So, I ended up porting a version of an encoder library to a new library called Encoder_esp32. This has allowed me to use EncoderButton with an ESP32.
My fork is here: [ https://github.com/Cobalt6700/EncoderButton | https://github.com/Cobalt6700/EncoderButton ]
[ https://github.com/Stutchbury | @Stutchbury ] Thanks for the library!
— Reply to this email directly, [ https://github.com/Stutchbury/EncoderButton/issues/8#issuecomment-1740853344 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AXX4VGSJ2ENSIQ3J4PYLQFDX43AJ5ANCNFSM6AAAAAARUCTPGI | unsubscribe ] . You are receiving this because you were mentioned. Message ID: <Stutchbury/EncoderButton/issues/8/ [ callto:1740853344 | 1740853344 ] @ github . com>