On Wed, Oct 2, 2013 at 10:15 PM, luke.leighton luke.leighton@gmail.com wrote:
On Wed, Oct 2, 2013 at 4:09 PM, luke.leighton luke.leighton@gmail.com wrote:
well... this is _sort_ of progress... a 1.5k resistor is missing from the USB+ line on the STM32F, which, when added, resulted in the exact same error being created when the exact same software was uploaded to the Port103R demo board.
at this point it can be reasonably concluded that the STM32F software being uploaded to both boards, to get USB working, is shagged. which is odd, because i had it working a few weeks back [on the Port103R].
solved! there's a bug in libopencm3 related to systick
i now have USB working and can start on audio, woo!
yippeee! ok, this is just a start - it's not reading the ADC (just playing a sine wave... badly... sounds more like a square wave...) but it's isochronous audio out, thanks to a patch to libopencm3 from apalmer.
$ arecord -D iec8:CARD=Bridge,DEV=0 -f S16_LE -c 2 -r 32000 -t voc out.voc
$ lsusb -v Bus 001 Device 028: ID cafe:cafe Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0xcafe idProduct 0xcafe bcdDevice 1.00 iManufacturer 1 Innovative Converged Devices iProduct 2 Cantaloupe USB<>CAN Bridge iSerial 3 714702344364438323FF5D50 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 100 bNumInterfaces 2 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 1 Audio bInterfaceSubClass 1 Control Device bInterfaceProtocol 0 iInterface 0 AudioControl Interface Descriptor: bLength 9 bDescriptorType 36 bDescriptorSubtype 1 (HEADER) bcdADC 1.00 wTotalLength 40 bInCollection 1 baInterfaceNr( 0) 1 AudioControl Interface Descriptor: bLength 12 bDescriptorType 36 bDescriptorSubtype 2 (INPUT_TERMINAL) bTerminalID 1 wTerminalType 0x0201 Microphone bAssocTerminal 2 bNrChannels 1 wChannelConfig 0x0001 Left Front (L)