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.
Bellow is my flash writing procedure:
proc grava_flash { } {
# Reset is needed sometimes...
reset halt
wait_halt
# Probe just to view if everything is ok flash probe 0
flash info 0
flash erase_sector 0 0 255
# Sleep helped with some erros that I was getting
sleep 100
#>>> here I would put my pokes to activate the PLL
#>>> How do I change OpenOCD speed here ? <<<
# write the program
flash write_image main.bin 0
reset run
shutdown
}
Thanks,
Alain
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development