2014-10-24 11:11 AM
Hi
I'm using STM32F103 in a battery powered device with USB (external power and data transfer over virtual com) When i run my device without power down and connect USB to PC everything ok. But after power down and wake up (RTC) my device isn't recognized from PC. I'm using FirmLib V2.2.0 (i know bit old). I enable USB clock, init NVIC and USB_Init(),.... nothing works - also i tried is SetCNTR to reset USB - no chance... i've searched the forum and half internet - no hit Knew anybody an example for my task - or perhaps an idea? would be great if one hat a little bit time to answer thanx otmar2014-10-25 05:02 AM
I enable USB clock, init NVIC and USB_Init(),....
Maybe you also need to restart system clock(HSE, PLL).
2014-10-27 01:58 AM
2014-10-27 02:05 AM
I think it also may be related to the USB pullup resistor.
If pullup not disabled and later re-enabled the host may be unaware that USB device restarted.2014-10-28 12:56 AM
Hi Knik
have tried a lot.. and succeded one step. the hint you gave me with the NVIC - i started the whoe init from system startup - and it works - the reason is - i have to insert a delay after init. So the PC recognizes my device - BUT: the port isn't available :( bad, very bad i have also tried to Reset the USB (_SetCNTR(1) & _SetCNTR(0)) thanx for your help otmar