I am having trouble getting started with my AT91SAM7A3 board.
I have the following:
-
PP wiggler
-
custom PCB able to be loaded with sample code (many uncommitted pins atm)
-
winARM
-
programming with openOCD
I have modified the example project at:
http://www.siwawi.arubi.uni-kl.de/avr_p … index.html
which is actually for the AT91SAM7S. I intend to program directly into flash, as in the sample project.
I made the following changes to the project so far:
-changed the makefile to state device is AT91SAM7A3.
-renamed the config files for openocd programming and linker files, note that the contents are still the same except for required file name changes(ie such as the AT91SAM7S64_memory.ldh to AT91SAM7A3_memory.ldh, and openocd_at91sam7s_flash_wiggler.cfg to openocd_at91sam7a3_flash_wiggler.cfg etc)
-included the AT91SAM7A3.h and lib_AT91SAM7A3.h in board.h (instead of the SAM7S includes). the 7A3 headers are from the IAR project on the at91 website ( http://www.at91.com/Pages/products/Eval … 7a3ek.html )
The compile and programming works, and reports that main.bin has been written, however the pin states (for the LEDs on portA) do not toggle.
Anyone have some ideas on what I might be doing wrong here, I suspect there is a problem with my RAM/ROM definitions (since I just copied the SAM7S), or perhaps there are different initialisations that are required.
Any hints much appreciated.