Skip to content

boards/nucleo-l432: enable ADC#21546

Merged
benpicco merged 3 commits intoRIOT-OS:masterfrom
krzysztof-cabaj:nucleo-l432-ADC
Jun 11, 2025
Merged

boards/nucleo-l432: enable ADC#21546
benpicco merged 3 commits intoRIOT-OS:masterfrom
krzysztof-cabaj:nucleo-l432-ADC

Conversation

@krzysztof-cabaj
Copy link
Copy Markdown
Contributor

Contribution description

This PR adds ADC configuration to the nucleo-l432kc board.

Testing procedure

Flash the board using tests/periph/adc program. Check if measured values changes when A0-A5 pins are
connected to the 3,3V, GND or to the potentiometer.

You should see output similar to that (A0 connected to GND).

main(): This is RIOT! (Version: 2024.04-devel-2895-gc6badb-nucleo-l432-ADC)

RIOT ADC peripheral driver test

This test will sample all available ADC lines once every 100ms with
6 to 16-bit resolution and print the sampled results to STDOUT.
Not all MCUs support all resolutions, unsupported resolutions
are printed as -1.

Successfully initialized ADC_LINE(0)
Successfully initialized ADC_LINE(1)
Successfully initialized ADC_LINE(2)
Successfully initialized ADC_LINE(3)
Successfully initialized ADC_LINE(4)
ADC_LINE(0):  0   0    0    0    -1    -1
ADC_LINE(1): 46 179  700 2743    -1    -1
ADC_LINE(2): 40 147  564 2182    -1    -1
ADC_LINE(3): 22  89  362 1453    -1    -1
ADC_LINE(4): 46 178  692 2700    -1    -1

ADC_LINE(0):  0   0    0    0    -1    -1
ADC_LINE(1): 44 173  676 2652    -1    -1
ADC_LINE(2): 39 146  559 2161    -1    -1
ADC_LINE(3): 23  90  362 1453    -1    -1
ADC_LINE(4): 46 178  693 2707    -1    -1

Issues/PRs references

None

@krzysztof-cabaj krzysztof-cabaj requested a review from aabadie as a code owner June 10, 2025 14:12
@github-actions github-actions bot added the Area: boards Area: Board ports label Jun 10, 2025
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jun 10, 2025
@riot-ci
Copy link
Copy Markdown

riot-ci commented Jun 10, 2025

Murdock results

✔️ PASSED

ac4b20b boards/nucleo-l432kc: add Doxygen doc

Success Failures Total Runtime
570 0 570 02m:24s

Artifacts

@crasbe crasbe added the Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation label Jun 10, 2025
@crasbe
Copy link
Copy Markdown
Contributor

crasbe commented Jun 11, 2025

Why are A4 and A5 not defined? Pin collision?

@krzysztof-cabaj
Copy link
Copy Markdown
Contributor Author

Why are A4 and A5 not defined? Pin collision?

In default board configuration they are not connected - for more details see table 8 from board manual.

@benpicco benpicco added this pull request to the merge queue Jun 11, 2025
Merged via the queue into RIOT-OS:master with commit c049ff1 Jun 11, 2025
25 checks passed
@Teufelchen1 Teufelchen1 added this to the Release 2025.07 milestone Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: boards Area: Board ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants