Skip to main content
Nikita91
Lead II
April 29, 2020
Solved

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

  • April 29, 2020
  • 2 replies
  • 817 views

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 ?

This topic has been closed for replies.
Best answer by waclawek.jan

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

2 replies

waclawek.jan
waclawek.janBest answer
Super User
April 29, 2020

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
Nikita91Author
Lead II
April 30, 2020

Thank you so much.

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

One more #ifdef in the code...