I've managed to get it all working, if anyone has issues with this particular setup, feel free to contact me.<br><br>Bas<br><br><div class="gmail_quote">On Tue, Feb 22, 2011 at 1:23 AM, Bas Jacobs <span dir="ltr"><<a href="mailto:basfriends@gmail.com">basfriends@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5"><div class="gmail_quote">Dear List,<br><br>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.<br>
<br>I made some modifications to the source, i added the following piece of code before the last two ifstatements:<br><br> usbBuffer[0] = 0x01234567;<br> usbBuffer[1] = 0x09876543;<br><br> CDCDSerialDriver_Write(usbBuffer, DATABUFFERSIZE, 0, 0);<br>
<br>I disabled the cdc_acm driver (blacklist and rmmod).<br><br>I am:<br>uname -a<br>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).<br>
<br>dmesg says the following:<br>[ 5845.748085] usb 6-1: new full speed USB device using uhci_hcd and address 25<br><br>lsusb says the following:<br>Bus 008 Device 002: ID 0a5c:2101 Broadcom Corp. Bluetooth Controller<br>
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>Bus 006 Device 023: ID 03eb:6119 Atmel Corp. <-- This is the at91sam7s256<br>
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>Bus 003 Device 003: ID 046d:c05d Logitech, Inc. <br>
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>Bus 002 Device 003: ID 04e8:5041 Samsung Electronics Co., Ltd <br>Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br>Bus 001 Device 002: ID 0ac8:c326 Z-Star Microelectronics Corp. <br>
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br><br>cat /dev/bus/usb/006/025 | hd says the following:<br>00000000 12 01 00 02 02 00 00 08 eb 03 19 61 00 01 00 01 |...........a....|<br>00000010 00 01 09 02 43 00 02 01 00 c0 32 09 04 00 00 01 |....C.....2.....|<br>
00000020 02 02 00 00 05 24 00 10 01 05 24 01 01 00 04 24 |.....$....$....$|<br>00000030 02 02 05 24 06 00 01 07 05 83 03 40 00 0a 09 04 |...$.......@....|<br>00000040 01 00 02 0a 00 00 00 07 05 01 02 40 00 00 07 05 |...........@....|<br>
00000050 82 02 40 00 00 |..@..|<br>00000055<br><br>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.<br>
<br>I'm also not entirely sure whether this list is the correct place for my question.<br><br>Best regards,<br><font color="#888888">Bas Jacobs<br>
</font></div><br>
</div></div></blockquote></div><br>