AT91SAM9XE512 and OpenOCD

Hello everybody,

I made my own AT91SAM9XE512 board and try to get it work with OpenOCD. I doesn`t look that bad, I can communicate with the board with a JTAGkey tiny and I am able to reset and halt the CPU. Now to my problems: first of all my .cfg:

######################

Daemon configuration

######################

Change the default telnet port…

telnet_port 4444

GDB connects here

gdb_port 3333

GDB can also flash my flash!

gdb_memory_map enable

gdb_flash_program enable

######################

Interface configuration

######################

Amontec JTAGkey-tiny chip

interface ft2232

Vendor ID and product ID of JTAGkey-tiny

ft2232_vid_pid 0x0403 0xcff8

ft2232_layout jtagkey

######################

Target configuration

######################

#target

target arm926ejs little reset_init 0 arm926ejs

#target_script 0 reset event/at91sam9260_reset.script

run_and_halt_time 0 30

######################

Reset configuration

######################

reset_config srst_only

######################

Device configuration

######################

#jtag_device

jtag_device 4 0x1 0xf 0xe

jtag_speed 12

jtag_nsrst_delay 200

jtag_ntrst_delay 0

#####################

Memory configuration

#####################

#flash bank cfi <target#>

#flash bank cfi 0x10000000 0x01000000 2 2 0

flash bank at91sam7 0 0 0 0 0

#######################################################################

I can connect via telnet to port 4444 and a

flash probe 0

gives the following output:

flash ‘at91sam7’ found at 0x00000000

a

flash info 0

gives the following:

#0: at91sam7 at 0x00000000, size 0x00008000, buswidth 0, chipwidth 0

#0: 0x00000000 (0x8000 32kB) protection state unknown

at91sam7 information: Chip is Unknown

cidr: 0x329a73a0, arch: 0x0029, eproc: ARM926EJ-S, version:0x000, flashsize: 0x00008000

master clock(estimated): 17194kHz

securitybit: 0, nvmbits(0): 0x0

#####################################################################

I pretty shure, that my settings are wrong, because I am not able to program the CPU. Can anybody help please?

Thanks a lot

Arthur