I am trying to use openocd with the Freescale kwikstik k40 (just the
stick, without any tower). So far, I can connect to the k40, reset,
halt, and read out flash addresses.

Whenever I try to read a memory address, I get a "sticky" error.
Googling the list archives gave vague hints about the jtag speed, but
the 'adapter_khz 1' command just makes the error appear more slowly.

Below I have a telnet session and the openocd output.

Does anyone know how to get this working?

Thanks,
Richard


richard@netboy:~$ telnet localhost 4444
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> reset
JTAG tap: k40.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 
0x4)
> halt
target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x21000000 pc: 0x0000c934 psp: 0x200012dc
> mdw 0x0 16
0x00000000: 20007ef0 00000411 00000eeb 00000eeb 00000eeb 00000eeb 00000eeb 
00000000 
0x00000020: 00000000 00000000 00000000 00000e49 00000eeb 00000000 00000e8f 
00000eeb 
> mdw 0x18000000 16
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x18000004
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x18000004
Block read error address 0x18000000
in procedure 'mdw'

richard@netboy:~/git/openocd$ sudo ./src/openocd -s tcl -f board/kwikstik.cfg 
Open On-Chip Debugger 0.6.0-dev-00477-gf1c0133 (2012-03-30-12:02)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
Warn : Adapter driver 'jlink' did not declare which transports it allows; 
assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
RCLK - adaptive
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
Info : add flash_bank kinetis k40.pflash
Info : J-Link initialization started / target CPU reset initiated
Info : J-Link Lite-FSL V1 compiled Jan 31 2011 11:00:51
Info : J-Link caps 0xb8ea7a3b
Info : J-Link hw version 9010000
Info : J-Link hw type uknown 0x9
Info : J-Link max mem block 9096
Info : J-Link configuration
Info : USB-Address: 0xff
Info : Kickstart power on JTAG-pin 19: 0xffffffff
Info : Vref = 3.63 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 0 TRST = 0
Info : J-Link JTAG Interface ready
Info : RCLK (adaptive clock speed)
Info : JTAG tap: k40.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 
0xba00, ver: 0x4)
Info : k40.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'telnet' connection from 4444
Info : JTAG tap: k40.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 
0xba00, ver: 0x4)
target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x21000000 pc: 0x0000c934 psp: 0x200012dc


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to