Skip to main content
Lead
Jun 13, 2021 3:08 PM UTC
Solved

BUG: Wrong indexing in SDADC when using Injection Mode

Hi!

I just want to tell you ST-developers that I have found something that don't looks correct.

Wrong indexing in SDADC. Have a look. STM32CubeIDE 1.6.1

0693W00000BaqImQAJ.png

This topic has been closed for replies.
TDK
TDKBest answer
Jun 13, 2021 8:06 PM UTC

Temporarily reduce the "number of channels to be converted" by 1, change the order to what you want, then change it back to add the last channel.

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

6 replies

TDK
Jun 13, 2021 6:29 PM UTC

You've circled a bunch of numbers, but what is wrong about it? What are you expecting instead?

"If you feel a post has answered your question, please click ""Accept as Solution""."
DMårtAuthor
Lead
Jun 13, 2021 7:46 PM UTC

I'm expecting 0,1,2,3,4,5,6,7,8. Not Randomly indexed.

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-ComputerSTM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
TDK
Jun 13, 2021 7:57 PM UTC

The "channel configuration" is the order in which they're converted and is in order (1, 2, 3).

You can change the "channel" to whatever order you want.

0693W00000BaqgAQAR.png 

"If you feel a post has answered your question, please click ""Accept as Solution""."
DMårtAuthor
Lead
Jun 13, 2021 7:58 PM UTC

Sorry. But I can't do that in my STM32CubeIDE 1.6.0.

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-ComputerSTM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
TDK
TDKBest answer
Jun 13, 2021 8:06 PM UTC

Temporarily reduce the "number of channels to be converted" by 1, change the order to what you want, then change it back to add the last channel.

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