On Tue, Dec 15, 2009 at 1:23 AM, David Brownell <davi...@pacbell.net> wrote:
> On Monday 09 November 2009, Yegor Yefremov wrote:
>> Common target file for LM3S CPU family
>
> I'm merging the modified version below ... your version
> still arrived mangled, among other things.  Updates:
>
>  - renamed it "stellaris.cfg" to match the chip brand
>   and docs, not the subsidiary;
>
>  - used the new "-ignore-version" option to avoid skipping
>   IDCODE values (you missed one we now use)
>
>  - used a smaller default work area size, 8K not 16K,
>   since that's big enough and since a there are a fair
>   number of chips that don't *have* 16K of SRAM (and
>   only a dozen or so that don't even have 8K)
>
>  - made the reset method restore the default JTAG speed,
>   since "reset init" code must be able to work without
>   the crystal or PLL kicking in
>
>  - updated to match new flash config syntax
>
> Plus, I've got a followup removing the lm3s3748 config
> file in favor of this.  You might want to provide similar
> patches for stuff you can test.

I've tested your changes with OpenOCD: 0.4.0-dev-00931-g6f929db
(2009-12-15-13:50)
It is working as earlier. For my board lm3s6432 I had to increase
work-area amount to 0x4000 to avoid warnings. But still I have a
problem that sometimes the first erase/write attempt fails with the
following messages:

flash write_image erase image.bin 0x1000 bin
auto erase enabled
Algorithm flash write 2048 words to 0x1000, 16757 remaining
error executing stellaris flash write algorithm
flash writing failed with CRIS: 0x0
error writing to flash at address 0x00000000 at offset 0x00001000 (-902)
Command handler execution failed
in procedure 'flash' called at file "command.c", line 637
called at file "command.c", line 352

but the second one always succeeds:

flash write_image erase image.bin 0x1000 bin
auto erase enabled
Algorithm flash write 2048 words to 0x1000, 16757 remaining
Algorithm flash write 2048 words to 0x3000, 14709 remaining
Algorithm flash write 2048 words to 0x5000, 12661 remaining
Algorithm flash write 2048 words to 0x7000, 10613 remaining
Algorithm flash write 2048 words to 0x9000, 8565 remaining
Algorithm flash write 2048 words to 0xb000, 6517 remaining
Algorithm flash write 2048 words to 0xd000, 4469 remaining
Algorithm flash write 2048 words to 0xf000, 2421 remaining
Algorithm flash write 2048 words to 0x11000, 373 remaining
Algorithm flash write 373 words to 0x13000, 0 remaining
wrote 75220 byte from file image.bin in 18.802422s (3.907 kb/s)

Under Windows it succeeds at the first attempt. Any idea?

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

Reply via email to