2025-07-08 8:29 AM
Hello,
A set of new constants have been added to stm32g070xx.h by CubeMX v6.15.0, and one of them has the wrong value (at line 4200):
#define RCC_CFGR_SWS_LSE (0x00000100UL) /*!< LSE used as system clock */
According to the datasheet, the right value for LSE is 0x00000020UL.
Thanks.
2025-07-08 8:39 AM - edited 2025-07-08 8:44 AM
Hello @NPaqu.1
Thank you for bringing this to my attention.
I will check it internally and get back to you ASAP.
Could you please add your IOC to reproduce the issue?
KR,
Souhaib
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.
2025-07-08 8:45 AM
Used to be correct:
Then it got deleted entirely.
Then it got "fixed" but with the wrong value.
Related issue:
https://github.com/STMicroelectronics/cmsis-device-g0/issues/1