Support for AT91SAM7X512

Three months ago I modified OpenOCD re131 with changes to support the new Atmel AT91SAM7X512. Just last week I finally received my sample AT91SAM7X512 chips from Atmel and upgraded my AT91SAM7X-EK board to use it.

My changes appear to work fine in release 131 and have been tested with the Amontec JTAGKEY. I have tested using YAGARTO and have successfully programmed the FLASH and debugged at the source level using the Eclipse debugger. FLASH programming is done using a make target (thanks to Jim Lynch for his helpful tutorials).

Only one OpenOCD source file needs to be modified to support the X512 chip, however building the openocd-ftd2xx.exe file from source is quite a project. My first attempt at incorporating my changes into the re141 source code created an executable that crashed. Hmm. I haven’t looked into why just yet.

However, if anyone is interested in obtaining a pre-built executable (openocd-ftd2xx.exe) and sample configuration files for the AT91SAM7X512 and the Amontec JTAGKEY, please email me at dsquires@squires-eng.com.

I’ve also created at91sam7x512.h and ioat91sam7x512.h files for the new chip.

Dave Squires

What are the changes made to support the AT91SAM7X512 ?

Regards

Magnus

The changes I made to support the AT91SAM7X512 are limited to the ./src/flash/at91sam7.c file. I added another check to the at91sam7_read_part_info() function to test for a cidr_arch value of 0x75 and then look for a bank->size value of 0x80000. If detected, then the appropriate values are filled into the at91sam7_info structure.

The code in this file was pretty well organized and that made these changes fairly easy to make.

I can email you my source code if you contact me privately.

Dave Squires