cancel
Showing results for 
Search instead for 
Did you mean: 

Cube 6.17.0 timer_if invalid external reference to RTC Handler

Tiaan
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @Tiaan 

I used your IOC to generate the code , but before code generation I made sure that the platform settings were correctly selected 

MX sttings.png

After code generation , I have checked the timer_if.c

timer_if.png

 

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.

View solution in original post

5 REPLIES 5
Ghofrane GSOURI
ST Employee

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.

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 

timer_if.c.png

 

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.

Sure, no problem.

Hello @Tiaan 

I used your IOC to generate the code , but before code generation I made sure that the platform settings were correctly selected 

MX sttings.png

After code generation , I have checked the timer_if.c

timer_if.png

 

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.

OK, That was the issue. Thanks