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-toolsDownload 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 detailsProgramming the internal FLASH
Figure 1: sam-ba gui connected to Olimex SAM7-Pxxx Board |
- After connecting the board with USB, /dev/ttyACM0 should show up in the dev list.
- Start SAM-BA and select board type "at91sam7s256-ek". As far as I can tell, EPROM AT24 doesn't exist.
- Change the start address in the Memory Display area to 0x100000 to set it to Flash.
- Select the Flash tab and execute the script to "Erase all Flash".
- After it erases, refresh the memory display.
- Verify that the flash has been erased (all 1's).
- 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.
- After sending the file, hit the refresh in the memory display to verify that the flash programmed.
- Quit the SAM-BA. If you use disconnect it won't reconnect properly and the app has to be restarted anyway.
- Reboot the board. Your code should start executing. In my case the Led's blink.
No comments:
Post a Comment