2026-02-24 6:26 AM
Generating code for the STM32WLE5CBU.
In timer_if.c:
extern RTC_HandleTypeDef h;but in rtc.c:
RTC_HandleTypeDef hrtc;
It happened in CubeMx 6.16.1 and STM32Cube_FW_WL_V1.4.0 and is still happening using CubeMX6.17.0 and STM32Cube_FW_WL_V1.5.0
Solved! Go to Solution.
2026-02-26 12:09 AM - edited 2026-02-26 12:12 AM
Hello @Tiaan
I used your IOC to generate the code , but before code generation I made sure that the platform settings were correctly selected
After code generation , I have checked the timer_if.c
Could you please double check on your end?
THX
Ghofrane
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.
2026-02-24 7:58 AM
Hello @Tiaan
First let me thank you for posting.
I am currently investigating this behaviour. I will get back to you ASAP.
Thx
Ghofrane
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.
2026-02-25 1:04 AM
Hello @Tiaan
I tried to reproduce the issue described above using the latest STM32CubeMX version 6.17.0.
In the .ioc configuration, I enabled the following peripherals and middleware:
RTC , SUBGHZ, RNG, and LoRaWAN
I also enabled the option:
"Generate peripheral initialization as a pair of .c/.h files per peripheral"
After generating the code, I obtained the following result:
In timer_if.c
It would be useful if you could share your .ioc file ?
I will be waiting for your feedback.
THX
Ghofrane
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.
2026-02-25 3:07 AM
2026-02-26 12:09 AM - edited 2026-02-26 12:12 AM
Hello @Tiaan
I used your IOC to generate the code , but before code generation I made sure that the platform settings were correctly selected
After code generation , I have checked the timer_if.c
Could you please double check on your end?
THX
Ghofrane
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.
2026-02-26 12:19 AM
OK, That was the issue. Thanks