NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
vampirefrog has quit [Ping timeout: 246 seconds]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
tsal has quit [Ping timeout: 264 seconds]
tsal has joined #openocd
Hawk777 has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Hawk777 has joined #openocd
dormito has quit [Ping timeout: 256 seconds]
dormito has joined #openocd
nerozero has joined #openocd
Kerr has quit [Remote host closed the connection]
Kerr has joined #openocd
Kerr_ has joined #openocd
Kerr has quit [Ping timeout: 272 seconds]
MGF_Fabio has joined #openocd
Kerr_ has quit [Remote host closed the connection]
Bugies has joined #openocd
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
vampirefrog has joined #openocd
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur_ has joined #openocd
erhankur has quit [Read error: Connection reset by peer]
erhankur_ has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Bugies has quit [Ping timeout: 256 seconds]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
bvernoux has joined #openocd
slobodan has joined #openocd
erhankur has quit [Remote host closed the connection]
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
erhankur has joined #openocd
Bugies has joined #openocd
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
erhankur has quit [Read error: Connection reset by peer]
erhankur has joined #openocd
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
erhankur has quit [Remote host closed the connection]
MGF_Fabio has quit [Ping timeout: 256 seconds]
Haohmaru has quit [Quit: saionara]
erhankur has joined #openocd
erhankur has quit [Ping timeout: 252 seconds]
erhankur has joined #openocd
Hawk777 has joined #openocd
rolf has quit [Remote host closed the connection]
erhankur_ has joined #openocd
rolf has joined #openocd
erhankur has quit [Ping timeout: 264 seconds]
erhankur_ has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur 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
zjason has quit [Read error: Connection reset by peer]
zjason has joined #openocd
nerozero has quit [Ping timeout: 240 seconds]
balrog has quit [Quit: Bye]
balrog has joined #openocd
erhankur has quit [Remote host closed the connection]
flatmush has quit [Ping timeout: 252 seconds]
erhankur has joined #openocd
erhankur_ has joined #openocd
erhankur has quit [Ping timeout: 264 seconds]
bvernoux has quit [Read error: Connection reset by peer]
rolf has quit [Remote host closed the connection]
rolf has joined #openocd
markand has joined #openocd
<markand> o/
<markand> I'm trying to understand who really use swo/tdo in real life because it looks like when I try to find material on that on the web I end quickly on the deep web
<markand> I have an esp32c6 that is configureed to output through uart0+jtag by default, accessing its uart0 with picocom is great but I also would like to get it from jtag if possible
<markand> but as I understand openocd only supports SWO from ARM?
<PaulFertser> Hi
<PaulFertser> markand: SWO is ARM-specific mechanism by definition (so is SWD)
<PaulFertser> markand: what can be implemented in a more generic way is semihosting or probably even jlink rtt.
<markand> so in real life people tend to prefer using an uart output for logging things?
<cambrian_invader> depends on how many pins you have on your chip
<PaulFertser> markand: it depends. Many people count on JTAG and breakpoints/watchpoints and do not need much logging for debugging at all.
<PaulFertser> markand: many people are using ARM chips
<PaulFertser> markand: many are using jlink RTT.
<PaulFertser> And some semihosting.
<markand> using debugger is handy for your own code for sure, but for some libraries you can't do anything else than setting up their logging mechanism to see what's going on (e.g. lwip)
<markand> I have both a esp-prog an a esp32s3, esp32c6 devkit so they have jtag embedded as micro-usb port
<markand> and I feel confused that I can't get access to the tdo port rather than burning a uart0 just for logging external libraries
<PaulFertser> markand: TDO is JTAG specific pin and it's required for JTAG and can't be used for anything else by definition.
<markand> hmmm, I remember than some mates used SWO in their ARM's NXP to print stuff
<markand> I thought it was the equivalent of JTAG's TDO
<markand> oh, thanks I'll have a look
<PaulFertser> markand: ARM has SWJ module inside, it has special method of switching off JTAG and then using same pins for SWD+SWO.
<karlp> swo is _awesome_ and my preferred way of debugging.
<karlp> I'm forced to use some cortex-m0's at the moment, and also some boards where swo is not wired up, so I'm using RTT, and it's .. ok.
<karlp> but not as flexible as swo.
<PaulFertser> erhankur_: thank you, that's extensive and nicely documented
<karlp> use esp apptrace if you have jtag, it works really well.
<karlp> yeah, just saw erhankur was saying the same thing.
<karlp> I'm using that on an esp32 at work, quite happy with it.
<karlp> teh confusion with tdo vs swo, is that, on a common jtag connector, if you use SWD, the TDO pin becomes "unused" so it's often used by SWO.
<karlp> if you're using JTAG, it's required part of it.
<karlp> it's not "use TDO as as an output"
<karlp> it's "use swd+SWO, which happens to be tthe pin that TDO is on, if you would be using jtag"
<karlp> if that helps?
<erhankur_> Nice to hear you liked apptrace feature. It is quite faster than semihosting. Espressif way of Jlink-RTT