On Sun, May 24, 2009 at 7:03 PM, Michael Fischer <fische...@t-online.de> wrote:
> Now I take a look in the openocd manual and found the following
> information:
>
> 13.2.2.1 lpc2000 options
> flash bank lpc2000 <base> <size> 0 0 <target> <variant> <clock> [calc
> checksum]
>
> ...and the optional keyword calc checksum, telling the
> driver to calculate a valid checksum for the exception vector table.
>
> If I use now the calc_checksum options in my cfg file:
> The new checksum was calculated, and the program is working.

Yes I think this is working now with your updated cfg file.

> An other solution is, to change the startup code like:
>
> _vectors:       ldr     PC, Reset_Addr
>                ldr     PC, Undef_Addr
>                ldr     PC, SWI_Addr
>                ldr     PC, PAbt_Addr
>                ldr     PC, DAbt_Addr
>                .word 0xb9205f84
>
> In this case the correct checksum is set, and the program should work too.
>
It seems to me this is not preferred in real life. The checksum will change
every time you change the program and you do not want to change
your startup code every time. All the examples I have use the similar
startup codes without setting the checksum.

-- 
Xiaofan http://mcuee.blogspot.com
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to