[libopenstm32-devel] stm32f103 and USB
Status: Inactive
Brought to you by:
uh1763
From: gwenhael.goavec <gwe...@fe...> - 2011-02-15 13:01:50
|
Hi, I have a custom board based on STM32F103 microcontroller. My toolchain is created thanks to summon-arm-toolchain script. I work with linux. I wish to use the usb device. In a first time, I have used examples shipped with library. With cdcacm or usbhid (maybe with others too), I have errors when I plug the usb cable. dmesg exemple for usb_hid.elf: [167604.696192] usb 3-1: new full speed USB device using uhci_hcd and address 21 [167609.843315] usb 3-1: unable to read config index 0 descriptor/start: -110 [167609.843326] usb 3-1: chopping to 0 config(s) [167614.845496] usb 3-1: string descriptor 0 read error: -71 [167614.845519] usb 3-1: New USB device found, idVendor=0483, idProduct=5710 [167614.845531] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [167614.845879] usb 3-1: no configuration chosen from 0 choices . lsusb shows the good informations about VendorId and ProductId. On a other side lsusb -v show bNumConfigurations : 0 Bus 003 Device 012: ID 0483:5710 SGS Thomson Microelectronics Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0483 SGS Thomson Microelectronics idProduct 0x5710 bcdDevice 2.00 iManufacturer 1 iProduct 2 iSerial 3 bNumConfigurations 0 To test if problem is relative to my board or an other problem, I have used prebuild usbmouse demo available on olimex's website. With this example, I have the good result. I have no idea of reasons of this problem, maybe my arm-none-eabi-gcc-4.5.1 If someone has an idea to correct this issue. Thank you very much. |