2019-03-15 02:28 AM
I am using the STM32F072B development version. The program is divided into two blocks, main code (address 0x08004000) and boot code (address 0x08000000).
At present, I have a big problem. When I first started the power, I can know that the boot code jump to the main code is no problem, but when I want to reburn the main code flash, I jump back to the boot code. My USB is not possible. Work, but other features are normal.
I have tried to stop any interrupt-related functions before the jump boot code, then USB power down or Deinit, and then init USB when the boot code is reached, but I can see that it has entered inti in debug mode. inside.
I don't know what I have overlooked, which makes it impossible to use USB. Can you solve this problem for me? Thank you.