NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
indy has quit [Quit: ZNC 1.8.2 - https://znc.in]
indy has joined #openocd
indy has quit [Client Quit]
indy has joined #openocd
indy has quit [Ping timeout: 244 seconds]
tsal has quit [Ping timeout: 256 seconds]
indy has joined #openocd
indy has quit [Ping timeout: 240 seconds]
indy has joined #openocd
tsal has joined #openocd
urja has quit [Read error: Connection reset by peer]
urja has joined #openocd
irf21k has quit [Ping timeout: 245 seconds]
urjaman has joined #openocd
urja has quit [*.net *.split]
Inoperable has quit [*.net *.split]
Steffanx- has quit [*.net *.split]
mithro has quit [*.net *.split]
wolfshappen has quit [*.net *.split]
Steffanx- has joined #openocd
mithro has joined #openocd
Inoperable has joined #openocd
wolfshappen has joined #openocd
wolfshappen has quit [Max SendQ exceeded]
wolfshappen has joined #openocd
Bertl_oO is now known as Bertl_zZ
nerozero has joined #openocd
michalkotyla has quit [Quit: https://quassel-irc.org - Czatuj komfortowo. Wszędzie.]
cluelessperson has quit [Ping timeout: 264 seconds]
cluelessperson_ has joined #openocd
cluelessperson_ has quit [Quit: ZNC - https://znc.in]
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
renrelkha has quit [Quit: bye]
renrelkha has joined #openocd
Bertl_zZ is now known as Bertl
DefekC has joined #openocd
DefekC has left #openocd [#openocd]
DefekC has joined #openocd
<DefekC> Just an update from my adventures in compiling OpenOCD (for those who follow): I finally got to compile it.
<DefekC> With a HUGE help from my friend (one of Linux Overlords) following changes were made in this process:
<DefekC> 1) libusb-1.0.24 was downloaded (https://github.com/libusb/libusb/releases) & unpacked;
<DefekC> 2) it was referenced to LIBUSB1_SRC "variable" (I am sure I am using the terms here wrong... forgive a noob if You can);
<DefekC> export LIBUSB1_SRC="~Documents/GIT/libusb-1.0.24"
<DefekC> 3) OpenOCD config was changed to add STLink (because I actually need it);
<DefekC> export OPENOCD_CONFIG="--enable-stlink"
<DefekC> 4) Cross-build script was executed with compiler in mind:
<DefekC> ./contrib/cross-build.sh i686-w64-mingw32
<DefekC> 5) we could not understand why, but after compilation, executable wanted an extra libgcc_s_sjlj-1.dll to be copied over alongside with openocd.exe and libusb-1.0.dll.
<DefekC> I could not understand half of what he was doing, but during his attempts he scratched his head more than I've ever seen him doing it! :D
<DefekC> Now next step - trying to add support for APM32F051 MCUs.
<bencoh> ah, right, libusb has support for windows
<DefekC> This where I still don't understand things:
<DefekC> libusb is a library *originally* intended for USB on Linux, right?
<DefekC> But from what I see, for a long time it's been supported on all major OS'es... OS's ... OS? Sh**! :D
<DefekC> People were expecting different library for Windows for USB (something much like special libraries for FTDI support from its vendor)?
<DefekC> This one threw me off for a very long time...
<bencoh> that wouldn't be the first or only project to start as linux-only and eventually support most major OSes
<PaulFertser> DefekC: why do not you compile natively on windows with MSYS2? It's supposed to be much easier.
<PaulFertser> DefekC: libusb provides userspace with an API to basically implement "USB drivers" in userspace. It probably originated on GNU/Linux platforms, but now has backends to support many OSes.
<PaulFertser> DefekC: on windows libusb usually communicates with the WinUSB kernel driver to do the job.
<PaulFertser> DefekC: you've seen README.Windows in the OpenOCD sources haven't you?
<PaulFertser> DefekC: and btw README mentions cross-build.sh
<PaulFertser> There's also .github/workflows/snapshot.yml ...
<DefekC> PaulFertser , I did try to do it on Windows MSYS2 initially. But the problems were exactly the same.
<DefekC> I switched to Linux only due to fact I knew a guy locally who I could visit for help (beggars aren't choosers).
<DefekC> At this time I have both setups (Windows MSYS2 & Linux) available, and I could try to replicate what we did yesterday on Windows machine too.
<DefekC> Yes, I went through README. But I would lie saying that I did it thoroughly...
<PaulFertser> DefekC: so do you still have any issues/problems?
<PaulFertser> DefekC: with MSYS2 you build it following MSYS2 manual for building _native_ software.
<PaulFertser> Should work the same as on GNU/Linux.
<DefekC> No, not at the moment.
<DefekC> OpenOCD compiles. Now I have to try to modify the source.
<DefekC> Thank You, PaulFertser!
<PaulFertser> DefekC: can't be same issues if you install libusb etc normally with pacman as per MSYS2 manual.
<DefekC> I'll give it a go after work!
<DefekC> P.S. - I really want to understand all of this as I really want to start to migrate away from Windows to Linux. This is... a good start I guess! :D
<PaulFertser> DefekC: good luck :) Please feel free to ask any specific questions.
armit has joined #openocd
<armit> i have a rpi4 and jlink connected, the connection works, i can run reg, but when i want to dump memory with "dump_image"  i get : abort occured - dscr = 0x03047d53
<armit> any ideas how to fix that ?
<armit> or what this error means?
michalkotyla has joined #openocd
michalkotyla has quit [Quit: https://quassel-irc.org - Czatuj komfortowo. Wszędzie.]
rkta has quit [Quit: leaving]
rkta has joined #openocd
DefekC has quit [Ping timeout: 256 seconds]
Haohmaru has quit []
nerozero has quit [Ping timeout: 250 seconds]
tomtastic has quit [Quit: ZNC - https://znc.in]
tomtastic has joined #openocd
armit has quit [Ping timeout: 256 seconds]
Fist0urs has quit [Ping timeout: 268 seconds]
c4017w_ has joined #openocd
zapb_ has joined #openocd
abg_ has joined #openocd
meow_wei has joined #openocd
tomtastic_ has joined #openocd
Steffann has joined #openocd
GyrosGei1r has joined #openocd
tomtastic has quit [*.net *.split]
medicalwei has quit [*.net *.split]
GyrosGeier has quit [*.net *.split]
abg has quit [*.net *.split]
c4017w__ has quit [*.net *.split]
zapb__ has quit [*.net *.split]
Steffanx has quit [*.net *.split]
abg_ is now known as abg
cluelessperson has joined #openocd
Steffann is now known as Steffanx
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd