cancel
Showing results for 
Search instead for 
Did you mean: 

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

Patukes
Associate III
 
4 REPLIES 4
Patukes
Associate III

This my error message

This is my error:

0693W00000GZLLsQAP.png

TDK
Guru

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

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
Associate III

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.