Skip to main content
Patukes
Associate III
Nov 29, 2021 2:00 PM UTC
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

..

This topic has been closed for replies.

4 replies

Patukes
PatukesAuthor
Associate III
Nov 29, 2021 4:33 PM UTC

This my error message

This is my error:

0693W00000GZLLsQAP.png

TDK
Nov 30, 2021 10:53 PM UTC

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
Dec 1, 2021 2:56 AM UTC

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
Dec 13, 2021 1:47 PM UTC

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.