Skip to main content
Tomas Svitil
Visitor II
October 4, 2017
Solved

STM32CubeMX USB CDC defaults do not compile

  • October 4, 2017
  • 2 replies
  • 726 views
Posted on October 04, 2017 at 11:52

Hi,

Currently the defaults set for STM32F042 in STM32CubeMX v4.22.1, FW 1.9.0 for USB CDC will not compile after generation.

This is because the USB CDC Rx and Tx Buffers are set to 2048B each by default, which is too much considering the micro has 6kB RAM. In previous versions this was set to the minimum 4B and caused no problems (at least for me).

Can you please update the defaults to be compilable by default?

Thanks

P.S. It took me quite a long time to figure this out, and it was only thanks to having a project I created with cube before.

#stm32cubemx #stm32f042 #usb-cdc #defaults
This topic has been closed for replies.
Best answer by Jeanne Joly
Posted on March 05, 2018 at 14:19

Hello

svitil.tomas

,

This issue is fixed in the current release of CubeMX (4.24).

Please upgrade your CubeMX release with the latest one.

BR. Jeanne

2 replies

Technical Moderator
October 4, 2017
Posted on October 04, 2017 at 15:14

Hello,

Thank you

svitil.tomas

for your reported issue. I will share this issueinternally to the appropriate team.

Best Regards

Imen

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
Jeanne Joly
Associate
March 5, 2018
Posted on March 05, 2018 at 14:19

Hello

svitil.tomas

,

This issue is fixed in the current release of CubeMX (4.24).

Please upgrade your CubeMX release with the latest one.

BR. Jeanne