cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual COM port not CONFIGURED

harinath
Associate III
Posted on July 24, 2013 at 08:47

Hi


void
main()

{

Set_System();

Set_USBClock(); 


USB_Interrupts_Config();

USB_Init();

while
(bDeviceState != CONFIGURED); 
// wait until USB is configured 

while
(1)

{ 

if
(count_out)

{

Virtual_Com_Write_Buffer(&USB_Rx_Buffer, count_out); 
//Just send the received data on USB

count_out = 0;

}

}

return
0;

}

I'm using the above code from a project:

https://github.com/Harinadha/STM32_MPU9150eMPL/blob/master/main.c

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 alwaysstruck@

Line 8:while(bDeviceState != CONFIGURED);Please have a look at the USB circuit part of my board. 0690X00000604lXQAQ.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. Itworks fine. What could be the problem ? #stm32 #virtual-com-port
0 REPLIES 0