On Tue, Aug 3, 2010 at 1:17 AM, Alain Mouette <ala...@pobox.com> wrote:
>
> Em 02-08-2010 18:58, Øyvind Harboe escreveu:
>>
>> On Mon, Aug 2, 2010 at 11:36 PM, Alain Mouette<ala...@pobox.com>  wrote:
>>>
>>> Could anyone give (or point to) an example of a flash for Cortex-M3 that
>>> first chenges the internal cpu clock to 50MHz, then changes OpenOCD clock
>>> to
>>> 12MHz and only then writes the flash?
>>
>> This depends *entirely* on the part and peripheral registers and not the
>> Cortex-M3 core as such.
>> [...]
>> Do you have a "poke sequence" to set up the clock for your part?
>
> I don't need the chip's side part, I have the poke sequence (or I can make
> it up).
>
> The problem is with the OpenOCD part, I cannot figure out how to change the
> jtag clock on-the-fly... If someone can give me the STL fucntion, I can
> figure the pokes that I need.

Search for "reset-init", "reset-start" and "reset-end" in the
tcl/target and tcl/board
scripts for examples...

-- 
Øyvind Harboe
US toll free 1-866-980-3434 / International +47 51 63 25 00
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to