Page 1 of 1
openocd 0.8.0 and kinestis K60
Posted: Thu Jun 12, 2014 11:43 pm
by oedipe78
Hi,
I use the script for the K60 and it works fine for programming with the K60N512. But when I use the K60FN1M, it does not work. I feel that openocd 0.8.0 does not support this kinetis of 1MB flash.
Someone managed to make it work with the K60FN1M?
Thanks !
Re: openocd 0.8.0 and kinestis K60
Posted: Wed Nov 12, 2014 10:35 am
by sg479
Could you email or post the script tou used to flash program your K60? I am trying to use an Olimex arm-usb-ocd-h to program an MK60DX256VMD10 (K60) processor via JTAG without success. It sounds like you were two steps ahead of where I am now.
Wayne
jeronimo479@netzero.com
Re: openocd 0.8.0 and kinestis K60
Posted: Thu Nov 13, 2014 1:40 am
by oedipe78
here is my good script (.cfg) with K60N512 :
Code: Select allsource [find interface/olimex-arm-usb-tiny-h.cfg]
adapter_khz 4000
set CHIPNAME k60
source [find target/k60.cfg]
reset_config trst_and_srst
flash bank $_CHIPNAME.pflash kinetis 0x00000000 0x80000 0 4 $_TARGETNAME
init
reset halt
flash write_image erase "test/program.bin" 0x00000000 bin
echo "-------- Programmation OK --------"
shutdown
I have not been able to operate with K60FN1M, so I went on to JLink Segger.
good luck.
Re: openocd 0.8.0 and kinestis K60
Posted: Thu Nov 13, 2014 7:11 am
by sg479
Thank you very much!!! Would this be the correct command line syntax:
openocd -f ./interface/olimex-arm-usb-ocd-h.cfg -f ./target/K60N512.cfg
where "K60N512.cfg" contains exactly what you supplied in the code section above?
Re: openocd 0.8.0 and kinestis K60
Posted: Thu Nov 13, 2014 7:39 am
by oedipe78
the command line syntax is :
openocd-0.8.0.exe -f ..\scripts\test\K60N512.cfg
My bin file is in the same directory as my script.
I use the interface Olimex Tiny H. Apparently you used the interface Olimex OCD H, in this case you need to change my script.
Code: Select all source [find interface/olimex-arm-usb-ocd-h.cfg]
adapter_khz 4000
set CHIPNAME k60
source [find target/k60.cfg]
reset_config trst_and_srst
flash bank $_CHIPNAME.pflash kinetis 0x00000000 0x80000 0 4 $_TARGETNAME
init
reset halt
flash write_image erase "test/program.bin" 0x00000000 bin
echo "-------- Programmation OK --------"
shutdown
I hope it will help you.