cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in STM32CubeMX for H753 ADC and work-around.

HWhit.1
Associate III

I have problems porting a H743Zi2 code to a H753. When using the .ioc file editor with the ADC the option to set the ADC clock prescalar is not present for the H753. It is there for the H743. The coeersponding line in the main.c code is not present either. Not surprisingly, a simple test program that was a polled ADC read did not work.

Copying the setup code for the ADC and placing it after /* USER CODE BEGIN ADC1_Init 2 */ and then manually edting in:

hadc1.Init.ClockPrescaler = ADC_CLOCK_SYNC_PCLK_DIV4;  // <-- Missing line

after the line:

hadc1.Instance = ADC1;

was a workaround that worked.

Is there a was to automatically add in such corrections? I need to for my pulse spectroscopy application to poke about quite a bit with the hardware configuration. So it takes a lot of time.

1 ACCEPTED SOLUTION

Accepted Solutions
Aziz BRIGUI
ST Employee

Hello @HWhit.1​ ,

Thank you for your feedback,

You are right, this is a known regression of STM32CubeMX 6.5.0 and is already reported. This bug doesn't exist in STM32CubeMX 6.4.0, so another solution would be for you to work with the previous version if no other limitations exist.

Internal ticket number: 124251 (This is an internal tracking number and is not accessible or usable by customers).

If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly.

Best regards,

Aziz


In order 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.

View solution in original post

2 REPLIES 2
Aziz BRIGUI
ST Employee

Hello @HWhit.1​ ,

Thank you for your feedback,

You are right, this is a known regression of STM32CubeMX 6.5.0 and is already reported. This bug doesn't exist in STM32CubeMX 6.4.0, so another solution would be for you to work with the previous version if no other limitations exist.

Internal ticket number: 124251 (This is an internal tracking number and is not accessible or usable by customers).

If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly.

Best regards,

Aziz


In order 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.
Aziz BRIGUI
ST Employee

Hello @HWhit.1​ ,

Issue fixed in STM32CubeMX latest release.

V6.6.0 is now available under this Link.

Thank you for your contribution.

Best regards,

Aziz.


In order 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.