2022-03-27 11:48 PM
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.
Solved! Go to Solution.
2022-03-28 02:52 AM
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
2022-03-28 02:52 AM
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
2022-06-29 04:17 AM
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.