AnsweredAssumed Answered

STM32F103C8 trouble with USB "device not recognized" WIN7

Question asked by anton.bogdan on Nov 26, 2014
Latest reply on Nov 26, 2014 by anton.bogdan
Hello all, yesturday i got this board  with STM32F103c8t  in wich i tryied to instal iNEMO library,

I am facing some dificulties trying to establish a usb conection with the chip.
I am using the original IAR prebuild project with all the files config included.
Everything is compiling well, without errors or warnings.
The board is using the default system_stm32f10x wich ST says for STM32F10X_MD defined  its configured as HSE with external 8MHZ crystal.
The USB clock source is 1.5 divided
I instaled the lastest x64 USB VCP drivers from st website...
For the moment i run a simple program, in debug mode i see the program halts at

  while(bDeviceState != CONFIGURED); in the Stm32f1VCInit

Bellow is my main prog code

#include "stm32f10x.h"
#include "LSM303DLHC.h"
#include "L3Gx.h"
#include "iNEMO_AHRS.h"
#include "iNemo_Led.h"
 
 
#define USE_VCOM
#define USE_DFU
 
#ifdef USE_VCOM
#include "STM32F1_VC_General.h"
#endif
 
 
int main(void)
{
 
#ifdef USE_DFU
    /* Set the Vector Table base address at 0x08003000 */
    NVIC_SetVectorTable( NVIC_VectTab_FLASH, 0x3000);
#endif
 
#ifdef USE_VCOM
  /* Initialize Virtual Com */
  Stm32f1VCInit();
#endif
  while(1){
   
   Stm32f1VCPrintf("****");
  Stm32f1VCSendData();
  iNEMO_Led_Toggle(LED1);
  }
}

Outcomes