Getting started - unable to connect to the device

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/simtrace@lists.osmocom.org/.

Mat mat at spoked.ca
Tue Jan 31 04:04:29 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

> No idea, I have only used sam7util (from our git repository) with
> the posix mode and /dev/ttyACM0..as device. So the device is really
> in the SAM-BA state? Are you sure /dev/ttyACM0 is really coming
> from the SIMtrace?

Yes, according to Harald, if the device identifies as Atmel Corp.
at91sam SAMBA bootloader when issuing lsusb, this confirms it is in
SAM-BA state. I quickly tried the dfu-util, and it did not recognize
any device.

I identified the hanging point to be at the very beginning of
samba_init(void) in samba.ca. It stopped at the first if, never being
able to read a response from the device.

The great news is, I finally flashed it! The second workstation I was
working from was Ubuntu 10.10. This time, I tried on another Ubuntu
10.04 workstation, which is in a fairly fresh install state. I I
installed dependencies to build the firmware: The arm-elf-toolchain
from bsprak PPA, and most importantly (my guess is, this changed
something), libusb-dev and NOT libusb-1.0.0-dev. This is might seem
strange, but the installed packages are libusb-0.1-4 libusb-1.0.0 and
libusb-dev. Maybe this is a meta package and I'm wrong...

After I ran strace on sam7 utility and it went much further, finally
ending with something about USBDEVFS ressource busy. Simply rmmod
cdc_acm and try again, et voila! Flashed! Device now boots with bright
red LED and identifies as VOTI.

Clearly, this all had to do with the USB interface being picky about
something. Maybe someone more knowledgeable can explain.

Thanks for all you help,
Mat
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iF4EAREIAAYFAk8naE0ACgkQsluIOvRklphMpQD/VmYICIdITFbmDkjLV7ubHEqH
ongjJ4B288t1JzwPfZwA/RME0zt2Tr0tHxUflNjk7DsM3rpxfDTk7USbdlmozxG9
=PcxW
-----END PGP SIGNATURE-----




More information about the simtrace mailing list