cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: Wrong indexing in SDADC when using Injection Mode

DMårt
Lead

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

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer
1 ACCEPTED SOLUTION

Accepted Solutions

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".

View solution in original post

6 REPLIES 6
TDK
Guru

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".

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-Computer
TDK
Guru

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".

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-Computer

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".

Thank you. Now it's working. It seems that CubeMX randomly place the channels at the beginning.

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer