Skip to content

Exception when two attachInterruptArg called, one after another #7162

@vovagorodok

Description

@vovagorodok

Board

ESP32 Dev

Device Description

DevKitC

Hardware Configuration

N/A

Version

v2.0.3

IDE Name

PlatformIO

Operating System

Ubuntu

Flash frequency

default

PSRAM enabled

no

Upload speed

default

Description

For:

attachInterruptArg(digitalPinToInterrupt(33), methodPtr1, objectPtr1, FALLING);
attachInterruptArg(digitalPinToInterrupt(32), methodPtr2, objectPtr2, FALLING);

I have following exception:

...
E (252) gpio: esp_ipc_call_blocking failed (0x103)
[     3][E][esp32-hal-gpio.c:156] __attachInterruptFunctionalArg(): GPIO ISR Service Failed To Start
E (255) 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:
...

When I'm trying to comment one line, then it works correctly. Any reason why I can't register interrupt method for each pin?

Sketch

N/A

Debug Message

N/A

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

Area: Peripherals APIRelates to peripheral's APIs.Status: SolvedThe issue has been resolved and requires no further action.

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions