AnsweredAssumed Answered

Virtual COM port not CONFIGURED

Question asked by Reddy.Harinadha on Jul 24, 2013
Hi

01.void main()
02.{
03.   Set_System();
04.   Set_USBClock();
05.   
06.   USB_Interrupts_Config();
07.   USB_Init();
08.   while(bDeviceState != CONFIGURED); // wait until USB is configured  
09.   while (1)
10.   {
11.    if(count_out)
12.    {
13.      Virtual_Com_Write_Buffer(&USB_Rx_Buffer, count_out);  //Just send the received data on USB
14.      count_out = 0;
15.    }
16.   }
17.return 0;
18.}
I'm using the above code from a project: https://github.com/Harinadha/STM32_MPU9150eMPL
This code works well on Olimex STM32-P103 board which has STM32F103RB.
I'm using STM32F103RE micro & same version IAR EWARM project.
I modified the project to make changes: FLASH, RAM size, device & USB_DISCONNECT related & defined constant USE_STM3210E_EVAL.
But it always struck @ Line 8: while(bDeviceState != CONFIGURED);
Please have a look at the USB circuit part of my board.

sch_stm32.png
There is no problem with the hardware because I created another project based on ST libraries: STM32F10xFWLib v3.3.0, USB library v3.2.1 & Virtual com code v3.2.1. It works fine.

What could be the problem ?

Outcomes