Skip to main content
tsuna
Associate II
Jul 29, 2021 3:48 AM UTC
Solved

STM32CubeMX 6.3.0 BUG?

main.c generated by STM32CubeMX 6.3.0

Line 23

#include "usb_device.h"

#include "usb_device.h" Are duplicated.

Then MX_RTC_Init () is missing HAL_RTCEx_SetWakeUpTimer_IT ().

This topic has been closed for replies.
Khouloud OTHMAN
Khouloud OTHMANBest answer
Associate
Jul 29, 2021 4:50 PM UTC

Hello @tsuna​,

Thanks for having reported.

You're right, I've been able to reproduce the issue. I assume the duplication of #include "usb_device.h" is due to the activation of both USB and FreeRTOS middleware.

This misbehavior will be reported internally to be fixed. I'll keep you posted with the updates.

Sorry for any inconvenience that this may cause.

Meanwhile, trying with the previous STM32CubeMX version 6.2.1, the issue doesn't occur:

  • #include "usb_device.h" is generated just once.
  • HAL_RTCEx_SetWakeUpTimer_IT () is correctly generated in MX_RTC_Init () .

Khouloud.

1 reply

Khouloud OTHMAN
Khouloud OTHMANBest answer
Associate
Jul 29, 2021 4:50 PM UTC

Hello @tsuna​,

Thanks for having reported.

You're right, I've been able to reproduce the issue. I assume the duplication of #include "usb_device.h" is due to the activation of both USB and FreeRTOS middleware.

This misbehavior will be reported internally to be fixed. I'll keep you posted with the updates.

Sorry for any inconvenience that this may cause.

Meanwhile, trying with the previous STM32CubeMX version 6.2.1, the issue doesn't occur:

  • #include "usb_device.h" is generated just once.
  • HAL_RTCEx_SetWakeUpTimer_IT () is correctly generated in MX_RTC_Init () .

Khouloud.