cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX Error Init ADC STM32F1xx

Alex Desh
Associate
Posted on July 09, 2018 at 12:32

STM32Cube V1.0 / Version 4.0

It does this:

LL_ADC_REG_SetSequencerRanks(ADC1,

1

, LL_ADC_CHANNEL_TEMPSENSOR);

Should be

:

LL_ADC_REG_SetSequencerRanks(ADC1,

LL_ADC_REG_RANK_1

, LL_ADC_CHANNEL_TEMPSENSOR);

Fix:

Insert in 'ADC-STM32F1xx_DefMapping.xml'

the following lines at the end of the file before </HALvsLL>:

<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_1' Type='RefParameter' Value='1'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_2' Type='RefParameter' Value='2'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_3' Type='RefParameter' Value='3'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_4' Type='RefParameter' Value='4'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_5' Type='RefParameter' Value='5'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_6' Type='RefParameter' Value='6'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_7' Type='RefParameter' Value='7'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_8' Type='RefParameter' Value='8'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_9' Type='RefParameter' Value='9'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_10' Type='RefParameter' Value='10'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_11' Type='RefParameter' Value='11'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_12' Type='RefParameter' Value='12'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_13' Type='RefParameter' Value='13'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_14' Type='RefParameter' Value='14'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_15' Type='RefParameter' Value='15'/>
<Item Name='Rank' NewName='Rank' NewValue='LL_ADC_REG_RANK_16' Type='RefParameter' Value='16'/>
</HALvsLL>
�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?

'ADC-STM32F1xx_DefMapping.xml'

is located:

'Program Files (x86)\STMicroelectronics\STM32Cube\STM32CubeMX\db\mcu\config\llConfig\'.

#mx_adcx_init #ll_adc_reg_rank_x #ll_adc_reg_setsequencerranks #adc #stm32f1xx
1 REPLY 1
Posted on July 10, 2018 at 14:05

Hi 

tutralex

 ,

Thanks for your feedback.

This issue will be fixed next release.

Please do not hesitate to contact me for further details.

Thanks and regards,

Mohamed