Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InterruptIn failing to initialize #11515

Closed
farrenv opened this issue Sep 18, 2019 · 5 comments
Closed

InterruptIn failing to initialize #11515

farrenv opened this issue Sep 18, 2019 · 5 comments

Comments

@farrenv
Copy link
Contributor

farrenv commented Sep 18, 2019

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
@farrenv
Copy link
Contributor Author

farrenv commented Sep 18, 2019

@loverdeg-ep @trowbridgec

@trowbridgec
Copy link

@maclobdell @ARMmbed/team-embeddedplanet

@ciarmcom
Copy link
Member

Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-1781

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 19, 2019

I am missing how to reproduce - why it is failing ?

Looks like the pin is in invalid state, is our gpio_init for this target not initializing pin properly? What's the stack trace?

@farrenv
Copy link
Contributor Author

farrenv commented Oct 4, 2019

@trowbridgec discovered a #define that limits any nordic target from using more than one Interruptin initialization with SDK 15.0 #11622

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants