René's URL Explorer Experiment


Title: [Bug]: [BLE_HeartRateFreeRTOS] Temperature-based radio calibration silently fails after the first measurement: critical section makes ADCCTRL mutex return osErrorISR · Issue #11 · STMicroelectronics/STM32CubeWBA · GitHub

Open Graph Title: [Bug]: [BLE_HeartRateFreeRTOS] Temperature-based radio calibration silently fails after the first measurement: critical section makes ADCCTRL mutex return osErrorISR · Issue #11 · STMicroelectronics/STM32CubeWBA

X Title: [Bug]: [BLE_HeartRateFreeRTOS] Temperature-based radio calibration silently fails after the first measurement: critical section makes ADCCTRL mutex return osErrorISR · Issue #11 · STMicroelectronics/STM32CubeWBA

Description: Bug Summary With USE_TEMPERATURE_BASED_RADIO_CALIBRATION enabled, the link-layer temperature measurement succeeds exactly once (during init, before the scheduler runs) and silently fails on every subsequent request. The radio therefore k...

Open Graph Description: Bug Summary With USE_TEMPERATURE_BASED_RADIO_CALIBRATION enabled, the link-layer temperature measurement succeeds exactly once (during init, before the scheduler runs) and silently fails on every s...

X Description: Bug Summary With USE_TEMPERATURE_BASED_RADIO_CALIBRATION enabled, the link-layer temperature measurement succeeds exactly once (during init, before the scheduler runs) and silently fails on every s...

Opengraph URL: https://github.com/STMicroelectronics/STM32CubeWBA/issues/11

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: [BLE_HeartRateFreeRTOS] Temperature-based radio calibration silently fails after the first measurement: critical section makes ADCCTRL mutex return osErrorISR","articleBody":"### Bug Summary\n\nWith `USE_TEMPERATURE_BASED_RADIO_CALIBRATION` enabled, the link-layer temperature measurement succeeds exactly once (during init, before the scheduler runs) and silently fails on every subsequent request. The radio therefore keeps using the boot-time temperature for calibration.\n\n### Detailed Description\n\n- `ll_intf_cmn_set_temperature_value()` is called only once, at init.\n- Afterwards the path `ll_sys_request_temperature()` -> semaphore release ->\n  `TempMeasureLL_Task` -> `TEMPMEAS_RequestTemperatureMeasurement()` runs, but\n  `ADCCTRL_RequestTemperature()` returns ADCCTRL_NOK (1) and the temperature\n  value is never updated. No error is reported anywhere: return codes are\n  discarded and BLE keeps working normally.\n\n### Expected Behavior\n\nRemove the outer `UTILS_ENTER_LIMITED_CRITICAL_SECTION()/EXIT` pair in `TEMPMEAS_RequestTemperatureMeasurement()`. The RCC-sensitive sequences it was protecting are already protected by their own `UTILS_ENTER_CRITICAL_SECTION()` inside `AdcActivate()`/`AdcDeactivate()`/`ADCCTRL_RequestIpState()` (Projects/Common/WPAN/Modules/adc_ctrl.c), and cross-client serialization is provided by the ADCCTRL mutex itself.  (Alternative: make `ADCCTRL_MutexTake()` aware of the masked state, but an RTOS mutex cannot be acquired safely while BASEPRI/PRIMASK masking is active, so removing the outer section is the cleaner fix.)\n\n### Actual Behavior\n\n`TEMPMEAS_RequestTemperatureMeasurement()` in `Projects/Common/WPAN/Modules/temp_measurement.c` wraps the ADCCTRL calls in:      UTILS_ENTER_LIMITED_CRITICAL_SECTION(RCC_INTR_PRIO\u003c\u003c4);   /* sets BASEPRI */  `ADCCTRL_MutexTake()` in `Projects/.../Core/Src/app_entry.c` calls `osMutexAcquire(adcCtrlMutex, osWaitForever)` whenever the scheduler is running. The CMSIS-RTOS2 FreeRTOS adapter (cmsis_os2.c) treats the \"interrupts masked\" state as ISR context (`IRQ_Context()` -> `IS_IRQ_MASKED()`, PRIMASK or BASEPRI set), so `osMutexAcquire()` returns `osErrorISR` -> `ADCCTRL_MutexTake()` returns `ADCCTRL_NOK` -> every `ADCCTRL_Request*()` that takes the mutex is rejected.  The first measurement works only because `ADCCTRL_MutexTake()` short-circuits to OK when `xTaskGetSchedulerState() != taskSCHEDULER_RUNNING`, i.e. during early init.  The ThreadX example variant (BLE_HeartRateThreadX) shares the same temp_measurement.c but is unaffected, because `tx_mutex_get()` does not reject calls made with interrupts masked - which likely explains how the shared module shipped broken for FreeRTOS.\n\n### Environment\n\n- STM32CubeWBA V1.9.0 - Example: Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_HeartRateFreeRTOS - Board/chip: NUCLEO-WBA65RI, STM32WBA65 - RTOS: FreeRTOS + CMSIS-RTOS2 (cmsis_os2.c adapter) - Config: USE_TEMPERATURE_BASED_RADIO_CALIBRATION = 1, ADCCTRL_USE_DYNAMIC_VREF = 1\n\n### Severity\n\nNone","author":{"url":"https://github.com/ARON6666666","@type":"Person","name":"ARON6666666"},"datePublished":"2026-11-19T02:55:56Z","url":"https://github.com/STMicroelectronics/STM32CubeWBA/issues/11"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:358a9571-cd65-1d20-2d88-2e987b721333
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id88DE:7F1CA:6B772:94147:6B05774B
html-safe-nonce9f2d9826d34ed5bb165c7bdeaafa1a6728c390461bffb9a153ae0ae2e6132caa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OERFOjdGMUNBOjZCNzcyOjk0MTQ3OjZCMDU3NzRCIiwidmlzaXRvcl9pZCI6IjI5ODcyNTMyMzA1MTU2MTU1NjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacee7f5c386dd04e804e2faa0eba8c785935f029346a31f82bfc7b25fc11d31d23
hovercard-subject-tagissue:6481340191
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/STMicroelectronics/STM32CubeWBA/11/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1bf160a56c6c66313d6ecd16667bf4339f81f0e13c8aee3f634f020c2db9aa1f/STMicroelectronics/STM32CubeWBA/issues/11
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1bf160a56c6c66313d6ecd16667bf4339f81f0e13c8aee3f634f020c2db9aa1f/STMicroelectronics/STM32CubeWBA/issues/11
og:image:altBug Summary With USE_TEMPERATURE_BASED_RADIO_CALIBRATION enabled, the link-layer temperature measurement succeeds exactly once (during init, before the scheduler runs) and silently fails on every s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameARON6666666
hostnamegithub.com
expected-hostnamegithub.com
None507b2d62524c0f595c35a2a2ee8a6ec54b119f245b3c59eaa070013b70ed1ada
turbo-cache-controlno-preview
go-importgithub.com/STMicroelectronics/STM32CubeWBA git https://github.com/STMicroelectronics/STM32CubeWBA.git
octolytics-dimension-user_id10744877
octolytics-dimension-user_loginSTMicroelectronics
octolytics-dimension-repository_id610889875
octolytics-dimension-repository_nwoSTMicroelectronics/STM32CubeWBA
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id610889875
octolytics-dimension-repository_network_root_nwoSTMicroelectronics/STM32CubeWBA
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee7a883ae3b439b8952652eaa7803e2587f30e339
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/STMicroelectronics/STM32CubeWBA/issues/11#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSTMicroelectronics%2FSTM32CubeWBA%2Fissues%2F11
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSTMicroelectronics%2FSTM32CubeWBA%2Fissues%2F11
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=STMicroelectronics%2FSTM32CubeWBA
Reloadhttps://github.com/STMicroelectronics/STM32CubeWBA/issues/11
Reloadhttps://github.com/STMicroelectronics/STM32CubeWBA/issues/11
Reloadhttps://github.com/STMicroelectronics/STM32CubeWBA/issues/11
STMicroelectronicshttps://github.com/STMicroelectronics
STM32CubeWBAhttps://github.com/STMicroelectronics/STM32CubeWBA
Codehttps://github.com/STMicroelectronics/STM32CubeWBA
Issues1 (1)https://github.com/STMicroelectronics/STM32CubeWBA/issues
Pull requests1 (1)https://github.com/STMicroelectronics/STM32CubeWBA/pulls
Actionshttps://github.com/STMicroelectronics/STM32CubeWBA/actions
Projectshttps://github.com/STMicroelectronics/STM32CubeWBA/projects
Security and qualityhttps://github.com/STMicroelectronics/STM32CubeWBA/security
Insightshttps://github.com/STMicroelectronics/STM32CubeWBA/insights
https://github.com/STMicroelectronics/STM32CubeWBA
New issuehttps://github.com/login?return_to=https://github.com/STMicroelectronics/STM32CubeWBA/issues/11
New issuehttps://github.com/login?return_to=https://github.com/STMicroelectronics/STM32CubeWBA/issues/11
Bughttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=type:"Bug"
[Bug]: [BLE_HeartRateFreeRTOS] Temperature-based radio calibration silently fails after the first measurement: critical section makes ADCCTRL mutex return osErrorISRhttps://github.com/STMicroelectronics/STM32CubeWBA/issues/11#top
https://github.com/KRASTM
blehttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22ble%22
bughttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22bug%22
internal bug trackerhttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22internal%20bug%20tracker%22
projectshttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22projects%22
wirelesshttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22wireless%22
https://github.com/ARON6666666
ARON6666666https://github.com/ARON6666666
on Nov 19, 2026https://github.com/STMicroelectronics/STM32CubeWBA/issues/11#issue-6481340191
ARON6666666https://github.com/ARON6666666
bughttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22bug%22
on Nov 19, 2026https://github.com/STMicroelectronics/STM32CubeWBA/issues/11#event-36604191158
ALABSTMhttps://github.com/ALABSTM
KRASTMhttps://github.com/KRASTM
on Nov 20, 2026https://github.com/STMicroelectronics/STM32CubeWBA/issues/11#event-36750582373
ALABSTMhttps://github.com/ALABSTM
projectshttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22projects%22
wirelesshttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22wireless%22
blehttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22ble%22
on Nov 20, 2026https://github.com/STMicroelectronics/STM32CubeWBA/issues/11#event-36750638410
ALABSTMhttps://github.com/ALABSTM
Bughttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=type:"Bug"
on Nov 20, 2026https://github.com/STMicroelectronics/STM32CubeWBA/issues/11#event-36750647365
ALABSTMhttps://github.com/ALABSTM
stm32cube-mcu-fw-dashboardhttps://github.com/orgs/STMicroelectronics/projects/11
on Nov 20, 2026https://github.com/STMicroelectronics/STM32CubeWBA/issues/11#event-36750659387
github-project-automationhttps://github.com/apps/github-project-automation
stm32cube-mcu-fw-dashboardhttps://github.com/orgs/STMicroelectronics/projects/11
on Nov 20, 2026https://github.com/STMicroelectronics/STM32CubeWBA/issues/11
https://github.com/KRASTM
KRASTMhttps://github.com/KRASTM
on Nov 24, 2026https://github.com/STMicroelectronics/STM32CubeWBA/issues/11#issuecomment-7129323676
KRASTMhttps://github.com/KRASTM
stm32cube-mcu-fw-dashboardhttps://github.com/orgs/STMicroelectronics/projects/11
on Nov 24, 2026https://github.com/STMicroelectronics/STM32CubeWBA/issues/11
KRASTMhttps://github.com/KRASTM
internal bug trackerhttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22internal%20bug%20tracker%22
on Nov 24, 2026https://github.com/STMicroelectronics/STM32CubeWBA/issues/11#event-37119074971
Sign up for freehttps://github.com/signup?return_to=https://github.com/STMicroelectronics/STM32CubeWBA/issues/11
Sign in to commenthttps://github.com/login?return_to=https://github.com/STMicroelectronics/STM32CubeWBA/issues/11
KRASTMhttps://github.com/KRASTM
blehttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22ble%22
bughttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22bug%22
internal bug trackerhttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22internal%20bug%20tracker%22
projectshttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22projects%22
wirelesshttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=state%3Aopen%20label%3A%22wireless%22
Bughttps://github.com/STMicroelectronics/STM32CubeWBA/issues?q=type:"Bug"
stm32cube-mcu-fw-dashboardhttps://github.com/orgs/STMicroelectronics/projects/11
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.