Skip to content

InterruptIn failing to initialize #11515

@farrenv

Description

@farrenv

Description

TARGET: EP_AGORA
MCU: NRF52840
MBED-OS version 5.12.4

I am attempting to use the InterruptIn function to monitor the accelerometer interrupt pin on the Agora target. The InterruptIn function fails to initialize.
Initialization:
InterruptIn ICM20602_interrupt(PIN_NAME_INT_ACCEL);
Serial output:
++ MbedOS Error Info ++
Error Status: 0x80010133 Code: 307 Module: 1
Error Message: Mutex: 0x20004E60, Not allowed in ISR context
Location: 0x18F5B
Error Value: 0x20004E60
Current Thread: main Id: 0x20004230 Entry: 0x18CFF StackSize: 0x1000 StackMem: 0x20004EB8 SP: 0x2003FD80
For more info, visit: https://mbed.com/s/error?error=0x80010133&tgt=EP_AGORA
-- MbedOS Error Info --

The initialization fails in this function:
image

Issue request type

[ ] Question
[ ] Enhancement
[ x] Bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions