2024-12-02 08:49 AM
I updated to CubeMX 6.13.0 and firmware package 1.12.0 for and STM32H755BIT chip and found several issues with the new release:
HAL_RCC_GetPCLK1Freq();
HAL_RCC_GetPCLK2Freq();
Screen capture showing 240 MHz clock rate on PCLK:
2024-12-03 03:46 PM
It is defining both USE_PWR_LDO_SUPPLY and USE_PWR_DIRECT_SMPS_SUPPLY in the generated CMake file. It should only define USE_PWR_DIRECT_SMPS_SUPPLY since that's the selected power mode in CubeMX. I believe this is just a bug with STM32CubeMX code generation.
2024-12-03 04:06 PM
If I bump your SYSCLK to 280 MHz (max value) the generated CMakeList.txt file only contains:
target_compile_definitions(stm32cubemx INTERFACE
USE_PWR_DIRECT_SMPS_SUPPLY
USE_HAL_DRIVER
STM32H7B3xxQ
$<$<CONFIG:Debug>:DEBUG>
)
It is confusing how and what the different options are.
2024-12-03 04:09 PM
That's very interesting. On my original project I ran into this issue, I have the clock set to 280 MHz. I can't share that IOC file unfortunately, but it seems like there's a bunch of things happening in the background that may effect this issue.
2024-12-04 10:59 AM
The requirement for the new defines are discussed in the Main Changes section of the Release Notes for H7 Firmware:
2024-12-04 11:25 AM
@Ghofrane GSOURI is ST aware of the issue I mentioned (CubeMX creating multiple different USE_PWR* definitions) so that it may be fixed in a future version of STM32CubeMX?
2024-12-05 01:11 AM
Hello @cvanbeek
I Couldn't reproduce the issue with a new project starting from scratch but a ticket has been raised to dev team for further investigation to identify the root cause of this behavior (internal ticket number 197797 )
THX
Ghofrane
2024-12-05 07:39 AM
Hi @Ghofrane GSOURI,
Thank you for noting the issue. Here's more info on my environment and the example I generated with this issue.
Environment:
Steps to generate a project with the error:
The resulting cmake/stm32cubemx/CMakeList.txt file has the incorrect USE_PWR_LDO_SUPPLY definition:
2024-12-16 07:26 AM - edited 2024-12-16 07:38 AM
I see ST updated the FW_H7_1.12.1 package:
STM32CubeH7 Firmware Package V1.12.1 / 06-December-2024
Main Changes
I'll try it out and see if it fixed the clock issue I was having.
Edit: tagging @Ghofrane GSOURI
2024-12-17 12:44 PM
After upgrading to CubeMX 6.13.0 and FW_H7_v.1.12.1, I got the following error: undefined reference to `ExitRun0Mode'.
system_stm32h7xx_dualcore_boot_cm4_cm7.c was not regenerated at all. I need to delete it to trigger the generation of a new system_stm32h7xx_dualcore_boot_cm4_cm7.c
2024-12-19 01:36 AM - edited 2024-12-19 01:42 AM
Same here. When regenerating with CubeMX 6.13.0, some functions disappear. These were present on the first generation of code. Re-generating deletes them and build fails. However, this is not always the case. Sometimes re-generation does work. Not sure how to reliably repeat this.
If it fails, what is missing is `ExitRun0Mode'