cancel
Showing results for 
Search instead for 
Did you mean: 

Bug report: STM32CubeMX 4.23 MX_RTC_Init

Hector Fernandez
Associate III
Posted on October 26, 2017 at 10:35

Today I have just updated my STM32CubeMX to the 4.23 version.

I migrated the project I am using currently. It uses a STM32F767VITx. So far, I was using the 4.21.1 version of STM32CubeMX.

Today I made some changes in my STM32CubeMX project in order to change some settings. But when I was about to commit this changes to GIT, I noticed the file ''rtc.c'' (generated automatically by STM32CubeMX and never edited manually) had changed. So, I opened this file in order to see what it changed.

In the image below, you can see the problem: STM32CubeMX now generates the variables ''sTime'' and ''sDate'' as global variables, but never initializes them. So all the settings you configure in the STM32CubeMX are never used. I looked for this variables over all my project and I didn't find any call or use, so these two variables are never initialized to any value.

This error (I guess it is an error) have appeared in this new release.

Even I started I new project from scratch to check if it was a ''migration'' problem. But unfortunately, the error still persist.

I hope that CubeMX devs can solve this problem in the next release...

0690X00000608lEQAQ.png

#stm32f7 #stm32cubemx #bug-report
1 ACCEPTED SOLUTION

Accepted Solutions
Sirma Siang
ST Employee
Posted on October 30, 2017 at 14:20

Hello

fernandez.hector

,

I would like, first, to thank you for your inputs.

The bug you reportwith the sDate/sDate missing code, is an unfortunate side effect.

The suspected code has been corrected, and this particular issue has been resolved and will be delivered in CubeMX4.

We are looking at the second issue you have just reported

https://community.st.com/0D50X00009XkXvgSAF

Kind regards

Sirma

View solution in original post

5 REPLIES 5
Amel NASRI
ST Employee
Posted on October 26, 2017 at 18:22

Hi

‌,

I cannot reproduce the problem you are describing based on a new generated project (see attached .ioc file).

Could you please share the .ioc file of your project?

-Amel

________________

Attachments :

test_rtc.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyLi&d=%2Fa%2F0X0000000b6M%2FgCa69O.NIoiiFeutUqH3g8a2AgEWFD9paxTzeYZQK48&asPdf=false

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.

Posted on October 27, 2017 at 09:05

Sure, I uploaded here:

https://file.io/pRewrj

 
Posted on October 27, 2017 at 12:12

Please attach the file here as the link doesn't work (Use advanced editor).

-Amel

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.

Posted on October 27, 2017 at 15:15

Here it is. I think I have attached it correctly.

________________

Attachments :

CubeMXProject.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyLd&d=%2Fa%2F0X0000000b6N%2F.q5aQgNMqpPPmiBO3iLaFwbTYpA0fzbTqIDxmu5oeBI&asPdf=false
Sirma Siang
ST Employee
Posted on October 30, 2017 at 14:20

Hello

fernandez.hector

,

I would like, first, to thank you for your inputs.

The bug you reportwith the sDate/sDate missing code, is an unfortunate side effect.

The suspected code has been corrected, and this particular issue has been resolved and will be delivered in CubeMX4.

We are looking at the second issue you have just reported

https://community.st.com/0D50X00009XkXvgSAF

Kind regards

Sirma