cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX USB CDC defaults do not compile

Tomas Svitil
Associate
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
1 ACCEPTED SOLUTION

Accepted Solutions
Jeanne Joly
Senior III
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

View solution in original post

2 REPLIES 2
Imen.D
ST Employee
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".
Thanks
Imen
Jeanne Joly
Senior III
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