Hello Stefan,

-------- Original-Nachricht --------
> Datum: Thu, 07 Aug 2008 13:46:20 +0200
> Von: Stefan Schoenleitner <[EMAIL PROTECTED]>
> An: openocd-development@lists.berlios.de
> Betreff: [Openocd-development] programming AT91SAM9260 with openocd

> 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.

The WIKI is completely outdated, but unfortunately none of the pages can be 
edited.
 
> 
> * How can I program the boot memory of my AT91SAM9260 at address 0x0 ?

What board do you use, or rather what memories does your board have?

> 
> Until now I tried the following:
> 
> 
> add flash bank in the openocd configuration:
> ------------------
> flash bank cfi 0x00000000 0x100000 2 2 0
> ------------------

That will only work if you have NOR flash connected to the static memory 
controller.

> 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.

AFAIK there's no internal flash in the AT91SAM9.

> 
> 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.

Looks like you had the internal SRAM mapped to 0x0 at that point. Check the 
processors user's manual for information about its internal memories and 
mappings.

> 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
> ------------------

CFI (and the whole "flash" subsystem) is for NOR flash. NAND flash has 
completely different characteristics, e.g. it isn't memory mapped.
 
> 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.

You'll need a much lower JTAG frequency for reliable reset-halt operation with 
the AT91SAM9. My config file uses jtag_speed 1400. Only after the bootloader 
initialized everything, I switch to jtag_speed 2.

> ft2232_layout "jtagkey"

seems wrong, too. IIRC there's a layout specifically for the Olimex JTAG 
interface.

> * 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

Regards,

Dominic
-- 
--
Dominic Rath <[EMAIL PROTECTED]>

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to