Thursday, May 3, 2012

Notes on bringing up Olimex SAM7Pxxx eval board for Atmel AT91SAM7xxx microprocessor.

Toolchain Installation

I installed the arm cross compiler using crosstool I used the preconfigured /usr/local/lib/ct-ng-1.13.4/samples/arm-unknown-eabi to make the toolchain.  Tool chain was automatically downloaded, compiled and installed in ~/x-tools

Download Tools

Download the the SAM-BA linux gui tool from Atmel. After downloading the tool,  unzip it and run the executable. 

Enabling the download Code

There is a header labeled test.  Connect this header an apply power for 10 sec (I tried less than 10 sec and it didn't work, but I might have been having other problems)  See the Olimex Instructions for details

Programming  the internal FLASH
Figure 1: sam-ba gui connected to Olimex SAM7-Pxxx Board

  1. After connecting the board with USB, /dev/ttyACM0 should show up in the dev list.
  2. Start SAM-BA and select board type "at91sam7s256-ek".  As far as I can tell,  EPROM AT24 doesn't exist.  
  3. Change the start address in the Memory Display area to 0x100000 to set it to Flash.
  4. Select the Flash tab and execute the script to "Erase all Flash".  
  5. After it erases, refresh the memory display.  
  6. Verify that the flash has been erased (all 1's).  
  7. Select a file to send to the flash.  I used the blinky demo.  There is a .bin file in the package ready to be sent. 
  8. After sending the file, hit the refresh in the memory display to verify that the flash programmed.
  9. Quit the SAM-BA.  If you use disconnect it won't reconnect properly and the app has to be restarted anyway.
  10. Reboot the board.  Your code should start executing.  In my case the Led's blink.


No comments:

Post a Comment