cancel
Showing results for 
Search instead for 
Did you mean: 

Bit defines missing in stm32l4r5xx.h (and others) for ADC_CCR register ?

Nikita91
Lead II

In the ref man RM0432 Rev 6 the ADC_CCR have used bits in the lower half.

In the file stm32l4r5xx.h from stm32cube_fw_l4_v1151 these bits are not defined.

They are defined in the files of MCU of the same familly: stm32l4p5xx.h

Have I damaged my files?

Are the ADCs different between L4R/L4S and L4P ?

1 ACCEPTED SOLUTION

Accepted Solutions

The bits in lower part of ADC_CCR are all related to dual mode.

As table Main ADC features in ADC implementation subchapter says, ADC2 and thus Dual mode is Available only on STM32L4Q5xx and STM32L4P5xx.

That's why those bits are not implemented in 'L4Rx/L4Sx.

JW

View solution in original post

2 REPLIES 2

The bits in lower part of ADC_CCR are all related to dual mode.

As table Main ADC features in ADC implementation subchapter says, ADC2 and thus Dual mode is Available only on STM32L4Q5xx and STM32L4P5xx.

That's why those bits are not implemented in 'L4Rx/L4Sx.

JW

Nikita91
Lead II

Thank you so much.

As I work on the 2 families, this detail escaped me.

One more #ifdef in the code...