NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
thinkfat has joined #openocd
thinkfat_ has quit [Ping timeout: 248 seconds]
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
tsal has quit [Ping timeout: 268 seconds]
tsal has joined #openocd
ttmrichter has quit [Quit: Bye]
ttmrichter has joined #openocd
andrea3 has joined #openocd
<andrea3> Hey,  all im getting an error with an attempt to debug a RP2040 in eclipse with another pico. got the paste here if anyone can throw an idea what i may be doing wrong.
<andrea3> Eclipse settings are here https://imgur.com/a/0w7svlZ
wingsorc has quit [Ping timeout: 260 seconds]
braunr has quit [Remote host closed the connection]
<PaulFertser> andrea3: your paste shows no errors at all :)
<PaulFertser> andrea3: please use direct link to image files if you feel like sharing some.
<andrea3> Oh sorry will do
<andrea3> so these nothing wrong with these lines
<andrea3> target halted due to undefined, current mode: Thread
<andrea3> xPSR: 0x61000000 pc: 0x10001154 msp: 0x20041fa0
<andrea3> shutdown command invoked
<PaulFertser> andrea3: according to your paste it nicely connected, then did something (a -d2 log would show what exactly), then something told OpenOCD to close.
<andrea3> il paste the log in a paste bin, is that alright ?
<PaulFertser> andrea3: "Truncated register 16 in remote 'g' packet" hm, now that's the error
<PaulFertser> andrea3: is it possible you're starting some x86 GDB and not arm-none-eabi-gdb?
<PaulFertser> Or not multiarch GDB.
<PaulFertser> andrea3: normally multiarch GDB asks for XML describing target registers and other features, OpenOCD gives it back, and then no mismatch with "g" reply is possible.
<PaulFertser> andrea3: I suggest you try starting gdb manually, and use "set debug remote 1", then "tar ext :3333" command there.
<andrea3> il give that a try. im not too familiar with what multiarch GBD is
<PaulFertser> andrea3: it's just GDB that was compiled with support for all the architectures.
nerozero has joined #openocd
<andrea3> with the commands for set debug remote 1 & tar ext:3333  is it just
<andrea3> ie
<andrea3> -> open cmd
<andrea3> 1) -s "C:/openocd-rp2040/openocd/tcl"
<andrea3> -f "C:/openocd-rp2040/openocd/tcl/interface/picoprobe.cfg"
<andrea3> -f "C:/openocd-rp2040/openocd/tcl/target/rp2040.cfg"
<andrea3> set debug remote 1
<andrea3> tar ext :3333
<andrea3> ?
<PaulFertser> andrea3: no, you're showing commands for openocd, I'm talking about starting OpenOCD in another console and then starting GDB and running those two commands.
<andrea3> ah ok
<andrea3> https://ibb.co/7khVPsc like this then
<andrea3> + with a session started already started
<andrea3> https://pastebin.com/AkupkZK4 is with the autostart disabled for the GDB client
<andrea3> a hint over in eclipse stats to disable it for multi core applications
<PaulFertser> andrea3: I'm back, looking
<andrea3> Appreciate it
<PaulFertser> andrea3: this last paste is very different, and not due to changes in GDB commands. Something else changed. Probably picoprobe needs power cycling.
<PaulFertser> andrea3: and I do not see where you pasted GDB output. It should print quite some lines with that "debug remote 1" enabled.
<andrea3> i've seen to have had some issue with my enviroment variables il just sort that out and give that a try
<PaulFertser> andrea3: I suggest for the tests you do not use eclipse at all. Just start openocd manually in one terminal (emulator) and GDB in another.
<PaulFertser> So that it would be easy to try things and see logs.
<andrea3> yeah 100% thats what im sorting out now. just had some issues with cmd not seeing i-gdb
<PaulFertser> andrea3: cool, waiting for your new data then
<andrea3> still having issues with path, sorry for the delay
<PaulFertser> np
<PaulFertser> Take your time
<andrea3> yeah quite strange im now getting blocked due to the lack of a python27.dll that should be present. il do a reinstall/powercycle
andrea3 has quit [Quit: Client closed]
andrea42 has joined #openocd
<andrea42> path seems to be sorted
<andrea42> now just this
<PaulFertser> andrea42: somehow it's very low res but it looks like arm-none-eabi-gdb isn't starting at all. As if it's not executable or exits immediately "just because".
<andrea42> Better res:https://imgur.com/a/WKE8LIw
<andrea42> il continue to look more into it and pop back. another thing i can test for is to try out the VSCODE approach since thats what people usually op for and test if that works at the very least and work backwards from that.
<PaulFertser> andrea42: I suggest you make it to work without GUIs first.
<andrea42> but it is strange that its not launching anything
<PaulFertser> I can't comfortably view imgur list of pictures, only if you paste URLs directly to .png or .jpg files.
<andrea42> ah ok
<PaulFertser> Guess something is still wrong with the PATH.
<PaulFertser> I'm not using windows so can't tell how to diagnose properly.
<PaulFertser> andrea42: yeah, somehow it appears to use wrong gdb executable. So it can't start at all.
<andrea42> here we go
<PaulFertser> On Unix you have "which" command to show you what's starting.
<PaulFertser> You can also always use full path to the executable to not depend on PATH.
<andrea42> dumb question, if these spaces in the path ( "C:\Program Files (x86)\Arm GNU Toolchain arm-none-eabi\11.2 2022.02\bin\arm-none-eabi-gdb.exe")  what would it look it as a command ?
<andrea42> i did try and paste the elf file within the bin and try and launch it there but that didnt work either
<PaulFertser> andrea42: I think you have to put it in double quotes
<PaulFertser> andrea42: you do not need the elf file to start gdb.
<PaulFertser> Start without arguments.
<andrea42> nup, something still off with python
<andrea42> il do a complete reinstall for it
<andrea42> ok completely nuking python sorted that. sorry i've never had that issue happen before
<PaulFertser> Hah
<PaulFertser> Windows is suffering guaranteed
<andrea42> haha
<andrea42> ok so its not waiting on commands by the loosk of it
<PaulFertser> GDB starts but doesn't allow you to type commands?
<andrea42> i can
<PaulFertser> andrea42: so remote 1, tar ext please
<andrea42> yep
<andrea42> il upload it in a sec
<PaulFertser> andrea42: looks like it's working fine. Probably your Eclipse was starting some other GDB executable.
<andrea42> maybe that python installation was the root of all evil haha
<andrea42> appreciate the help paul
<PaulFertser> andrea42: does it work with Eclipse now?
<andrea42> unfortuantely no still that same issue as before
<andrea42> ah another path issue, i swapped out the shortened path for a direct and that fixed it as well
<andrea42> ${cross_prefix}gdb${cross_suffix} would of been pointing to nothing as well
<andrea42> again appreciate the help. absolute life saver, been at it for the last few days
<PaulFertser> andrea42: so glad to have helped :)
braunr has joined #openocd
indy has quit [Ping timeout: 260 seconds]
indy has joined #openocd
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
kraiskil has joined #openocd
kraiskil has quit [Ping timeout: 268 seconds]
kraiskil has joined #openocd
kraiskil has quit [Ping timeout: 268 seconds]
Hawk777 has joined #openocd
erhankur has joined #openocd
erhankur_ has joined #openocd
erhankur has quit [Ping timeout: 268 seconds]
erhankur_ has quit [Ping timeout: 268 seconds]
SteveMarple has quit [Remote host closed the connection]
erhankur has joined #openocd
nerozero has quit [Ping timeout: 265 seconds]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Hawk777 has quit [Quit: Leaving.]
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]
urja has quit [Read error: Connection reset by peer]
erhankur has joined #openocd
erhankur has quit [Ping timeout: 268 seconds]
urja has joined #openocd