NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
Hawk777 has quit [Quit: Leaving.]
nerozero has joined #openocd
nerozero has quit [Read error: Connection reset by peer]
nerozero has joined #openocd
Hawk777 has joined #openocd
olerem has quit [Ping timeout: 245 seconds]
olerem has joined #openocd
MGF_Fabio has joined #openocd
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
karlp1 is now known as karlp
wingsorc has quit [Ping timeout: 264 seconds]
Foxyloxy has quit [Quit: Textual IRC Client: www.textualapp.com]
Foxyloxy has joined #openocd
zmatt has quit [Ping timeout: 256 seconds]
zmatt has joined #openocd
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
vampirefrog has quit [Quit: Leaving]
lonejack has joined #openocd
<lonejack> Hi gentlemen
<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
zjason`` is now known as zjason
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
<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.
Foxyloxy has quit [Quit: Textual IRC Client: www.textualapp.com]
Foxyloxy has joined #openocd
<lonejack> PaulFertser, I run this command [openocd -f interface/stlink.cfg -c "adapter_khz 1000; transport select hla_swd;set DUAL_CORE 1;set CHIP_NAME STM32H7ZI" -f target/stm32h7x.cfg]
<lonejack> on the log that I get, it seems that it recognizes only the cpu0 "Info : stm32h7x.cpu0: hardware has 8 breakpoints, 4 watchpoints"
<lonejack> Probably I resolved...
<lonejack> openocd -f interface/stlink-dap.cfg -c "adapter speed 1000; transport select dapdirect_swd;set DUAL_CORE 1;set CHIP_NAME STM32H755ZI" -f target/stm32h7x.cfg
<lonejack> Now I see this:
<lonejack> Info : starting gdb server for stm32h7x.cpu0 on 3333
<lonejack> Info : Listening on port 3333 for gdb connections
<lonejack> Info : starting gdb server for stm32h7x.cpu1 on 3334
<lonejack> Info : Listening on port 3334 for gdb connections
<lonejack> Thank you PaulFertser and bencoh
<PaulFertser> lonejack: right, you need the full stlink mode, not hla. So works nicely for you like that?
<lonejack> At moment I see something as expected
<lonejack> now I'll check the ddd
<lonejack> But seems yours suggestions are correct
lonejack has quit [Quit: Leaving]
nerozero has quit [Ping timeout: 272 seconds]
MGF_Fabio has quit [Ping timeout: 246 seconds]
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
bvernoux has quit [Quit: Leaving]
wingsorc has joined #openocd
MGF_Fabio has joined #openocd
MGF_Fabio has quit [Ping timeout: 246 seconds]