STM32F1 USB Crash if turn on optimisation
Hi, I use lasted available library’s and software Cube IDE and stm32f103 mcu. I create clear project with minimum required parameters for use usb MSD or COM, with using USB HAL, So I compile it and connect usb, device recognised and OS propose format it, all works correctly.
So the problem: if in settings project optimisation select any type not include “none” after programing device not recognised by OS if I connect it by usb. No meter what optimization level i select. In debug mode initialisation comes without return error, (OS still not recognized usb device)
