Skip to content

boards/nucleo-c0XX: fix invalid ADC buff size#18716

Merged
xiaoxiang781216 merged 1 commit intoapache:masterfrom
raiden00pl:stm32c0_adc
Apr 12, 2026
Merged

boards/nucleo-c0XX: fix invalid ADC buff size#18716
xiaoxiang781216 merged 1 commit intoapache:masterfrom
raiden00pl:stm32c0_adc

Conversation

@raiden00pl
Copy link
Copy Markdown
Member

Summary

boards/nucleo-c0XX: fix invalid ADC buff size.

adc max samples must match boards files:

/* Configuration ************************************************************/
/* The number of ADC channels in the conversion list */
#define ADC1_NCHANNELS 2

/* Configuration ************************************************************/
/* The number of ADC channels in the conversion list */
#define ADC1_NCHANNELS 6

Impact

fix buffer overflow during ADC initialization

Testing

nucleo-c071rb with jumbo config

@github-actions github-actions bot added Size: XS The size of the change in this PR is very small Board: arm labels Apr 12, 2026
fix invalid ADC buff size that cause buffer overflow

Signed-off-by: raiden00pl <raiden00@railab.me>
@xiaoxiang781216 xiaoxiang781216 merged commit 1753efa into apache:master Apr 12, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Board: arm Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants