NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
Hawk777 has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Bertl has quit [Ping timeout: 260 seconds]
Bertl has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Ping timeout: 252 seconds]
Bertl has quit [Ping timeout: 260 seconds]
Bertl has joined #openocd
wingsorc has quit [Remote host closed the connection]
wingsorc has joined #openocd
erhankur has joined #openocd
erhankur has quit [Ping timeout: 260 seconds]
Bertl has quit [Ping timeout: 260 seconds]
Bertl has joined #openocd
defiant has joined #openocd
Hawk777 has joined #openocd
renrelkha has quit [Quit: bye]
renrelkha has joined #openocd
nerozero has joined #openocd
Bertl has quit [Ping timeout: 260 seconds]
Bertl has joined #openocd
Haohmaru has joined #openocd
erhankur has joined #openocd
zjason``` is now known as zjason
Hawk777 has quit [Quit: Leaving.]
Bugies has joined #openocd
Bertl has quit [Ping timeout: 260 seconds]
Bertl has joined #openocd
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]
erhankur has joined #openocd
borneoa_ has quit [Ping timeout: 255 seconds]
mithro has quit [Ping timeout: 246 seconds]
jacob has quit [Read error: Connection reset by peer]
drath42 has quit [Read error: Connection reset by peer]
NishanthMenon has quit [Read error: Connection reset by peer]
borneoa_ has joined #openocd
Steffanx- has quit [Read error: Connection reset by peer]
dreamcat4 has quit [Read error: Connection reset by peer]
Steffanx- has joined #openocd
jacob has joined #openocd
drath42 has joined #openocd
mithro has joined #openocd
NishanthMenon has joined #openocd
dreamcat4 has joined #openocd
wingsorc has quit [Ping timeout: 248 seconds]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
uramhoaH has joined #openocd
Haohmaru is now known as Guest2731
uramhoaH is now known as Haohmaru
erhankur has quit [Ping timeout: 260 seconds]
Bertl has quit [Ping timeout: 260 seconds]
Bertl 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]
erhankur has joined #openocd
wingsorc has joined #openocd
Bertl has quit [Ping timeout: 260 seconds]
Bertl has joined #openocd
akaWolf has joined #openocd
cousteau has joined #openocd
<cousteau> Hi!
<PaulFertser> cousteau: hi
akaWolf has quit [Ping timeout: 252 seconds]
<cousteau> I have two identical Olimex JTAG cables. Not too surprisingly, when I connect both to the same computer and run my OpenOCD script, it goes nuts because it doesn't know which one it's supposed to use. Is there a way to tell it "use ttyUSB0, not ttyUSB1"?
<PaulFertser> cousteau: yes, with "adapter serial" command.
<cousteau> Cool, thanks! I will look into it
<PaulFertser> cousteau: btw, in the future I suggest you just ask your question right away, without waiting for anybody to notice your greeting.
<cousteau> So far I didn't have much luck finding out commands... I'm pretty much using a config script that was already developed by someone else
<cousteau> PaulFertser: the greeting was just a courtesy, all the time between "hi" and my second message was what it took me to type the whole thing on this mobile phone keyboard :/
<cousteau> But thanks for replying "hi" anyway :)
<PaulFertser> cousteau: :)
akaWolf has joined #openocd
<PaulFertser> Typing on a capacitive touchscreen sucks indeed.
<cousteau> With two thumbs
<cousteau> Is [ftdi device_desc] the same as [ftdi_device_desc]? I see documentation on the former but my script uses the latter
<PaulFertser> cousteau: where are you reading the documentation?
erhankur_ has joined #openocd
erhankur has quit [Ping timeout: 260 seconds]
<cousteau> Those docs mention an [adapter list] command, but if I run `openocd -c 'adapter list'` I get an error saying it doesn't know anything about a "list" subcommand
<karlp> and what version of openocd are you running?
<cousteau> Those docs are super out of date, aren't they?
<karlp> possibly the other way around
<karlp> those are the docs for master,
<karlp> are you using a 0.11 release, or master?
<cousteau> 0.10.0 (2021-10-13-11:50)
<karlp> 0.10?
<karlp> so you're super super out of date then :)
<cousteau> That's what openocd --version says
<cousteau> B-but it says it's from 2021!
<PaulFertser> cousteau: that means your openocd binary is super out of date.
<karlp> 0.11 0.11 says it was released march 2021
<PaulFertser> cousteau: and in general I suggest you always use the docs that are installed along with the binary.
akaWolf has quit [Ping timeout: 252 seconds]
<PaulFertser> Debian has 0.12.0 release candidate in testing repository already.
<cousteau> Yeah, that's good advice
<PaulFertser> btw, I'm not sure if that's a good idea or not but I sync doc-release on the website with -rc releases too.
<karlp> that wouldn't sound like a good idea to me personally :)
<karlp> rcs are not releases... IMO..
* cousteau thinks it's best to make the online docs default to the latest released version, so maybe making it default to an RC is a bit premature
<karlp> they are... but not the doc/ tree you're reading, the doc-release/ tree that I linked.
<cousteau> It might be a good thing to provide a link to "here's what the documentation will look like in the next version we're about to release!"
<karlp> and eitherway, you're another release behind all that...
<karlp> there's two sections...
<cousteau> Yeah, this was just my 2¢ on what PaulFertser said
<karlp> oh, I fully agree, the "release" docs shouldn't have the rc docs.
<PaulFertser> So far nobody ever complained about it! I shouldn't have mentioned that ;)
<cousteau> Oh cool, the installed manpage isn't too complete but there's an info manual
<cousteau> OK, so here's the outdated documentation to match my outdated install. Now, there seems to be an [ftdi_serial <serial-number>] command I could use, but I have no idea how to figure out that serial number
<PaulFertser> cousteau: lsusb -v
<cousteau> PaulFertser: thanks! Yeah, that does list a serial string... Now I'll check the other serial cable and hope it's different (who knows, maybe this manufacturer puts the same serial number on all the cables of the same brand... hopefully not)
<PaulFertser> cousteau: please let us know how it goes :)
<cousteau> Thanks :)
<karlp> there's an option for usb path in latest stuff iirc? applied to all the usb things? not just a "ftdi serial" special ahndling?
tlwoerner_ has quit [Quit: Leaving]
tlwoerner has joined #openocd
<cousteau> It seems so... And not so latest too, I see [adapter usb location] in the docs for 0.10 too. But the USB path may change as soon as I unplug and plug the device; seems unreliable.
<cousteau> At least ttyUSBx is repeatable, just plug the stuff back in order. But yeah, serial will do.
akaWolf has joined #openocd
akaWolf has quit [Ping timeout: 260 seconds]
* cousteau just realized that having two JTAGs also means trouble with the ports if they're to be used simultaneously
nerozero has quit [Ping timeout: 252 seconds]
<cousteau> I don't know how smart OpenOCD is when choosing ports; if 3333 4444 5555 are already in use I'm not sure it'll be smart enough to choose 3334 4445 5556 or similar, or if I'll need to script that myself... Damn, this is going to be harder than I thought.
Lukeyface has quit [Remote host closed the connection]
Bertl has quit [Ping timeout: 260 seconds]
Bertl has joined #openocd
<karlp> usb path is handy for fixed setups, and repeating builds of infrastructure..
<karlp> and not all devices have serials for better or worse...
<karlp> and yes, you do need to script that yourself,
<cousteau> So, this'll have to wait till I have a chat with my other teammates about this, so that we agree on a setup and what to do next, otherwise I'll start changing things, break their work flow, and they'll yell at me :I
<cousteau> We use mostly Windows machines at work and then there's the one Linux laptop that is the only one that can do all the stuff we need, so it's completely crowded with USB cables and software and stuff... hence why I'm having trouble with stuff like this (but hey, at least THIS seems to have a solution, even if a bit complicated)
sergio_ has joined #openocd
akaWolf has joined #openocd
<sergio_> Hello. I have some obscure chip with Keil DFP. From DFP I have info about flash operation and I need to create new flash driver - can I somehow just use tcl? Or maybe there is no way without patching OpenOCD?
<sergio_> Model is N32G031, but there is not much info online
akaWolf has quit [Ping timeout: 260 seconds]
akaWolf has joined #openocd
<karlp> you need to support the target itself before you can try and do anything with flash.
<karlp> in general, if the cpu core is supported, you _could_ do it all (slowly) in tcl, by just building up memory read/write operations, but htat's normally painfully slow.
<karlp> and the amount of work required normally makes it easier to write flashing support in C, gross as C is.
<karlp> but you definitely have to have support for the core first.
<sergio_> I wrote a bit of tcl to support the core, at least I think I did it right...
<sergio_> I just don't want to have a custom build of OpenOCD, it would complicate things a lot
<karlp> I wasn't really sure you could do core support in tcl, but hey, you can do many things by just throwing more tcl at it I guess... :)
<sergio_> Hmmm... I just modified config from stm32f0x
<sergio_> I mean - it's same core, just different register locations
akaWolf has quit [Ping timeout: 260 seconds]
akaWolf has joined #openocd
<sergio_> OpenOCD drivers look quite modular, but there is no runtime loading. So, just in theory - would it be ok if I try to do a merge request with RTLD support?
<karlp> ok, so it's a cortex m already then, so yes, the core is already supported :)
<karlp> I'm not going to answer for anyone else, but the reason you would want to do that is 99% of the time because you want to try and sidestep gpl obligations, so in general, you won'tget much support for trying it...
erhankur_ has quit [Remote host closed the connection]
<sergio_> Hmmm, didn't thought about that. I just seen that libopenssl does that kind of modular approach
<karlp> (when I say "anyone else" I mean "the project" as I don't represent the project here)
<karlp> openssl isn't gpl....
erhankur has joined #openocd
<sergio_> Yeah, I didn't thought about licensing...
<sergio_> It makes sense now
erhankur has quit [Ping timeout: 252 seconds]
<sergio_> Thanks for clarifications. It helped a lot
nerozero has joined #openocd
cousteau has quit [Ping timeout: 260 seconds]
Haohmaru has quit []
sergio_ has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Ping timeout: 248 seconds]
Bertl has quit [Ping timeout: 260 seconds]
Bertl has joined #openocd
Hawk777 has joined #openocd
erhankur has joined #openocd
nerozero has quit [Ping timeout: 252 seconds]
erhankur_ has joined #openocd
erhankur has quit [Read error: Connection reset by peer]
noperator[m]1 has joined #openocd
noperator[m] has quit [Ping timeout: 246 seconds]
barath has quit [Ping timeout: 246 seconds]
barath has joined #openocd
mawk is now known as braindommage
braindommage is now known as mawk
erhankur_ has quit [Remote host closed the connection]
erhankur has joined #openocd
Bertl has quit [Ping timeout: 260 seconds]
Bertl has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Read error: Connection reset by peer]
erhankur has joined #openocd
akaWolf has quit [Ping timeout: 252 seconds]
erhankur_ has joined #openocd
erhankur has quit [Read error: Connection reset by peer]
erhankur_ has quit [Read error: Connection reset by peer]
erhankur has joined #openocd
akaWolf has joined #openocd
erhankur_ has joined #openocd
erhankur has quit [Read error: No route to host]
Bugies has quit [Ping timeout: 252 seconds]
Bertl has quit [Ping timeout: 260 seconds]
Bertl has joined #openocd
akaWolf has quit [Ping timeout: 260 seconds]
Guest54 has joined #openocd
Guest54 has quit [Client Quit]
akaWolf has joined #openocd
wingsorc__ has joined #openocd
erhankur_ has quit [Remote host closed the connection]
erhankur has joined #openocd
akaWolf has quit [Ping timeout: 252 seconds]
akaWolf has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Ping timeout: 252 seconds]
buldi has joined #openocd
akaWolf has quit [Ping timeout: 260 seconds]
buldi has quit [Quit: Leaving]