Skip to content

assertion using nRF5 power clock with BLE and nRF5 temp sensor #12114

@dhananjaygj

Description

@dhananjaygj

Describe the bug
When nRF5 temperature sensor is used during BLE communication, assertion is hit in temp_nrf5_sample_fetch() with -EBUSY error (temp_nrf5.c line 54). Assertion is hit during clock_control_off() since both BLE controller and nRF Temperature uses the same nRF power clock.

To Reproduce
Steps to reproduce the behavior:

  1. Create sample BLE peripheral application with nRF temperature sensor.
  2. Poll the temperature sensor every 2 seconds.
  3. Connect the sample BLE application with any peer
  4. At some point assertion is hit as explained above.

Expected behavior
Assertion should not occur or if it occurs API documentation can give more information

Impact
Even if this issue is minor this affects just the Debug build of our application and release build works fine. Hopefully there is no problem using BLE along with nRF temperature sensor in parallel.

Environment (please complete the following information):

  • Zephyr
  • nRF52840 board

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugplatform: nRFNordic nRFxpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions