Skip to main content
Harish1
Associate III
Jul 24, 2021 1:13 PM UTC
Solved

Out of range channel written in ADC seq register for STM32L475

Hi,

What happens if I write them out of range channel numbers in the ADC sequence register.

For STM32L475, the channel range is 0 -18 but I wrote the channel number 19. While debugging, from debug window I found that the seq. register accepting number 19th.

But I am not getting what would happen if I do like this?

Can anybody help here?

This topic has been closed for replies.
TDK
TDKBest answer
Jul 24, 2021 6:59 PM UTC

The RM doesn't guarantee anything in this case. Using invalid settings leads to undefined behavior.

"If you feel a post has answered your question, please click ""Accept as Solution""."

1 reply

TDK
TDKBest answer
Jul 24, 2021 6:59 PM UTC

The RM doesn't guarantee anything in this case. Using invalid settings leads to undefined behavior.

"If you feel a post has answered your question, please click ""Accept as Solution""."