On Thu, May 10, 2012 at 11:02 PM, Andreas Fritiofson
<[email protected]> wrote:
> On Thu, May 10, 2012 at 4:52 PM, Xiaofan Chen <[email protected]> wrote:
>> Still I could not get it to work under Mac OS X. First
>> run will segfaul and subsequent run will hang.
>
> The debug log doesn't provide much info. It just suddenly dies, doing
> the same thing it's done several times before. Can you produce a
> backtrace?
>
> Unfortunately, if it's MacOS specific, I won't be able to debug it myself.
Interestingly I rebuild the binary with the debug CFLAGS and
now it seems to work. I will need to try out more to see if the
normal version works or not.
mymacmini:build_mpsse xiaofanc$ cat myconfig_git.sh
CFLAGS="-g" LDFLAGS="-L/usr/local/lib -lusb-1.0" ../configure
--enable-maintainer-mode --prefix=/Users/xiaofanc/bin --enable-jlink
--enable-ftdi --enable-ft2232_libftdi --enable-stlink --disable-werror
mymacmini:lm3s1968 xiaofanc$ ~/bin/bin/openocd -f
~/bin/share/openocd/scripts/board/ek-lm3s1968_mpsse.cfg
Open On-Chip Debugger 0.6.0-dev-snapshot (2012-05-11-07:53)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
500 kHz
none separate
Info : clock speed 500 kHz
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : lm3s1968.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'telnet' connection from 4444
500 kHz
cortex_m3 reset_config sysresetreq
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x81000000 pc: 0x80001330 msp: 0xa0000100
flash 'stellaris' found at 0x00000000
dumped 262144 bytes in 7.525441s (34.018 KiB/s)
Error: checksum mismatch - attempting binary compare
verified 262144 bytes in 9.867944s (25.943 KiB/s)
auto erase enabled
wrote 262144 bytes from file demo_mpsse.bin in 8.152688s (31.401 KiB/s)
500 kHz
cortex_m3 reset_config sysresetreq
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
500 kHz
cortex_m3 reset_config sysresetreq
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x81000000 pc: 0x80001330 msp: 0xa0000100
6000 kHz
flash 'stellaris' found at 0x00000000
dumped 262144 bytes in 2.360548s (108.449 KiB/s)
Error: checksum mismatch - attempting binary compare
verified 262144 bytes in 4.683418s (54.661 KiB/s)
auto erase enabled
wrote 262144 bytes from file demo_mpsse.bin in 3.394659s (75.413 KiB/s)
500 kHz
cortex_m3 reset_config sysresetreq
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted
in procedure 'halt'
500 kHz
cortex_m3 reset_config sysresetreq
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x81000000 pc: 0x80001330 msp: 0xa0000100
Info : dropped 'telnet' connection
^C
mymacmini:lm3s1968 xiaofanc$ telnet localhost 4444
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> init
> reset init
500 kHz
cortex_m3 reset_config sysresetreq
JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part:
0xba00, ver: 0x3)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x81000000 pc: 0x80001330 msp: 0xa0000100
> poll off
> flash probe 0
flash 'stellaris' found at 0x00000000
> dump_image demo_mpsse.bin 0x0 0x40000
dumped 262144 bytes in 7.525441s (34.018 KiB/s)
> verify_image demo_mpsse.bin 0x0
checksum mismatch - attempting binary compare
verified 262144 bytes in 9.867944s (25.943 KiB/s)
> flash write_image erase demo_mpsse.bin
auto erase enabled
wrote 262144 bytes from file demo_mpsse.bin in 8.152688s (31.401 KiB/s)
> reset run
500 kHz
cortex_m3 reset_config sysresetreq
JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part:
0xba00, ver: 0x3)
> init
> reset init
500 kHz
cortex_m3 reset_config sysresetreq
JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part:
0xba00, ver: 0x3)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x81000000 pc: 0x80001330 msp: 0xa0000100
> adapter_khz 6000
6000 kHz
> flash probe 0
flash 'stellaris' found at 0x00000000
> dump_image demo_mpsse.bin 0x0 0x40000
dumped 262144 bytes in 2.360548s (108.449 KiB/s)
> verify_image demo_mpsse.bin 0x0
checksum mismatch - attempting binary compare
verified 262144 bytes in 4.683418s (54.661 KiB/s)
> flash write_image erase demo_mpsse.bin
auto erase enabled
wrote 262144 bytes from file demo_mpsse.bin in 3.394659s (75.413 KiB/s)
> reset run
500 kHz
cortex_m3 reset_config sysresetreq
JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part:
0xba00, ver: 0x3)
> halt
Halt timed out, wake up GDB.
timed out while waiting for target halted
in procedure 'halt'
> reset halt
500 kHz
cortex_m3 reset_config sysresetreq
JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part:
0xba00, ver: 0x3)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x81000000 pc: 0x80001330 msp: 0xa0000100
> exit
Connection closed by foreign host.
--
Xiaofan
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel