Skip to main content
TPham.10
Associate II
April 3, 2019
Question

STM32 not working when leave USB or dont plug USB

  • April 3, 2019
  • 2 replies
  • 935 views

Hi guys,

I have a program use USB CDC and some function(STM32F103C8T6 StdPeriph lib). If use USB to power supply then program normal working, but it's working I leave USB out from Board (have sub power supply for Board) Program stop now. And if don't have USB input, I power on with external power Program not working.

Thanks!

This topic has been closed for replies.

2 replies

Vangelis Fortounas
Associate II
April 5, 2019

Hi.

It's difficult to find someone who is familiar with Std. Periph. Lib. to get a correct answer.

There are well working examples using HAL Library .

Check also this previous post about it.

waclawek.jan
Super User
April 5, 2019

It's debugging like in any other case - find out, where does the program stop, then work from there.

JW