arduino / arduino/ArduinoCore-arc32

BLE interrupt during motion sensor read causes crash/hang

Open
#556 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
330
Forks
281
PR merge metrics
No merged PRs in 30d

Description

From what I can tell when BLE receives a message and sends an interrupt during a call to the motion sensor read it causes the sketch to crash/hang. When interrupts are disabled around the motion sensor read it works without a problem.

This is in reference to the post I made on the Arduino forums. It contains the code to reproduce the issue.
https://forum.arduino.cc/index.php?topic=481379.0

If you need the code/apk for for the Android app that I was using let me know and I will post it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the reproducing sketch in the linked Arduino forum post and inspect the ArduinoCore-arc32 interrupt and motion-sensor-read entry points it exercises. Reproduce the crash or hang while BLE receives a message during a sensor read; done means that sequence completes reliably without requiring interrupts to be disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.