NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
tsal has quit [Ping timeout: 255 seconds]
tsal has joined #openocd
Fleck has quit [Ping timeout: 255 seconds]
Flecks has joined #openocd
PsySc0rpi0n has joined #openocd
Haohmaru has joined #openocd
TKruse has joined #openocd
<TKruse> Hi, I am trying to debug a linux user application and I was wondering whether I could do it via JTAG+openOCD? The target is the ARM core on a DE10nano board. The problem I'm facing is that I don't know how to load just the user application and tell the gdbserver/openocd to start it. Is this even possible ?
<karlp> TKruse: gdbserver [command line to run program?] I'm not sure I follow.
<karlp> doing it via jtag is sure, feasible, but you're debugging linux + your app + everything else at that point, which just sounds wildly unproductive
<TKruse> Thanks for the reply. I agree that this is unproductive since debugging user apps is simply achieved by the gdbserver which is available on the target. I'm just curious whether it is feasable at all. To be honest I was hoping to get a "no" as the answer :D Is there any mechanism integrated into openocd or does this need lots of workarounds ?
<karlp> I mean, openocd doesn't care,
<karlp> gdb will be fun though, as you're trying to debug a user app, but inside the kernel, and the memory addresses and protections between kernel and user are going to be absurd.
<karlp> what's wrong with gdbserver?
<TKruse> There is nothing wrong with gdbserver. With your answer I drop the idea of using jtag for debugging user apps and go with the gdbserver. For the background of my question: A collegue of mine prefers jtag for debugging since he is used to it but for applications without operating system and I need to convince him of using the gdbserver now.
<Haohmaru> jtag itself is nothing here.. it's just an electrical interface thing more or less
<Haohmaru> (someone else could rephrase that better)
<Haohmaru> if you have a whole OS, then you potentially have "gdb" available in it.. thus run your program thru that gdb
<Haohmaru> no need for hardware debuggers and JTAGs and whatnot
<karlp> you still often run gdbserver on the target, and gdb remote on the host, so you don't have to have all the debug stuff on the target
marcusmae has quit [Ping timeout: 264 seconds]
marcusmae has joined #openocd
PsySc0rpi0n has quit [Ping timeout: 265 seconds]
PsySc0rpi0n has joined #openocd
TKruse has quit [Ping timeout: 260 seconds]
gzlb has quit [Ping timeout: 260 seconds]
mawk has quit [Remote host closed the connection]
mawk has joined #openocd
gzlb has joined #openocd
PsySc0rpi0n has quit [Ping timeout: 248 seconds]
PsySc0rpi0n has joined #openocd
TKruse has joined #openocd
TKruse has quit [Client Quit]
peeps[work] has joined #openocd
Haohmaru has quit [Ping timeout: 240 seconds]
buldi777 has joined #openocd
buldi777 has quit [Quit: Leaving]
danselmi has joined #openocd
peeps[work] has quit [Ping timeout: 260 seconds]
PsySc0rpi0n has quit [Ping timeout: 248 seconds]