On Fri, May 29, 2009 at 12:46 PM, Magnus Lundin <lun...@mlu.mine.nu> wrote:
>>> arm7_9 dcc_downloads enable
>> dcc downloads are enabled
>>> arm7_9 fast_memory_access enable
>> fast memory access is enabled
>>> flash write_image erase firmware.bin 0x100000 bin
>> auto erase enabled
>> wrote 44616 byte from file firmware.bin in 11.045264s (3.944705 kb/s)
>
> The performance problems are because you use auto erase,  the AT91SAM7  can
> only erase a whole flash bank or it it can erase flash by writing 0xFF to
> the flash memory. and that is slow.
> For normal flash writes it is not necessary to erase the flash first on the
> AT91SAM7 targets, that is done automatically by  the flash controller.
> If you  want to make sure that there is no old code in  flash, use flash
> erase before the flash write_image.
I tried without autoerase, and I obtain some errors

value captured during scan didn't pass the requested check:
captured: 0x000001E1 check_value: 0x00000009 check_mask: 0x00000009
JTAG error while reading cpsr
error writing to flash at address 0x00100000 at offset 0x00000000 (-307)

so I need to disable fast memory access.

In thi way is more slowly:
>  arm7_9 fast_memory_access disable
fast memory access is disabled
> flash write_image ../images/DCellEVB.bin 0x100000 bin
wrote 49908 byte from file ../images/DCellEVB.bin in 25.822573s (1.887429 kb/s)

this is awful

thanks

-- 
Assioma di Cole: "La somma dell'intelligenza sulla Terra è costante;
la popolazione è in aumento"

Massimiliano Cialdi
cia...@gmail.com
massimiliano.cia...@powersoft.it
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to