On Tue, Sep 1, 2009 at 11:54 AM, Peter Zuidema<[email protected]> wrote:
> The AT91SAM7X(C)512 contains 2 flash banks, each 256KB.
Yes, I know
> You have to change the sam7x512.cfg and add a flash-bank definition.
Are you sure?
> The doc/openocd.pdf has some information in chapter 13 "Flash programming".
>
> You could try this:
> flash bank at91sam7 0 0 0 0 0
> flash bank at91sam7 0 0 0 0 1
If I try that I obtain:
Error: target '1' not defined
anyway, only with
flash bank at91sam7 0 0 0 0 0
openOCD correcty detects 2 banks:
> flash banks
#0: at91sam7 at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
#1: at91sam7 at 0x00140000, size 0x00040000, buswidth 4, chipwidth 0
> From the telnet console (to OpenOCD) check if this 2nd bank is
> available/working:
> flash info 1
here is the result:
> flash info 1
#1 : at91sam7 at 0x00140000, size 0x00040000, buswidth 4, chipwidth 0
# 0: 0x00000000 (0x4000 16kB) not protected
# 1: 0x00004000 (0x4000 16kB) not protected
# 2: 0x00008000 (0x4000 16kB) not protected
# 3: 0x0000c000 (0x4000 16kB) not protected
# 4: 0x00010000 (0x4000 16kB) not protected
# 5: 0x00014000 (0x4000 16kB) not protected
# 6: 0x00018000 (0x4000 16kB) not protected
# 7: 0x0001c000 (0x4000 16kB) not protected
# 8: 0x00020000 (0x4000 16kB) not protected
# 9: 0x00024000 (0x4000 16kB) not protected
# 10: 0x00028000 (0x4000 16kB) not protected
# 11: 0x0002c000 (0x4000 16kB) not protected
# 12: 0x00030000 (0x4000 16kB) not protected
# 13: 0x00034000 (0x4000 16kB) not protected
# 14: 0x00038000 (0x4000 16kB) not protected
# 15: 0x0003c000 (0x4000 16kB) not protected
at91sam7 driver information: Chip is AT91SAM7X512
Cidr: 0x275c0a40 | Arch: 0x0075 | Eproc: ARM7TDMI | Version: 0x000 |
Flashsize: 0x00040000
Master clock (estimated): 53583 KHz | External clock: 0 KHz
Pagesize: 256 bytes | Lockbits(16): 0 0x0000 | Pages in lock region: 0
Securitybit: 0 | Nvmbits(3): 1 0x4
This is obtained without the config line:
flash bank at91sam7 0 0 0 0 1
thanks
--
Assioma di Cole: "La somma dell'intelligenza sulla Terra è costante;
la popolazione è in aumento"
Massimiliano Cialdi
[email protected]
[email protected]
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development