Skip to main content
CLee.7
Associate
December 15, 2021
Question

I found a bug using STM32CubeMX 6.4.0. It is not critical issue, i think, but uncomfortable.

  • December 15, 2021
  • 1 reply
  • 1488 views

I made NUCLEO-L552ZE-Q project with board default setting. And I changed code generator's generated files setting to use "Generate peripheral initialization as a pair of '.c/.h' files per peripheral". Then I generate STM32CubeIDE environment code.

It generated basic intialize code, but it did not add [#include "usb.h"] in main.c file, so IDE told me warning about MX_USB_PCD_Init() is not declared. (implicit declaration of function 'MX_USB_PCD_Init'; did you mean 'MX_UCPD1_Init'? [-Wimplicit-function-declaration])

This topic has been closed for replies.

1 reply

Khouloud ZEMMELI
ST Employee
December 21, 2021

Hello @CLee.7​ ,

Thank you for your post,

I have checked and I confirm the problem, issue will be fixed, thanks for raising the point to our attention :)

Khouloud