Skip to content

[nrf fromlist] manifest: update hal_nordic to have SAADC samples aligned to 3.12 API #2974

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

nika-nordic
Copy link
Contributor

@nika-nordic nika-nordic commented Jun 23, 2025

NRFX_SAADC_SAMPLE_GET() macro takes two arguments now instead of three.

Upstream PR #: 92020

Link: zephyrproject-rtos/zephyr#92020

@nika-nordic nika-nordic changed the title [nrf fromlist] manifest: update hal_nordic to have SAADC samples alig… [nrf fromlist] manifest: update hal_nordic to have SAADC samples aligned to 3.12 API Jun 23, 2025
Copy link

github-actions bot commented Jun 23, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_nordic zephyrproject-rtos/hal_nordic@71308dc zephyrproject-rtos/hal_nordic#304 zephyrproject-rtos/hal_nordic#304/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

anangl and others added 5 commits June 23, 2025 14:10
For a long time (since version 3.3.0) nrfx contained an incorrectly
defined symbol NRF_SAADC_8BIT_SAMPLE_WIDTH that was set to 8 for nRF54L
and nRF54H Series SoCs, which was probably only true for very early
engineering revisions of those. Based on this, the adc_nrfx_saadc driver
was incorrectly writing consecutive 8-bit samples in supplied buffers,
cutting off the highest 8 bits of the results. And for sequences with
multiple channels, it was even causing that the results written as
16-bit words by hardware were partially overwritten in next iteration.

In nrfx 3.12.0 (see commit f46798f)
this was finally corrected - the symbol is now deprecated and it is
always set to 16. This commit is a follow-up to the above and removes
parts of adc_nrfx_saadc that now became dead code to prevent further
confusion regarding 8-bit sampling.

Signed-off-by: Andrzej Głąbek <[email protected]>
(cherry picked from commit 616ec7522ccee368b1f6c5c1d27ad54a999279fe)
…3.12

Update NRFX_CONFIG_API_VER_MINOR to 12, to be compatible with
latest SAADC driver changes.

Signed-off-by: Jakub Zymelka <[email protected]>
(cherry picked from commit be8c61ab809faa793609cabe2201edd38c2c77a4)
SHIM Nordic modification for the ADC driver controlling the SAADC
peripheral. Replaced HAL based implementation in favor of nrfx driver.

As a next step, it is planned to implement a feature that will allow
the peripheral SAADC timer to be used for sampling, and for this it is
necessary to use the nrfx driver in this SHIM.
This will allow more accurate and faster sampling than the kernel
mechanism currently provides.

Signed-off-by: Jakub Zymelka <[email protected]>
(cherry picked from commit f3d250742377ac24af0bc4bf78dd61afaefc2479)
…n on nRF54x

Add sample variant to run code in 8-bit resolution on nRF54x series.

Signed-off-by: Jakub Zymelka <[email protected]>
(cherry picked from commit 7c14d7e6c672f20239cb3fc575874506cb18d33a)
…ned to 3.12 API

NRFX_SAADC_SAMPLE_GET() macro takes two arguments now
instead of three.

Upstream PR #: 92020

Signed-off-by: Nikodem Kastelik <[email protected]>
@nika-nordic nika-nordic force-pushed the fix_saadc_nrfx_samples_sdkzephyr branch from f2d32aa to addc269 Compare June 23, 2025 12:13
Copy link

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

Successfully merging this pull request may close these issues.

4 participants