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 !
sg479
November 12, 2014, 5:35pm
2
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
here is my good script (.cfg) with K60N512 :
source [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.
sg479
November 13, 2014, 2:11pm
4
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?
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.
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.