Skip to main content
COSEBE
Senior
Nov 6, 2018 8:28 AM UTC
Question

[CUBEMX][BUG REPORT] RTC_init /*USER CODE*/

Hi,

Since cubeMX 4.27, in the function of MX_RTC_Init()

there are no more  /* USER CODE BEGIN RTC_Init X */ to add code.

We need this to add test is there is an external battery to save the calendar.

Regards,

Sébastien

This topic has been closed for replies.

7 replies

Khouloud GARSI
ST Employee
Nov 6, 2018 10:06 AM UTC

Hi @COSEBE​ ,

We will check this and answer you ASAP.

Khouloud.

Houda GHABRI
ST Employee
Nov 13, 2018 8:40 AM UTC

Hello @COSEBE​ ,

Thanks for your feedback.

Unfortunately I'm not able to reproduce your issue, in MX_RTC_Init with 4.27.0 there is two user code :

/* USER CODE BEGIN RTC_Init 0 */

 /* USER CODE END RTC_Init 0 */

 /* USER CODE BEGIN RTC_Init 1 */

 /* USER CODE END RTC_Init 1 */

Could you please give more details (MCU, RTC configuration,..) or may be send me your ioc if possible?

Regards,

Houda

COSEBE
COSEBEAuthor
Senior
Nov 13, 2018 8:50 AM UTC
Hi,
Find attached the RTC.c and IOC file.
Regards
Sébastien
Le 13/11/2018 à 09:40, ST Community a écrit :
Houda GHABRI
ST Employee
Nov 13, 2018 8:58 AM UTC

no attached file can you send again?

COSEBE
COSEBEAuthor
Senior
Nov 13, 2018 9:02 AM UTC
Try compressed
Le 13/11/2018 à 09:58, ST Community a écrit :
Houda GHABRI
ST Employee
Nov 15, 2018 12:56 PM UTC

Sorry @COSEBE​  but not yet received :smiling_face_with_smiling_eyes:

COSEBE
COSEBEAuthor
Senior
Nov 15, 2018 1:45 PM UTC
So with a link :
https://www.dropbox.com/s/26zopsa5hsdpjip/testRTC.rar?dl=0
Please confirm
Le 15/11/2018 à 13:56, ST Community a écrit :