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.
<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
<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>
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
<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>
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?