cdc232 doesn't work

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
avion23
Posts: 3
Joined: Tue Feb 14, 2012 6:40 pm

cdc232 doesn't work

Post by avion23 » Tue Feb 14, 2012 6:56 pm

EDIT: CDC DOES NOT WORK WITH KERNEL > 2.6.23.

Hello,
i can't get cdc232 to work. The problem is that i can't send or receive any data.

I'm using cdc232.2011-06-24 with an atmega168pa. The hardware is working. I can send data over the UART with another library. V-USB is also working because i'm transfering data over the USBaspLoader. The HID-Data example also works.
Changes i made to the software:
- CPU changed to atmega168p
- "PROGMEM" changed to "PROGMEM const" to work with gcc-4.6*
- changed USB_CFG_DMINUS_BIT from 3 to 4 for my hardware

kernel 3.2.2-gentoo messages are as follows:

Code: Select all

Feb 11 22:17:26 hp kernel: [41519.746802] usb 2-1.1: new low-speed USB device number 88 using ehci_hcd
Feb 11 22:17:26 hp kernel: [41519.838319] usb 2-1.1: config 1 interface 1 altsetting 0 endpoint 0x1 is Bulk; changing to Interrupt
Feb 11 22:17:26 hp kernel: [41519.838324] usb 2-1.1: config 1 interface 1 altsetting 0 endpoint 0x81 is Bulk; changing to Interrupt
Feb 11 22:17:26 hp kernel: [41519.841926] usb 2-1.1: New USB device found, idVendor=16c0, idProduct=05e1
Feb 11 22:17:26 hp kernel: [41519.841929] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Feb 11 22:17:26 hp kernel: [41519.841931] usb 2-1.1: Product: USB-232
Feb 11 22:17:26 hp kernel: [41519.841933] usb 2-1.1: Manufacturer: www.recursion.jp
Feb 11 22:17:26 hp kernel: [41519.842473] cdc_acm 2-1.1:1.0: ttyACM0: USB ACM device

I'm connecting a trusty old pl2303 to the UART to check for incoming data. I've tried 9600 baud and 2400 baud, but there is no change in voltage level.

Can anyone give me a hint how to debug this?
My final goal is to implement some kind of usb-uart to output clear-text messages to the host. So i dont't really need the UART interface. I've already tried to delete all uart-connected code but the software does rely heavily on it.
Last edited by avion23 on Thu Feb 16, 2012 11:40 pm, edited 1 time in total.

avion23
Posts: 3
Joined: Tue Feb 14, 2012 6:40 pm

Re: cdc232 doesn't work

Post by avion23 » Thu Feb 16, 2012 11:39 pm

Well... 3 days of my time are gone now. I think it should be mentioned somewhere that cdc with vusb doesn't work since kernel 2.6.24. I'm editing my first post to reflect this.

I found this information here:
viewtopic.php?t=1030

I'll look if there is any way to fix it. Until now i don't see any.

Post Reply