Skip to main content
qwer.asdf
Senior
Nov 6, 2014 12:34 PM UTC
Question

STM32CubeMX ADC Regular Conversion Mode Bug

Posted on November 06, 2014 at 13:34

When selecting the number of channels in the ADC configuration window the automatically generated channel fields are off-by-one, e.g. select 4 channels, there are 3 fields generated, here is the demonstration:

0690X00000605fIQAQ.png

Thank you.

#stm32cubemx
This topic has been closed for replies.

3 replies

stm32cube-t
ST Employee
Nov 20, 2014 7:38 AM UTC
Posted on November 20, 2014 at 08:38

Dear user,

Can you please provide the MX version used, MCU selected, and the .ioc file (MX configuration file) so that we can reproduce your issue.

Thanks

qwer.asdf
qwer.asdfAuthor
Senior
Nov 20, 2014 8:56 AM UTC
Posted on November 20, 2014 at 09:56

I am attaching the project file, it was created with CubeMX 4.3, the bug is visible in CubeMX 4.5. Thanks.

________________

Attachments :

adc-bug.ioc : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzQz&d=%2Fa%2F0X0000000bLt%2F1gQ0XSJDG0RVLQCRVqbOZTGw1Z44.UddIokkoDBmiEk&asPdf=false
stm32cube-t
ST Employee
Jan 9, 2015 12:11 PM UTC
Posted on January 09, 2015 at 13:11

Hello,

The problem is solved in MX 4.5.

However, you will have to reset the ADC configuration (disable the IN channels from the pinout view, save your project and configure again the ADC). Now the 4 ranks appear when you select 4 for the number of conversions. 

Best regards