Unable to use USB on at91sam7s-ek
Bas Jacobs
basfriends at gmail.com
Wed Feb 23 22:01:53 UTC 2011
I've managed to get it all working, if anyone has issues with this
particular setup, feel free to contact me.
Bas
On Tue, Feb 22, 2011 at 1:23 AM, Bas Jacobs <basfriends at gmail.com> wrote:
> Dear List,
>
> I've tried to compile and run the
> usb-device-cdc-serial-project-at91sam7s-ek. I'm using the codesourcery
> toolchain and the sam-ba programming tool. The compilation and flash
> procedures go well. However, there are some problems when I try to connect
> and communicate with the board.
>
> I made some modifications to the source, i added the following piece of
> code before the last two ifstatements:
>
> usbBuffer[0] = 0x01234567;
> usbBuffer[1] = 0x09876543;
>
> CDCDSerialDriver_Write(usbBuffer, DATABUFFERSIZE, 0, 0);
>
> I disabled the cdc_acm driver (blacklist and rmmod).
>
> I am:
> uname -a
> Linux USSR 2.6.37-02063701-generic #201102181135 SMP Fri Feb 18 12:47:22
> UTC 2011 i686 GNU/Linux (I use the 37 kernel because of the sam-ba driver).
>
> dmesg says the following:
> [ 5845.748085] usb 6-1: new full speed USB device using uhci_hcd and
> address 25
>
> lsusb says the following:
> Bus 008 Device 002: ID 0a5c:2101 Broadcom Corp. Bluetooth Controller
> Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 006 Device 023: ID 03eb:6119 Atmel
> Corp. <-- This is the at91sam7s256
> Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 003 Device 003: ID 046d:c05d Logitech, Inc.
> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 002 Device 003: ID 04e8:5041 Samsung Electronics Co., Ltd
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 001 Device 002: ID 0ac8:c326 Z-Star Microelectronics Corp.
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
> cat /dev/bus/usb/006/025 | hd says the following:
> 00000000 12 01 00 02 02 00 00 08 eb 03 19 61 00 01 00 01
> |...........a....|
> 00000010 00 01 09 02 43 00 02 01 00 c0 32 09 04 00 00 01
> |....C.....2.....|
> 00000020 02 02 00 00 05 24 00 10 01 05 24 01 01 00 04 24
> |.....$....$....$|
> 00000030 02 02 05 24 06 00 01 07 05 83 03 40 00 0a 09 04
> |...$....... at ....|
> 00000040 01 00 02 0a 00 00 00 07 05 01 02 40 00 00 07 05
> |........... at ....|
> 00000050 82 02 40 00 00 |.. at ..|
> 00000055
>
> I would like to be able to set up some communication with the board, but
> I'm a bit out of clues. Google isn't very helpful either. Any links to
> working tutorials or own experiences are most welcome. Also, of course, if
> you've troubles setting up the toolchain: let me know.
>
> I'm also not entirely sure whether this list is the correct place for my
> question.
>
> Best regards,
> Bas Jacobs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110223/20bbc806/attachment.html>
More information about the ubuntu-users
mailing list