openocd 0.8.0 and kinestis K60

Open source ARM Debugger

Moderator: phalanx

Post Reply
oedipe78
Posts: 4
Joined: Wed Jun 11, 2014 2:20 am

openocd 0.8.0 and kinestis K60

Post by oedipe78 » Thu Jun 12, 2014 11:43 pm

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
Posts: 3
Joined: Tue Nov 11, 2014 12:56 pm

Re: openocd 0.8.0 and kinestis K60

Post by sg479 » Wed Nov 12, 2014 10:35 am

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

oedipe78
Posts: 4
Joined: Wed Jun 11, 2014 2:20 am

Re: openocd 0.8.0 and kinestis K60

Post by oedipe78 » Thu Nov 13, 2014 1:40 am

here is my good script (.cfg) with K60N512 :

Code: Select all

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
Posts: 3
Joined: Tue Nov 11, 2014 12:56 pm

Re: openocd 0.8.0 and kinestis K60

Post by sg479 » Thu Nov 13, 2014 7:11 am

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?

oedipe78
Posts: 4
Joined: Wed Jun 11, 2014 2:20 am

Re: openocd 0.8.0 and kinestis K60

Post by oedipe78 » Thu Nov 13, 2014 7:39 am

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.

Post Reply