<lonejack>
I need to debug a dual core uC (STM32) and I suppose it is possible by openocd+ddd... Can you confirm that is possible(or not), if yes, can you also tell me if exist a document that give me some info?
bvernoux has joined #openocd
<Haohmaru>
openocd can surely work with multi-core chips
<Haohmaru>
but i haven't done it
<bencoh>
debuging multicore works yeah, but it might depend on what you expect
joconor has quit [Ping timeout: 252 seconds]
<bencoh>
usually I configure -rtos hwthread for every core in a cpu
joconor has joined #openocd
<bencoh>
and assuming your target file is properly built it should do something like "target smp core0 core1" to bind the cores together (afaiu)
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
<lonejack>
and... how to connect to ddd? Do I need to run two session of ddd?
<bencoh>
I use gdb, and it works with only one gdb session
<lonejack>
SMP i good for me, but you can switch among cores?
<lonejack>
**SMP is..
<bencoh>
each core appears as a thread in gdb, they are all stopped in sync, and you can switch between them just like you'd switch between threads while debugging a multithreaded process
Haohmaru has quit [Quit: saionara]
<lonejack>
bencoh, to me this is perfect
<lonejack>
in my project I've two different elf files. Is i possible to handle this situation?
<lonejack>
if you know...
<bencoh>
what do you mean by two elf files?
<lonejack>
In my environment (STM32CubeIDE) the compilation generates two elf(executable) files one per each core..
<bencoh>
uh...
<bencoh>
maybe that's not smp then ...
<bencoh>
if so you can forget everything about smp/hwthread and just connect two gdb sessions to two different ports
<bencoh>
if each core runs its own image
<lonejack>
I also prefer one single image for more cores...
<lonejack>
But this is what I've
<PaulFertser>
lonejack: then you do not need to treat them as SMP if you have different ELF files for both
<PaulFertser>
lonejack: in that case just run OpenOCD in non-SMP multicore mode and you'll have two different ports for two independent GDB(+DDD) sessions.