Skip to main content
Patukes
Associate III
November 29, 2021
Question

Hello Everyone, I have implemented FS USB on STM32F303RE nucle board. But I detach the programmer and want to use the STM as a stand lone,Then the usb is not working, I

  • November 29, 2021
  • 4 replies
  • 2109 views

..

This topic has been closed for replies.

4 replies

Patukes
PatukesAuthor
Associate III
November 29, 2021

This my error message

This is my error:

0693W00000GZLLsQAP.png

TDK
November 30, 2021

As a quick check/fix, perhaps add a 250ms delay at startup before initialization of USB.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Garnett.Robert
Senior III
December 1, 2021

Hi,

I don't know if this is relevant to your problem

I have a project which would run under debug, but crash on power recycle.

I used a GPIO driving my scope and found the program when running stand alone had a hard fault: unknown instruction.

Difficult to debug because the fault only occurred running stand alone.

By placing the GPIO write in different locations I found the problem code and fixed it. (Stackitis).

I don't know why it worked under debug, but no stand alone.

Hope this helps

Best Regards

Rob

Patukes
PatukesAuthor
Associate III
December 13, 2021

Thank you everyone one for the answers you provided. The major problem was that the micro-controller started with the internal RC oscillator(clock) ; this can't work with USB as USB requires a more stable clock. So I used an external clock.