-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
try to enter the interactive mode and then issue the commands and see how far you get.
Good idea. Interestingly enough, the process hangs when launching the sam7 utility. I don't even get to the interactive command prompt.
There is something I don't fully understand in the documentation. It says on ubuntu the device is mapped on /dev/ttyACMx using the cdc_cam. If I rmmod cdc_cam, the sam7 utility cannot find /dev/at91_0. To make it work I have to symlink /dev/ttyACM0 to /dev/at91_0... How does the device get mapped to /dev/at91_0?
Trying to address with libusb this way, the strace ends with:
open("/dev/at91_0", O_RDWR) = 3 write(3, "N#", 2) = 2 nanosleep({0, 2000000}, NULL) = 0 read(3, "\n", 2) = 1 nanosleep({0, 2000000}, NULL) = 0 write(3, "wFFFFF240,4#", 12) = 12 nanosleep({0, 2000000}, NULL) = 0 read(3, "\n", 4) = 1 nanosleep({0, 2000000}, NULL) = 0 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77bb000 write(1, "Page size info of not known\n", 29Page size info of not known ) = 29 exit_group(1)
Trying to go down the POSIX path:
open("/dev/ttyUSB0", O_RDWR) = 3 write(3, "N#", 2) = 2 nanosleep({0, 2000000}, NULL) = 0 read(3, ^C
I also tried removing libusb before recompiling sam7, but this gives me the same output for POSIX.