Skip to main content
Associate
February 11, 2026
Solved

STM32CubeMX 6.16.1 - STM32H7 ADC3 clock/prescaler migration issue

  • February 11, 2026
  • 1 reply
  • 639 views

I have an ST32CubeMX project for a STM32H7 mcu generated with STCubeMX 6.4 and using STM32Cube FW_H7 V1.9.1 where the project files are generated via cmake. Now I want to use STM32Cube FW_H7 V1.12.1, but apparently, in order to be able to generate the new files, I have to migrate the project to STM32CubeMX 6.16.1:

Screenshot from 2026-02-11 08-51-59.png

The problem is that, once I click in "Migrate", it removes two important lines from my code:
Screenshot from 2026-02-11 09-02-23.png
Screenshot from 2026-02-11 09-06-44.png

So, I went to CubeMX to check, and apparently, at a first glance, the field to configure ADC3 Prescaler is gone ( I do not have any other ADC on):
Screenshot from 2026-02-11 09-05-40.png

Also, the clock configuration tab was showing a problem. I went to check and apparently ADC clock is not allowed to be more than 100 MHz anymore:

gsilva_bretgeld_eng_1-1770806085841.png

Unfortunately, I can not slow PLL2P down, since it is used for other peripherals (e.g. SPI), but I could maybe change the clock source to PER_CK and then derive it from HSI to have it as 25 MHz ( 150 MHz + Prescaler of 6 ), although I do not know which other implications it could have.

I looked up some Issue and Release notes but I could not find anything about that. Is that an already known issue?

 





Best answer by Mahmoud Ben Romdhane

Hello @gsilva_bretgeld_eng 

 

Further to your last comment, I confirm that the clock prescaler code line is not generated on static void MX_ADC3_Init(void).

The issue has been submitted to the dedicated team under this internal ticket (Ticket Number: 227955)

You can notice through the Reference Manual, Table 60. Kernel clock distribution overview, that the Maximum allowed ADC Frequency is 100 MHz for Power Regulator Voltage Scale 0 or 1 and 80 MHz for Power Regulator Voltage Scale 2 or 3.

I will be waiting for your feedback.

 

Thanks.

Mahmoud

 

 
 

 

 

1 reply

Technical Moderator
February 11, 2026

Hello @gsilva_bretgeld_eng 

Let me thank you for posting.

For more investigation, I suggest that you provide your Ioc.File.

Thanks.

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Associate
February 11, 2026

Hello Mahmoud, thank you for your reply. I think I am not allowed to share my ioc here, but I am using a STM32CubeMx 1.16.1, STM32Cube FW_H7 V1.21.1 and a STM32H743ZITx microcontroller. My main problem is that the ADC3 does not have the field to configure the prescaler anymore, neither I can configure a 150 MHz clock in the ADC Select Mux. This happened after I migrated my project from CubeMX 6.4.

Thanks.

Gabriel

Technical Moderator
February 13, 2026

Hello @gsilva_bretgeld_eng 

 

Let me thank you for bringing this issue to our attention.

The issue has been escalated internally to the dedicated team for further investigation and resolution (Ticket 227116).

As WA, I recommend that you add the code manually: hadc3.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV6;

I will let you know when the issue is fixed.

 

For the ADC Clock frequency, I suggest that you take a look at DS12110 Rev 11 Table 174. ADC characteristics (1).

 

Thanks.

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.