Skip to main content
VCapu
Associate III
June 10, 2019
Question

STM32F105 USB problem

  • June 10, 2019
  • 0 replies
  • 446 views

I use a STM32F105. On the board there is a bootloader and I upload the firmware through USB (host, OTG_FS). Then I use the USB to extract a log file (.txt). The extraction of the log works only if the optimization of the code is 0. If I set optimization 1, 2 or 3 micro restarts while USB is inserted for the log extraction. I need to make it work at least with optimization 1. The strange thing is that if I upload the firmware without bootloader on the board, it works also with optimization 3.

This topic has been closed for replies.