Hi,

I read the (rather outdated) openocd documentation at 
http://openfacts.berlios.de/index-en.phtml?title=Open_On-Chip_Debugger
more than once.
Unfortunately, I still can't program anything with it.


* How can I program the boot memory of my AT91SAM9260 at address 0x0 ?



Until now I tried the following:


add flash bank in the openocd configuration:
------------------
flash bank cfi 0x00000000 0x100000 2 2 0
------------------
I'm not sure if the CFI driver is correct. Anyway, it did not work.


Since the AT91SAM9 is similar to the AT91SAM7 I also tried the following
------------------
flash bank at91sam7 0 0 0 0 0
------------------
with no success as well.


I also tried writing to the address with no flash bank configured which 
seemed to work at first.
However, after device reset (by pressing the reset button on the board) 
all changes are gone and the overwritten memory region is as it was 
before the writing.



Also, writing to the connected NAND flash doesn't work.
I added a flash bank for it:
------------------
flash bank cfi 0x4000000 0x10000000 2 2 0
------------------


I'm using the current svn version "Open On-Chip Debugger 1.0 
(2008-08-08-18:57) svn:895".

Is there any openocd documentation that is not outdated ?
I've been trying to use openocd with my AT91SAM9260 board for two days now.
Although I can connect to the board now, dump memory, halt and resume 
the cpu, programming and resetting the cpu still does not work.


* Should I use an older svn revision ?

* Is there any other ARM SAM9 compatible programmer that works under linux ?

* What are your suggestions with the at91sam9 controllers ?


I would really appreciate any help that brings me forward.

sincerly,
stefan



Here is my current configuration file:
------------------------------------
#daemon configuration
telnet_port 4444
gdb_port 3333

#interface
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG"
ft2232_layout "jtagkey"
ft2232_vid_pid 0x15ba 0x0003


# Thanks to Pieter Conradie for this script!
# Target:    Atmel AT91SAM9260
######################################

reset_config trst_and_srst

#jtag_device <IR length> <IR capture> <IR mask> <IDCODE instruction>
jtag_device 4 0x1 0xf 0xe

jtag_nsrst_delay 200
jtag_ntrst_delay 0

######################
# Target configuration
######################

#target <type> <endianess> <reset mode> <JTAG pos> <variant>
target arm926ejs little 0 arm926ejs

#target_script 0 reset event/at91sam9260_reset.script


#working area <target#> <address> <size> <backup|nobackup>
working_area 0 0x00300000 0x1000 nobackup
#working_area 0 0x00200000 0x1000 backup


#####################
# Flash configuration
#####################

#flash bank cfi <base> <size> <chip width> <bus width> <target#>
#flash bank cfi 0x10000000 0x01000000 2 2 0
flash bank cfi 0x00000000 0x100000 2 2 0
#flash bank cfi 0x4000000 0x10000000 2 2 0
------------------------------------
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to