On Fri, Oct 7, 2011 at 7:34 AM, Dmitry E. Oboukhov <[email protected]> wrote:

>
> >>> I cant upload an image into internal SRAM (AT91SAM9).
> >>> it can really write only 20 bytes.
> >>> load_image into internal flash area works fine.
>
> >> But why it doesn't fail if it writes the other regions?
> >> It crashes only if it writes into internal SRAM.
>
> > Could it be that the load_image command uses working area which overlaps
> with
> > the address you're trying to write, thus corrupting the algorithm?
>
> No, I've tested writing area address:0x300000-0x300040 (SRAM start
> address).


So, where is your working area? I don't know which config file you use but,
looking through some of the at91*.cfg, they generally set up working area to
0x300000 and a few KB onwards. Have you tried moving it a bit to see if it
makes a difference. I don't see why load_image should need to use working
area so maybe it's a long shot. Worth a try anyway.

/Andreas
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to