NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 252 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 252 seconds]
zjason` is now known as zjason
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 240 seconds]
wingsorc has quit [Remote host closed the connection]
wingsorc has joined #openocd
thinkfat_ has joined #openocd
thinkfat has quit [Ping timeout: 250 seconds]
wingsorc has quit [Quit: Leaving]
akaWolf has quit [Ping timeout: 272 seconds]
akaWolf has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 252 seconds]
wingsorc has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 252 seconds]
Bertl is now known as Bertl_zZ
ttmrichter_ is now known as ttmrichter
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 272 seconds]
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 252 seconds]
nerozero has joined #openocd
Krazubu has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 252 seconds]
nathanhi has quit [Quit: bye]
nathanhi has joined #openocd
wingsorc has quit [Ping timeout: 250 seconds]
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
c4017w_ has joined #openocd
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
c4017w__ has quit [Ping timeout: 272 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 240 seconds]
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 252 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 240 seconds]
Bertl_zZ is now known as Bertl
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 272 seconds]
c4017w__ has joined #openocd
crabbedhaloablut has quit [Ping timeout: 240 seconds]
crabbedhaloablut has joined #openocd
c4017w_ has quit [Ping timeout: 272 seconds]
akaWolf has quit [Ping timeout: 252 seconds]
akaWolf has joined #openocd
akaWolf has quit [Ping timeout: 252 seconds]
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 272 seconds]
Bertl is now known as Bertl_oO
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 272 seconds]
akaWolf has joined #openocd
cambrian_invader has quit [Ping timeout: 250 seconds]
cambrian_invader has joined #openocd
c4017w_ has joined #openocd
nerozero has quit [Ping timeout: 272 seconds]
c4017w__ has quit [Ping timeout: 240 seconds]
Haohmaru has quit []
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 252 seconds]
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 252 seconds]
c4017w__ has joined #openocd
Krazubu has joined #openocd
c4017w_ has quit [Ping timeout: 272 seconds]
uartist has joined #openocd
<uartist> just got an arduino zero (has a SAMD21 chip), but openocd doesn't work (I'm using Windows atm)
<uartist> it just exits with no error whatsoever after "Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'."
<uartist> the driver of the CMSIS-DAP device is WinUSB
<uartist> tried running as administrator as well
<PaulFertser> uartist: hi
<PaulFertser> uartist: please use some pastebin to show -d3 output
<PaulFertser> uartist: cmsis
<PaulFertser> -dap device v1 or v2?
<uartist> PaulFertser: thanks for your welcoming words! the log as you requested: https://pastebin.com/ubyeKBaE
<PaulFertser> uartist: does it hang there?
<uartist> I don't know which version, it only lists as EDBG CMSIS-DAP
<uartist> No, less then a second and it exits
<PaulFertser> uartist: have you tried running it before you installed winusb driver?
<uartist> yes
<PaulFertser> Is 0x0b05:0x18f3 the adapter in question?
<uartist> that's the reason I update the driver
<PaulFertser> Looks like it's some keyboard.
<PaulFertser> or some leds integrated into motherborad
<uartist> mm, that looks like my mb's led controller
<PaulFertser> uartist: yes, so it basically tries to enumerate interfaces on it and then quits without any message?
<uartist> I'll try WinUSB again
<uartist> looks like it
<PaulFertser> uartist: winusb on led controller?
<uartist> no, on the CMSIS-DAP device
<PaulFertser> uartist: I do not think it should be winusb, it seems to be an old version of cmsis-dap anyway
<PaulFertser> uartist: the problem is that led controller somehow crashes openocd it sees.
<PaulFertser> uartist: can you try adding "cmsis_dap_backend hid" to your config please?
<uartist> what driver should CMSIS-DAP have? libusb? WinUSB? usbhid?
<uartist> "cmsis_dap.c:305 cmsis_dap_open(): unable to find a matching CMSIS-DAP device"
<PaulFertser> uartist: I'd assume it's a regular HID device so windows should install some generic hid driver for it.
<uartist> PaulFertser: reinstaller the regular HID driver and used cmsis_dap_backend hid
<uartist> *reinstalled
<PaulFertser> uartist: what did it install by default when you first plugged it in?
<uartist> trying now
<uartist> PaulFertser: it works!
<uartist> unrelated question: does the SAMD21 support watchpoints?
c4017w_ has joined #openocd
<PaulFertser> uartist: nice :)
<PaulFertser> uartist: yes, watchpoints should work, do you see the number of breakpoints/watchpoints on examination?
<uartist> ah yes
<uartist> greaty
<uartist> *great
<PaulFertser> uartist: btw, if you feel like experimenting one day it would be interesting if you booted GNU/Linux or some other standard OS you're comfortable with and check with GDB why OpenOCD exits while enumerating interfaces of that LED controller.
<uartist> it works on OS X
<PaulFertser> However it might be a bug in libusb on windows.
<PaulFertser> They released a new version recently.
<PaulFertser> macOS you mean? ;)
<uartist> I will check it some day
<uartist> yes
<PaulFertser> If it works there it's likely a windows backend bug then.
<uartist> well, the led controller was my mistake I think
<uartist> I accidently selected it in Zadig to replace the driver
<uartist> but still, it doesn't work without backend hid
<uartist> but it's okay for now, it works
c4017w__ has quit [Ping timeout: 272 seconds]
<PaulFertser> uartist: cool :)
<PaulFertser> uartist: are you running some RTOS on it?
<uartist> no, I need to debug some program that gave me gray hairs on an Uno
<PaulFertser> uartist: I see. I used watchpoints with great pleasure once when one thread was writing over another's data
<PaulFertser> uartist: I hope you'll soon see that being an swdist is easier than being an uartist ;)
<uartist> PaulFertser: if it works
<uartist> I can't seem to find a way to set a data breakpoint in VSCode
<uartist> (I added the variable to watch, but it doesn't break)
<PaulFertser> uartist: I use GDB without any frontends and was happy with it. Does vscode allow to enter gdb commands directly somewhere?
<uartist> yes
<PaulFertser> uartist: then you can use "watch" command there, and see all current watches with "i br"
<uartist> ah yeah, that works a treat
<uartist> I thought you need to have the memory address of the variable to do that
<PaulFertser> uartist: sometimes it's better to set it on address, yes. The tricky thing here is that GDB sets and clears all break and watchpoints before/after every "continue". So probably it's better to set a watch for address.
<uartist> which means you need to key it in again and again and again... everytime you reset or recompile
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<PaulFertser> reset usually gives same address for same variable
<uartist> but anyway, thanks, I didn't find this information on the internet and I searched thoroughly
<zapb_> karlp, did you ping me in the last hours / days?
<karlp> not that I can recall?
<karlp> last I see is someone mentioned the zapb url for libjaylink while some repo was down?
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 250 seconds]
<zapb_> Ah, maybe that triggered my irc client :D
wingsorc has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 252 seconds]
dmh has quit [Quit: ZNC - https://znc.in]
wingsorc has quit [*.net *.split]
nathanhi has quit [*.net *.split]
thinkfat_ has quit [*.net *.split]
dreamcat4 has quit [*.net *.split]
tsal has quit [*.net *.split]
jancoow has quit [*.net *.split]
shoragan has quit [*.net *.split]
rkta has quit [*.net *.split]
nikomo has quit [*.net *.split]
ericonr has quit [*.net *.split]
bacam has quit [*.net *.split]
effbiai has quit [*.net *.split]
marex has quit [*.net *.split]
zmatt has quit [*.net *.split]
antto has quit [*.net *.split]
zapb_ has quit [*.net *.split]
effbiai has joined #openocd
nathanhi has joined #openocd
wingsorc has joined #openocd
bacam has joined #openocd
marex has joined #openocd
zmatt has joined #openocd
antto has joined #openocd
zapb_ has joined #openocd
tsal has joined #openocd
jancoow has joined #openocd
dreamcat4 has joined #openocd
thinkfat_ has joined #openocd
ericonr has joined #openocd
rkta has joined #openocd
nikomo has joined #openocd
shoragan has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 272 seconds]