Hi Spen,
I’m also getting this same error:
Debug: 154 7 command.c:369 register_command_handler(): registering ‘ocd_ps’…
Debug: 155 7 hla_interface.c:107 hl_interface_init(): hl_interface_init
Debug: 156 7 hla_layout.c:91 hl_layout_init(): hl_layout_init
Info : 157 7 core.c:1377 adapter_init(): This adapter doesn’t support configurable speed
Debug: 158 7 openocd.c:132 handle_init_command(): Debug Adapter init complete
Debug: 159 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport init
Debug: 160 7 command.c:145 script_debug(): command - ocd_transport ocd_transport init
Debug: 162 8 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 163 8 hla_transport.c:148 hl_transport_init(): hl_transport_init
Debug: 164 8 hla_transport.c:165 hl_transport_init(): current transport hla_swd
Debug: 165 8 hla_interface.c:44 hl_interface_open(): hl_interface_open
Debug: 166 8 hla_layout.c:42 hl_layout_open(): hl_layout_open
Debug: 167 8 stlink_usb.c:1233 stlink_usb_open(): stlink_usb_open
Debug: 168 8 stlink_usb.c:1251 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3748
Info : 169 9 stlink_usb.c:423 stlink_usb_version(): STLINK v2 JTAG v14 API v2 SWIM v0 VID 0x0483 PID 0x3748
Debug: 170 10 stlink_usb.c:601 stlink_usb_init_mode(): MODE: 0x00
Info : 171 11 stlink_usb.c:457 stlink_usb_check_voltage(): Target voltage: 2.913574
Debug: 172 11 stlink_usb.c:656 stlink_usb_init_mode(): MODE: 0x01
Debug: 173 11 stlink_usb.c:376 stlink_usb_error_check(): status error: 9 (‘unknown’)
Error: 174 11 stlink_usb.c:1328 stlink_usb_open(): init mode failed
Debug: 175 12 hla_layout.c:49 hl_layout_open(): failed
Debug: 176 12 command.c:631 run_command(): Command failed with error code -4
User : 177 12 command.c:669 command_run_line(): in procedure ‘transport’
Debug: 178 12 command.c:631 run_command(): Command failed with error code -4
User : 179 12 command.c:669 command_run_line(): Runtime Error: /home/alan/tcl/target/kl25z_hla_flash.cfg:142:
in procedure ‘script’
at file “embedded:startup.tcl”, line 58
in procedure ‘init’ called at file “/home/alan/tcl/target/kl25z_hla_flash.cfg”, line 142
Debug: 180 12 hla_interface.c:115 hl_interface_quit(): hl_interface_quit
Note: I’m using current version from git with your patches applied and with Nemui patch to add support to swd and kinetis:
http://cid-36f4d1230f8a673c.skydrive.li … d_misc.zip
It is very strange, but first time I used it, it flashed the firmware on my Freedom KL25Z board:
$ openocd -s /home/alan/tcl -f interface/stlink-v2.cfg -f target/kl25z_hla_flash.cfg -c “mt_flash main.elf”
Open On-Chip Debugger 0.7.0-dev-00228-g2cb4862-dirty (2013-04-18-09:22)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
none separate
Info : add flash_bank kinetis pflash
Info : This adapter doesn’t support configurable speed
Info : STLINK v2 JTAG v14 API v2 SWIM v0 VID 0x0483 PID 0x3748
Info : Target voltage: 2.907282
Info : kl25z.cpu: hardware has 2 breakpoints, 2 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x00000424 msp: 0x1ffffdcc
Rize up to Internal PLLed Clock!
auto erase enabled
Info : Probing flash info for bank 0
Info : Padding image section 0 with 848 bytes
Warn : flash configuration field erased, please reset the device
Warn : Kinetis L Series supports Program Longword execution only.
wrote 2048 bytes from file main.elf in 0.647022s (3.091 KiB/s)
Error: checksum mismatch - attempting binary compare
verified 596 bytes in 0.029051s (20.035 KiB/s)
Runtime Error: /home/alan/tcl/target/kl25z_hla_flash.cfg:92:
in procedure ‘mt_flash’
in procedure ‘reset’ called at file
“/home/alan/tcl/target/kl25z_hla_flash.cfg”, line 92
Even with about error message the binary was flashed correctly.
All wire still soldered the same way on my STM32F4Discovery, also I flashed previous firmware on Freedom, but never got success again.
Do you have same idea to solve this problem? or some test to try to diagnostic this issue? s Alan