Hello,

I checked out out a clean openocd git from
git://git.code.sf.net/p/openocd/code.

After
- ./bootstrap
- ./configure
- make

and adding -rtos auto to 

diff --git a/tcl/target/stm32f4x.cfg b/tcl/target/stm32f4x.cfg
index a7ec5ea..6174b4e 100644
--- a/tcl/target/stm32f4x.cfg
+++ b/tcl/target/stm32f4x.cfg
@@ -66,7 +66,7 @@ if {[using_jtag]} {
 }
 
 set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME cortex_m -endian $_ENDIAN -chain-position
$_TARGETNAME
+target create $_TARGETNAME cortex_m -endian $_ENDIAN -chain-position
$_TARGETNAME -rtos auto
 
 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size
 $_WORKAREASIZE -work-area-backup 0
 
and starting openocd like
- src/openocd -s tcl -f tcl/board/st_nucleo_f401re.cfg

as soon as I connect to openocd in arme-none-eabi-gdb

gdb) tar ext :3333
Remote debugging using :3333
NutInit () at
/home/bon/devel/ethernut_sf/nut/os/../arch/cm3/os/nutinit.c:244
244     {
Remote connection closed

the openocd program crashed. Running the same sequenc with openocd in gdb gives:
(gdb) bt
#0  0x00007ffff6d25187 in raise () from /lib64/libc.so.6
#1  0x00007ffff6d26538 in abort () from /lib64/libc.so.6
#2  0x00007ffff6d630c4 in __libc_message () from /lib64/libc.so.6
#3  0x00007ffff6d6892e in malloc_printerr () from /lib64/libc.so.6
#4  0x00007ffff6d69636 in _int_free () from /lib64/libc.so.6
#5  0x0000000000440a73 in rtos_try_next (target=target@entry=0x8b59f0) at 
rtos.c:517
#6  0x0000000000440c8f in rtos_qsymbol (connection=connection@entry=0x8b8060, 
packet=<optimized out>, packet_size=<optimized out>) at rtos.c:229
#7  0x00000000004410db in rtos_thread_packet (connection=0x8b8060, 
packet=<optimized out>, packet_size=<optimized out>) at rtos.c:338
#8  0x000000000043c5a0 in gdb_input_inner (connection=<optimized out>) at 
gdb_server.c:2685
#9  gdb_input (connection=<optimized out>) at gdb_server.c:2876
#10 0x000000000043e80a in server_loop 
(command_context=command_context@entry=0x861010) at server.c:469
#11 0x00000000004062c5 in openocd_thread (cmd_ctx=0x861010, 
argv=0x7fffffffdfd8, argc=<optimized out>) at openocd.c:299
#12 openocd_main (argc=<optimized out>, argv=0x7fffffffdfd8) atopenocd.c:332
#13 0x00007ffff6d11b05 in __libc_start_main () from /lib64/libc.so.6
#14 0x0000000000405cb5 in _start () at ../sysdeps/x86_64/start.S:122

Am I missing something?

Thanks
-- 
Uwe Bonnes                [email protected]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to