2024-09-03 9:26 AM - last edited on 2024-09-03 9:31 AM by Andrew Neil
Solved! Go to Solution.
2025-09-03 8:14 AM - edited 2025-09-03 8:15 AM
After 12 months spent on a STM32H7 spaceship I thought integrating a tiny STM32F042G6 in a new design for my company would have been a breeze. Sadly I didn't realized how tiny it was untile I received the very first prototype. Sigh.
Started a project in STM32CubeIDE, configured internal clock, I2C1, ADC, USART2, USB pins, some IOs, optimize more for size (-Oz), with only a blank code...
Suddenly I felt worried. I added than the: Middleware>USB_DEVICE>Communication Device Class (Virtual Port Com)
This destroyed me.
I spent more than an hour in full desperation mode sailing the internet looking for help than I come up with your post: the 512 bytes worked flawlessly.
Thanks for saving my donkey.