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: 268 seconds]
Hawk777 has quit [Quit: Leaving.]
c4017w_ has quit [Read error: Connection reset by peer]
c4017w_ has joined #openocd
Getty has quit [Quit: changing servers]
Getty has joined #openocd
cp--- has quit [Ping timeout: 268 seconds]
cp--- has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
c4017_ has quit [Read error: Connection reset by peer]
tsal has quit [Ping timeout: 250 seconds]
tsal has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 240 seconds]
thinkfat_ has joined #openocd
thinkfat has quit [Ping timeout: 260 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 268 seconds]
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 268 seconds]
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
nerozero has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
Krazubu has joined #openocd
Hawk777 has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
Haohmaru has joined #openocd
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Hawk777 has quit [Quit: Leaving.]
Bertl_oO is now known as Bertl_zZ
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 268 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
_whitelogger has joined #openocd
ho4x has quit [Ping timeout: 256 seconds]
ho4x has joined #openocd
c4017w_ has joined #openocd
Steffann is now known as Steffanx
c4017w__ has quit [Ping timeout: 268 seconds]
key2_ has joined #openocd
key2 has quit [Ping timeout: 250 seconds]
key2_ is now known as key2
gruetzkopf has quit [Ping timeout: 250 seconds]
ErikSchillingAbl has quit [Ping timeout: 250 seconds]
shoragan has quit [Ping timeout: 250 seconds]
gruetze_ has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
shoragan has joined #openocd
ErikSchillingAbl has joined #openocd
tomtastic_ has quit [Read error: Connection reset by peer]
tomtastic has joined #openocd
LinuxHackerman has quit [Quit: Bridge terminating on SIGTERM]
ErikSchillingAbl has quit [Quit: Bridge terminating on SIGTERM]
<jancoow> I'm trying to set openocd up on ubuntu, but I'm unable to connect to my cmsis-dap device
<jancoow> Error: unable to find a matching CMSIS-DAP device
<jancoow> I've already added the udev rules
Jybz[m] has joined #openocd
<jancoow> Debug: 70 16 cmsis_dap_usb_bulk.c:248 cmsis_dap_usb_open(): skipping interface 1, endpoint[0] is not bulk out
hpfr has joined #openocd
shoragan[m] has joined #openocd
LinuxHackerman has joined #openocd
JCHammons[m] has joined #openocd
ErikSchillingAbl has joined #openocd
LinuxHackerman has quit [Remote host closed the connection]
hpfr has quit [Remote host closed the connection]
JCHammons[m] has quit [Read error: Connection reset by peer]
shoragan[m] has quit [Read error: Connection reset by peer]
ErikSchillingAbl has quit [Remote host closed the connection]
Jybz[m] has quit [Remote host closed the connection]
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 240 seconds]
Jybz[m] has joined #openocd
<borneoa_> jancoow: I remember something like that. You should specify that your cmsis-dap is 'hid', not 'bulk'. I don't remember the command, I will check it shortly, but you can find it in the manual
hpfr has joined #openocd
LinuxHackerman has joined #openocd
shoragan[m] has joined #openocd
JCHammons[m] has joined #openocd
ErikSchillingAbl has joined #openocd
<jancoow> I just rebooted to windows, but can you give me a hint where to find that? I've had no issues with Arch so I don't understand what I'm doing wrong
<Haohmaru> it works fine in debian after you add your user to that group.. "dialout" or how was it called
ErikSchillingAbl has quit [Remote host closed the connection]
JCHammons[m] has quit [Remote host closed the connection]
hpfr has quit [Remote host closed the connection]
shoragan[m] has quit [Remote host closed the connection]
Jybz[m] has quit [Remote host closed the connection]
LinuxHackerman has quit [Remote host closed the connection]
<jancoow> I've done that
<jancoow> That's for serial
<Haohmaru> iirc it covers USB devices too
<Haohmaru> i don't think i did anything special for the cmisis-dap debugger
<Haohmaru> mine does have a serial-over-USB tho
<jancoow> I've added the suggested udev rules, that fixed the permission denied
<jancoow> So those are working
<Haohmaru> i don't think i've fiddled with such things
Jybz[m] has joined #openocd
<jancoow> on Arch I also get the error Debug: 69 18 cmsis_dap_usb_bulk.c:248 cmsis_dap_usb_open(): skipping interface 0, endpoint[0] is not bulk out
hpfr has joined #openocd
shoragan[m] has joined #openocd
LinuxHackerman has joined #openocd
<jancoow> however, after that, Info : 71 85 cmsis_dap.c:1039 cmsis_dap_get_caps_info(): CMSIS-DAP: SWD supported
JCHammons[m] has joined #openocd
ErikSchillingAbl has joined #openocd
<jancoow> lsusb
<jancoow> woops, wrong window
<Haohmaru> busted
<borneoa_> joconor: cmsis_dap_backend hid
<karlp> is that cmsis v1 vs v2? don't they both require the "CMSIS-DAP" in the strings?
<karlp> that's just working around a borked/non-standard dongle right?
shoragan[m] has quit [Quit: Client limit exceeded: 20000]
<jancoow> I compiled both on ubuntu as arch from source, same src code .I'm using the same .cfg file, containing:
Jybz[m] has quit [Quit: Client limit exceeded: 20000]
hpfr has quit [Quit: Client limit exceeded: 20000]
Jybz[m] has joined #openocd
<jancoow> adapter driver cmsis-dap \n adapter speed 400 \n cmsis_dap_vid_pid 0x03eb 0x2141
hpfr has joined #openocd
shoragan[m] has joined #openocd
<karlp> try what borneoa_ said.
LinuxHackerman has quit [Quit: Client limit exceeded: 20000]
JCHammons[m] has quit [Quit: Client limit exceeded: 20000]
jancoow has quit [Ping timeout: 268 seconds]
ErikSchillingAbl has quit [Quit: Client limit exceeded: 20000]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 268 seconds]
bohdan-tymkiv has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
Bertl_zZ is now known as Bertl
Guest57 has joined #openocd
Guest57 has quit [Client Quit]
bohdan-tymkiv has quit [Ping timeout: 256 seconds]
bohdan-tymkiv has joined #openocd
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
nvmd has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
nerozero has quit [Ping timeout: 268 seconds]
bohdan-tymkiv has quit [Ping timeout: 245 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
Haohmaru has quit []
jancoow has joined #openocd
gnom has quit [Ping timeout: 256 seconds]
gnom has joined #openocd
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 250 seconds]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 250 seconds]
<jancoow> Karpl I'm sorry my connection dropped away
LinuxHackerman has joined #openocd
JCHammons[m] has joined #openocd
ErikSchillingAbl has joined #openocd
<PaulFertser> jancoow: did you try "cmsis_dap_backend hid" ?
<jancoow> PaulFertser I've to grep my laptop, give me a moment
<jancoow> I brought the SSD with the installation home and will try it
<jancoow> PaulFertser I do wanna tell you that the communication to openOCD over the TCL port is going flawless now!
<jancoow> I've done 100 PCBs today without a hickup
<PaulFertser> jancoow: so glad to hear that. What was the trick?
<jancoow> PaulFertser well long story short; I had to continue/improve the tool because a colleague didnt had enough time for it. I didn't read much into the communication part to OPENOCD but there was a big flaw in the code: not every send command was listening for a response
<jancoow> So the read buffer went out of sync...
<jancoow> I was unaware that was happening so ye.
<jancoow> Tho we had a fun new bug. His CRC calculation failed for the Intel HEX files in some cases. But when writing this through openOCD, It won't throw an error that says CRC mismatch
<jancoow> So you think something is flashed okay
<jancoow> But it isn't
<PaulFertser> jancoow: must have been hell of journey, glad you found and fixed all that.
<jancoow> Can't tell you:) the previous tool is in c#. It's so buggy and barely works, yet it is in production. Big headache. The python tool works so flawless. Restarting openOCD in case of a failure also works great. Now the last thing is to move away from buggy windows
<jancoow> Hopefully in time for our next big order ;p
<PaulFertser> Using OpenOCD on GNU/Linux is usually easier, yes.
<PaulFertser> No need to deal with Zadig to install WinUSB.
c4017w_ has joined #openocd
Guest28 has joined #openocd
Guest28 has quit [Client Quit]
c4017w__ has quit [Ping timeout: 256 seconds]
<jancoow> With what?
<PaulFertser> jancoow: when you use OpenOCD on windows with ftdi or jlink or some other adapters you have to install WinUSB driver somehow. This is never needed on GNU/Linux.
<jancoow> We are only using an atmel ICE
<PaulFertser> If you're using HID interface then it's probably slow, if you're using bulk then probably WinUSB is needed, but I'm not sure whether vendor installs that driver automatically or not.
<jancoow> How can I check what OPENOCD is using?
<PaulFertser> jancoow: openocd is always using libusb for bulk USB, and libusb can use WinUSB or libusbK kernel drivers. For HID OpenOCD uses HIDAPI library, and that is using some Windows-specific calls, no special drivers needed.
<jancoow> ahh wel, lets see if I can get it working under ubuntu
<jancoow> first lemme check if it works on my arch laptop
<jancoow> yep that works fine
<jancoow> install from AUR and works immediately
Krazubu has joined #openocd
<PaulFertser> :)
<jancoow> ubuntu not, so same scenario
<jancoow> so on Arch I see: [ 285.433801] usbcore: registered new interface driver usbhid [ 285.433802] usbhid: USB HID core driver
<jancoow> which I dont see on ubuntu
<PaulFertser> jancoow: what does OpenOCD say on ubuntu?
<PaulFertser> jancoow: I'm sure USB HID works there out of the box and the issue is somewhere else.
<jancoow> ah ye the hid driver was activated earlier I see
<jancoow> openocd gives : error: unable to find a matching CMSIS-DAP device
<PaulFertser> jancoow: what if you try with sudo?
<PaulFertser> (for testing purposes)
<jancoow> same error :/
v0|d has joined #openocd
<PaulFertser> jancoow: please show lsusb and full openocd command line and output.
<jancoow> https://es.jancokock.me/5f545/ on the left, arch install what works. On the right the ubuntu install
<jancoow> It's giving the same errors about that bulk transport
<jancoow> however on Arch it just.. works?
zjason``` has joined #openocd
zjason`` has quit [Ping timeout: 268 seconds]
<jancoow> PaulFertser want more information do you want?
<PaulFertser> jancoow: I miss the version numbers. Guess on ubuntu it might be older.
Bertl is now known as Bertl_oO
<jancoow> PaulFertser nah, on ubuntu it's compiled from source, running the same as my arch pc on work. the AUR from arch on this laptop is a tiny bit older
<PaulFertser> jancoow: when compiling from scratch, can you show the end of configure output? Did it have all yes?
<jancoow> on ubuntu: 0.11.0+dev-00419-ge472c1716
<jancoow> yes it did
<jancoow> but lemme check
<PaulFertser> And on Arch?
<jancoow> okay thanks mate... I really made a mistake.
<jancoow> it says no to CMSIS
<jancoow> Im so stupid.
<jancoow> I thought I had checked it but..
<jancoow> Wait, it says CMSIS-DAP Compliant Debugger no
<jancoow> but it does say CMSIS-DAP v2 Compliant Debugger yes (auto)
<PaulFertser> jancoow: yes, but guess your CMSIS is older and supports only HID.
<PaulFertser> So you need HIDAPI
<jancoow> and for that I need libhidapi so I guess that will solve it
<jancoow> ye
<PaulFertser> libhidapi-dev
<jancoow> yesyes :)
<jancoow> its compiling
c4017w__ has joined #openocd
<karlp> it _should_ automatically use hid backend now, you shoulnd't have to specify that "cmsis_dap_backend hid" then hopefully
<PaulFertser> Right
<jancoow> it wooooorks
<jancoow> so yes compiling with the right support helps
* karlp cheers
<jancoow> totally my fault.
<jancoow> I'm sorry guys
c4017w_ has quit [Ping timeout: 256 seconds]
<PaulFertser> It's not obvious at all.
<karlp> we could likely change the code to report that better too...
<jancoow> so how does it actually works
<jancoow> it first tries to use bulk ?
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 256 seconds]
Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
nvmd has quit [Quit: WeeChat 3.4]
c4017w__ has joined #openocd
c4017w_ has quit [Ping timeout: 256 seconds]
c4017w_ has joined #openocd
c4017w__ has quit [Ping timeout: 260 seconds]