at91sam7 usb programming utility for Linux, OSX, and Windows

I’ve written a utility to program the at91sam7s64 over USB using Linux, Mac OSX, or Windows. More info can be found at: http://oss.tekno.us/sam7utils/

New version 0.1.0 is out with a ton of improvements. Here’s the hightlights:

  • - Support for chips whith 256 byte pages (SAM7S256 tested)
  • - Support for Sam7X chips
  • - cygwin support (requires driver from SAM-BA)
  • - loader for fast flashing (use flash command instead of manual_flash)
  • - support big endian systems (OSX on PPC)
  • - --exec command line option for scripting
  • - read and read_manual commands implemented
  • -Erik

    I’ve written a utility to program the at91sam7s64 over USB using Linux or Mac OSX. More info can be found at: http://oss.tekno.us/sam7utils/

    That link does not seem to work. The domain name does not seem to be correct.

    Thorsten

    froetho:
    That link does not seem to work. The domain name does not seem to be correct.

    Oops, should be fixed now.

    Thanks for the loader, it works just excellent. I have tested a SAM7-P64 board and the blinking LED binary from the website.

    The rw and manual_flash I used were excellent.

    Problems: the sam7utils-0.0.3 version’s zip archive did not contain the io_posix.c file.

    I had to take it separately. With that file, the package installed fine.

    Has anybody happened to check sam7utils w/ the SAM7X(256)? I’m on OS X 10.4.6 and unfortunately, it seems to be spitting out some errors, although it seems to have more to do with the USB device’s unhappiness with the Apple CDC driver.

    Quick blurb from the USB Prober app:

    635.045 [3] AppleUSBEHCI[0x175a000]::PollInterrupts - port change detect interrupt

    635.045 [3] AppleUSBEHCI[0x175a000]::UIMRootHubStatusChange numPorts 5

    635.045 [3] AppleUSBEHCI[0x175a000]::UIMRootHubStatusChange port 2 status 0x1

    635.160 [3] AppleUSBOHCI[0x175a800] RootHub Status Change Interrupt on bus 53

    635.161 [3] ***** AppleUSBHubPort[0x1780100]::AddDevice - port 2 on hub 0x178ae00 - unable (err = e0004049) to reset port

    635.161 [3] ***** AppleUSBHubPort[0x1780100]::AddDevice - port 2 on hub 0x178ae00- bus 0x175a000 - got error (e0004049) - releasing devZero lock

    635.161 [3] AppleUSBEHCI[0x175a000]::EHCIRootHubPortEnable port: 2, on: 0

    635.164 [2] AppleUSBEHCI::UIMDeleteEndpoint, endpoint not found

    635.164 [3] AppleUSBEHCI[0x175a000]::PollInterrupts - port change detect interrupt

    635.164 [3] AppleUSBEHCI[0x175a000]::UIMRootHubStatusChange numPorts 5

    635.271 [3] AppleUSBOHCI[0x175a800] RootHub Status Change Interrupt on bus 53

    635.378 [2] AppleUSBOHCI[0x175a800]::CreateDevice - releasing pend on address 3

    636.620 [3] AppleUSBOHCI[0x1733000]:ControlPacketHandler error 0xe00002ed occured on endpoint (0). todo = 0x60 (Clearing stall)

    636.620 [2] AppleUSBOHCI[0x1733000]::ControlPacketHandler, returning status of e00002ed

    636.621 [3] IOUSBDeviceUserClient[0x1f68400]::DeviceReqIn err:0xe00002ed

    636.621 [3] IOUSBDeviceUserClient[0x1f68400]::DeviceReqIn - returning err e00002ed

    636.621 [3] +IOUSBDeviceUserClient[0x1f68400]::open

    636.621 [3] -IOUSBDeviceUserClient[0x1f68400]::open - returning e00002c5

    636.622 [3] AppleUSBOHCI[0x1733000]:ControlPacketHandler error 0xe00002ed occured on endpoint (0). todo = 0x60 (Clearing stall)

    636.622 [2] AppleUSBOHCI[0x1733000]::ControlPacketHandler, returning status of e00002ed

    636.622 [3] IOUSBDeviceUserClient[0x1f68400]::DeviceReqIn err:0xe00002ed

    636.622 [3] IOUSBDeviceUserClient[0x1f68400]::DeviceReqIn - returning err e00002ed

    636.622 [3] +IOUSBDeviceUserClient[0x1f68400]::open

    636.622 [3] -IOUSBDeviceUserClient[0x1f68400]::open - returning e00002c5

    636.654 [3] AppleUSBOHCI[0x175a800]:ControlPacketHandler error 0xe000404f occured on endpoint (0). todo = 0x40 (Clearing stall)

    636.654 [2] AppleUSBOHCI[0x175a800]::ControlPacketHandler, returning status of e000404f

    636.654 [3] IOUSBDeviceUserClient[0x1f68400]::DeviceReqIn err:0xe000404f

    636.654 [3] IOUSBDeviceUserClient[0x1f68400]::DeviceReqIn - returning err e000404f

    636.666 [3] IOUSBDeviceUserClient[0x1f68400]::DeviceReqIn err:0xe00002c2

    636.666 [3] IOUSBDeviceUserClient[0x1f68400]::DeviceReqIn - returning err e00002c2

    This results, in the sam7utils issuing this response: ./sam7

    found boot agent

    unable to open device. ret = e00002c5

    Bus error

    Anybody else in a similar boat? Thanks by the way, for the sam7utils - looks great!

    Hello all,

    Here is another utility for programming AT91SAM7S devices under Linux over USB:

    http://claymore.engineer.gvsu.edu/~ster … 0.2.tar.gz

    New version is out with a ton of improvements. See top post.

    Hi Erik,

    I’m trying to use your utility on Linux, but I can’t figure out how to compile the driver. It isn’t made automatically as part of the usual {.configure, make, sudo make install} cycle, nor does a simple “make” in the driver directory work.

    Any pointers?

    Thanks,

    Michael

    Hi,

    Can’t get sam7utils-0.2.1.tar.gz - http://oss.tekno.us/sam7utils/ seems to be down.

    Can anyone share their copy, please?

    Thank you!

    Radha.

    sradhakrishna:
    Hi,

    Can’t get sam7utils-0.2.1.tar.gz - http://oss.tekno.us/sam7utils/ seems to be down.

    Can anyone share their copy, please?

    Thank you!

    Radha.

    see attachment

    regards

    gerhard

    Am specifically looking for 0.2.1 - do you by any chance have this version?

    sradhakrishna:
    Am specifically looking for 0.2.1 - do you by any chance have this version?

    Better late than never ? … you be the judge :wink:

    After digging around for it myself I was also unable to find it (the internet is a rather imperfect archive !) but fortunately found it on an old hard drive image. As far as I can tell it is GPLv2 so should be OK to post.

    I’m guessing the author (Erik Gilles) has moved on ? Anyone have a copy of the ‘go patch’ mentioned in http://rts-wiki.eit.uni-kl.de/tiki-inde … dstormsNxt (middle page)

    … Niall