Skip to content

ESP always crashing when attach an Interrupt. (AIV-594) #90

@kami83

Description

@kami83

Hi,

if i use the standard CameraWebserver Example and put a normal:
pinMode(BRDButton, INPUT_PULLUP);
attachInterrupt(BRDButton, resetModule, FALLING);

in the Setup-Code. I always get a crash when running the ESP32:

15:35:15.940 -> WiFi connected
15:35:16.075 -> Starting web server on port: '80'
15:35:16.075 -> Starting stream server on port: '81'
15:35:16.075 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
15:35:16.075 -> Core 1 register dump:
15:35:16.075 -> PC : 0x401589c7 PS : 0x00060d30 A0 : 0x800d41d0 A1 : 0x3ffb1ea0
15:35:16.075 -> A2 : 0x00000000 A3 : 0x00000000 A4 : 0x40081180 A5 : 0x00000000
15:35:16.075 -> A6 : 0x3ffc12e4 A7 : 0x00000000 A8 : 0x800ded8c A9 : 0x3ffb1e50
15:35:16.075 -> A10 : 0x00000105 A11 : 0x0000040e A12 : 0x00000000 A13 : 0x00000000
15:35:16.075 -> A14 : 0x40081180 A15 : 0x00000000 SAR : 0x00000014 EXCCAUSE: 0x0000001c
15:35:16.075 -> EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
15:35:16.075 ->
15:35:16.075 -> Backtrace: 0x401589c7:0x3ffb1ea0 0x400d41cd:0x3ffb1ec0 0x400d4235:0x3ffb1ef0 0x400d330e:0x3ffb1f10 0x400d4d33:0x3ffb1fb0 0x40091e41:0x3ffb1fd0
15:35:16.075 ->
15:35:16.075 -> Rebooting...
15:35:16.075 -> ets Jun 8 2016 00:22:57
15:35:16.075 ->
15:35:16.075 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
15:35:16.075 -> configsip: 0, SPIWP:0xee
15:35:16.075 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
15:35:16.075 -> mode:DIO, clock div:1
15:35:16.075 -> load:0x3fff0018,len:4
15:35:16.075 -> load:0x3fff001c,len:1100
15:35:16.075 -> load:0x40078000,len:10088
15:35:16.075 -> load:0x40080400,len:6380
15:35:16.075 -> entry 0x400806a4

Can someone help me? I would like to react for a button press.

Thanks a lot.

Cu kami

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions