NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
kilobyte_ch has quit [Ping timeout: 240 seconds]
kilobyte_ch has joined #openocd
kilobyte_ch has quit [Ping timeout: 246 seconds]
kilobyte_ch has joined #openocd
ormaaaj has quit [Remote host closed the connection]
kilobyte_ch has quit [Ping timeout: 246 seconds]
ormaaaj has joined #openocd
kilobyte_ch has joined #openocd
gpol has joined #openocd
Hawk777 has joined #openocd
marex has quit [Server closed connection]
marex has joined #openocd
nohit has quit [Server closed connection]
nohit has joined #openocd
wchrisg_ has joined #openocd
JakeSays has quit [*.net *.split]
torbenh3 has quit [*.net *.split]
drath42 has quit [*.net *.split]
van has quit [*.net *.split]
haxar has quit [*.net *.split]
ericonr_ has quit [*.net *.split]
sbach has quit [*.net *.split]
KindOne has quit [*.net *.split]
lh has quit [*.net *.split]
HelloShitty has quit [*.net *.split]
bryanb has quit [*.net *.split]
nathanhi has quit [*.net *.split]
sbach has joined #openocd
JakeSays has joined #openocd
ericonr_ has joined #openocd
KindOne has joined #openocd
bryanb has joined #openocd
HelloShitty has joined #openocd
lh has joined #openocd
haxar has joined #openocd
nathanhi has joined #openocd
drath42 has joined #openocd
torbenh3 has joined #openocd
van has joined #openocd
bryanb has quit [Read error: Connection reset by peer]
lh has quit [Read error: Connection reset by peer]
lh has joined #openocd
bryanb has joined #openocd
JakeSays has quit [*.net *.split]
torbenh3 has quit [*.net *.split]
drath42 has quit [*.net *.split]
van has quit [*.net *.split]
haxar has quit [*.net *.split]
ericonr_ has quit [*.net *.split]
sbach has quit [*.net *.split]
KindOne has quit [*.net *.split]
HelloShitty has quit [*.net *.split]
nathanhi has quit [*.net *.split]
JakeSays has joined #openocd
torbenh3 has joined #openocd
drath42 has joined #openocd
haxar has joined #openocd
van has joined #openocd
ericonr_ has joined #openocd
sbach has joined #openocd
HelloShitty has joined #openocd
nathanhi has joined #openocd
KindOne has joined #openocd
xantoz has quit [*.net *.split]
zjason has quit [*.net *.split]
tchebb has quit [*.net *.split]
weepiie has quit [*.net *.split]
russ has quit [*.net *.split]
tchebb has joined #openocd
xantoz has joined #openocd
weepiie has joined #openocd
zjason has joined #openocd
russ has joined #openocd
vfazio has quit [*.net *.split]
joconor_ has quit [*.net *.split]
key2 has quit [*.net *.split]
Xogium has quit [*.net *.split]
jacob_ has quit [*.net *.split]
josuah has quit [*.net *.split]
stefanct has quit [*.net *.split]
dnm has quit [*.net *.split]
bacam has quit [*.net *.split]
shoragan has quit [*.net *.split]
vfazio has joined #openocd
joconor_ has joined #openocd
key2 has joined #openocd
Xogium has joined #openocd
josuah has joined #openocd
jacob_ has joined #openocd
dnm has joined #openocd
stefanct has joined #openocd
shoragan has joined #openocd
bacam has joined #openocd
vfazio has quit [*.net *.split]
joconor_ has quit [*.net *.split]
key2 has quit [*.net *.split]
Xogium has quit [*.net *.split]
jacob_ has quit [*.net *.split]
josuah has quit [*.net *.split]
dnm has quit [*.net *.split]
stefanct has quit [*.net *.split]
bacam has quit [*.net *.split]
shoragan has quit [*.net *.split]
xantoz has quit [*.net *.split]
zjason has quit [*.net *.split]
tchebb has quit [*.net *.split]
weepiie has quit [*.net *.split]
russ has quit [*.net *.split]
JakeSays has quit [*.net *.split]
torbenh3 has quit [*.net *.split]
drath42 has quit [*.net *.split]
van has quit [*.net *.split]
haxar has quit [*.net *.split]
ericonr_ has quit [*.net *.split]
sbach has quit [*.net *.split]
KindOne has quit [*.net *.split]
HelloShitty has quit [*.net *.split]
nathanhi has quit [*.net *.split]
bryanb has quit [*.net *.split]
wchrisg_ has quit [*.net *.split]
nohit has quit [*.net *.split]
marex has quit [*.net *.split]
kilobyte_ch has quit [*.net *.split]
lh has quit [*.net *.split]
Hawk777 has quit [*.net *.split]
bencoh has quit [*.net *.split]
postal_blab has quit [*.net *.split]
Foxyloxy has quit [*.net *.split]
zkrx has quit [*.net *.split]
tsal_ has quit [*.net *.split]
cambrian_invader has quit [*.net *.split]
jn_ has quit [*.net *.split]
zmatt has quit [*.net *.split]
akaWolf has quit [*.net *.split]
olerem has quit [*.net *.split]
wchrisg has quit [*.net *.split]
urja has quit [*.net *.split]
gruetzkopf has quit [*.net *.split]
cozycactus has quit [*.net *.split]
postal_blab_ has quit [*.net *.split]
rkta has quit [*.net *.split]
NishanthMenon has quit [*.net *.split]
diddly has quit [*.net *.split]
medicalwei has quit [*.net *.split]
jancoow has quit [*.net *.split]
uartist has quit [*.net *.split]
Kebianiz` has quit [*.net *.split]
maribu[m] has quit [*.net *.split]
Duality has quit [*.net *.split]
Yamakaja has quit [*.net *.split]
zapb_ has quit [*.net *.split]
blathijs has quit [*.net *.split]
Pokey has quit [*.net *.split]
mawk has quit [*.net *.split]
cp- has quit [*.net *.split]
chrysn[m] has quit [*.net *.split]
LinuxHackerman has quit [*.net *.split]
shoragan[m] has quit [*.net *.split]
sugarbeet has quit [*.net *.split]
youthpastor has quit [*.net *.split]
dormito has quit [*.net *.split]
tlwoerner has quit [*.net *.split]
noarb has quit [*.net *.split]
borneoa___ has quit [*.net *.split]
Steffanx has quit [*.net *.split]
renrelkha has quit [*.net *.split]
flatmush has quit [*.net *.split]
dinkelhacker has quit [*.net *.split]
indy has quit [*.net *.split]
braunr has quit [*.net *.split]
dreamcat4 has quit [*.net *.split]
cyrozap has quit [*.net *.split]
antto has quit [*.net *.split]
ormaaaj has quit [*.net *.split]
karlp has quit [*.net *.split]
mithro has quit [*.net *.split]
jybz has quit [*.net *.split]
aisha[m] has quit [*.net *.split]
Jybz[m] has quit [*.net *.split]
phr3ak has quit [*.net *.split]
ChanServ has quit [*.net *.split]
sugarbeet has joined #openocd
dnm has joined #openocd
indy has joined #openocd
Hawk777 has joined #openocd
bacam has joined #openocd
jacob_ has joined #openocd
josuah has joined #openocd
Xogium has joined #openocd
key2 has joined #openocd
joconor_ has joined #openocd
shoragan has joined #openocd
russ has joined #openocd
tchebb has joined #openocd
weepiie has joined #openocd
zjason has joined #openocd
nathanhi has joined #openocd
xantoz has joined #openocd
HelloShitty has joined #openocd
sbach has joined #openocd
KindOne has joined #openocd
ericonr_ has joined #openocd
van has joined #openocd
haxar has joined #openocd
drath42 has joined #openocd
JakeSays has joined #openocd
torbenh3 has joined #openocd
flatmush has joined #openocd
Kebianiz` has joined #openocd
dinkelhacker has joined #openocd
Duality has joined #openocd
maribu[m] has joined #openocd
Yamakaja has joined #openocd
uartist has joined #openocd
renrelkha has joined #openocd
Pokey has joined #openocd
NishanthMenon has joined #openocd
vfazio has joined #openocd
mawk has joined #openocd
jancoow has joined #openocd
rkta has joined #openocd
postal_blab_ has joined #openocd
cozycactus has joined #openocd
Steffanx has joined #openocd
urja has joined #openocd
gruetzkopf has joined #openocd
olerem has joined #openocd
wchrisg has joined #openocd
karlp has joined #openocd
medicalwei has joined #openocd
mithro has joined #openocd
antto has joined #openocd
akaWolf has joined #openocd
tlwoerner has joined #openocd
jybz has joined #openocd
zmatt has joined #openocd
dormito has joined #openocd
youthpastor has joined #openocd
jn_ has joined #openocd
diddly has joined #openocd
cambrian_invader has joined #openocd
tsal_ has joined #openocd
zapb_ has joined #openocd
noarb has joined #openocd
borneoa___ has joined #openocd
aisha[m] has joined #openocd
postal_blab has joined #openocd
bencoh has joined #openocd
Foxyloxy has joined #openocd
zkrx has joined #openocd
ormaaaj has joined #openocd
kilobyte_ch has joined #openocd
marex has joined #openocd
nohit has joined #openocd
cyrozap has joined #openocd
stefanct has joined #openocd
braunr has joined #openocd
blathijs has joined #openocd
ChanServ has joined #openocd
shoragan[m] has joined #openocd
LinuxHackerman has joined #openocd
chrysn[m] has joined #openocd
Jybz[m] has joined #openocd
cp- has joined #openocd
wchrisg_ has joined #openocd
lh has joined #openocd
bryanb has joined #openocd
dreamcat4 has joined #openocd
phr3ak has joined #openocd
crabbedhaloablut has quit [Max SendQ exceeded]
loki_val has joined #openocd
wchrisg_ has left #openocd [Leaving]
nerozero has joined #openocd
bencoh has joined #openocd
bencoh has quit [Changing host]
gzlb has joined #openocd
Haohmaru has joined #openocd
gzlb has quit [Quit: WeeChat 3.8]
Hawk777 has quit [Quit: Leaving.]
postal_blab has quit [Ping timeout: 245 seconds]
ssurgeon has joined #openocd
<ssurgeon> Hello, I was looking for some way how could I extract (and read if possible) firmware from my ThinkPad 470s. And now I'm here... :)
<ssurgeon> What's is OpenOCD?
postal_blab has joined #openocd
<ssurgeon> (And whether it may help me accomplish the goal?)
ssurgeon has quit [Quit: Client closed]
<Haohmaru> a safe place where we talk openly about obsessive compulsive disorder.. what else could it possibly be ;P~
sugarbeet has quit [Server closed connection]
sugarbeet has joined #openocd
<bencoh> close enough :D
cyrozap has quit [Server closed connection]
cyrozap has joined #openocd
HumanGeek has joined #openocd
dreamcat4 has quit [Server closed connection]
dreamcat4 has joined #openocd
postal_blab_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
postal_blab_ has joined #openocd
slobodan has joined #openocd
shibboleth has joined #openocd
shibboleth has quit [Remote host closed the connection]
shibboleth has joined #openocd
Andy_P has joined #openocd
<Andy_P> Hola! Quick question. I have a board with two devices on the JTAG chain. One is a RISC-V embedded in a PolarFire FPGA and the other is an Igloo FPGA. I'd like to debug the RISC-V firwmare. I have the latest SoftConsole from Microchip, and if the PolarFire's RISC-V is the only thing on the chain, it works as expect. I need to know how to set up the
<Andy_P> board script so it knows about the Igloo and can pass JTAG signals  through it. Anyone have an example board file that's reasonably close (one device to debug, the other to bypass)?
<PaulFertser> Hi
<PaulFertser> Andy_P: you just add another tap with the right irlen and that's it.
<PaulFertser> Andy_P: I'd first try running openocd without any taps defined to see if autodetection works.
Haohmaru has quit [Ping timeout: 260 seconds]
<Andy_P> i figured that adding another tap should do it, but I'm new to this, and I don't know where/how to do that
<PaulFertser> Andy_P: how do you normally start openocd?
<Andy_P> from within SoftConsole, the typical Eclipse debug session
<Andy_P> I'm looking to see if there's a shell from which I can start it
<PaulFertser> Hm, SoftConsole. Isn't that the product that violates GPL of OpenOCD developers?
<Andy_P> I honestly have no idea. It's what Microsemichip provides.
<PaulFertser> Can you request source code from them, including the source code for all the libraries they link with?
<Andy_P> I have not requested the source code because I don't need it.
<PaulFertser> Please do. I think I tried to look at their distro and came to the conclusion they're in violation.
<Andy_P> but that's not my issue. I'm just looking for what I need to add to the chain so that it bypasses a device
<PaulFertser> So you want to use an illegal copy of the software, and have the original developers help you?
<Andy_P> you know, I have no proof that Microchip bundling OpenOCD with their Eclipse distribution violates any licenses.
<PaulFertser> I once downloaded their binaries and couldn't get the full corresponding source code from them as GPL requires.
<Andy_P> so you want I should contact Microchip and ask for the source for their OpenOCD distribution and then come back to you with them before you'll help? Should I have instead said, "I am using OpenOCD to debug a product I designed" without indicating where I got it from? Should I instead just download OpenOCD directly and do that? Because I just did
<Andy_P> that.
<PaulFertser> I've already said that you just need to define another tap, and that should work. And suggested to run without config to see autodetection results.
<PaulFertser> It's not like I'm not trying to help at all.
<PaulFertser> And of course if you're using vanilla upstream OpenOCD that makes me much more comfortable, yes.
<Andy_P> Then the question is "how to define another tap."
Andy_P has quit [Quit: Client closed]
Andy_P has joined #openocd
<Andy_P> autodetect didn't work. I removed the line source [find target/microsemi-riscv.cfg] from the board config file and the autoprobe found two devices
<PaulFertser> Andy_P: autoprobe shows "jtag newtap" commands
<PaulFertser> Andy_P: in the right order. So you add that source command for the target back, and then you need the jtag newtap command before or after it (depending on the JTAG chain order).
<Andy_P> # FlashPro
<Andy_P> source [find interface/microsemi-flashpro.cfg]
<Andy_P> # Device
<Andy_P> jtag newtap auto0 tap -irlen 8 -expected-id 0x1ba141cf
<Andy_P> source [find target/microsemi-riscv.cfg]
<Andy_P> OpenOCD only supports Debug Module version 1, not 0.
<PaulFertser> I do not see interface/microsemi-flashpro.cfg in upstream OpenOCD though.
<PaulFertser> Other than that looks right.
<Andy_P> it's in what Microchip distributes.
<Andy_P> I'm looking at what Microchip includes with SoftConsole and it appears to be a standard binary of OpenOCD with no modifications. All they did was to add config files for their JTAG dongles and their processor cores.
<PaulFertser> I saw them linking with some proprietary DLLs to support some additional JTAG adapters apparently.
<Andy_P> likely for their FlashPro dongles.
<PaulFertser> But linking GPL with proprietary DLLs is illegal.
<Andy_P> does TI publish the source code for their debugger stuff?
<PaulFertser> I remember Analog Digital published.
<PaulFertser> Not sure TI has an OpenOCD fork.
<PaulFertser> ST certainly publishes.
<Andy_P> TI xds110 is supported in the standard OpenOCD distro
<PaulFertser> Yes, TI contributed it directly properly.
<Andy_P> anyway this is all very nice and academic and I don't want to get dragged into a discussion about whether a particular vendor abides by a license because I have no control over any of that.
<PaulFertser> As a user you have certain control because you can demand compliance.
<Andy_P> As a user I get precisely dick from Microchip because I don't buy enough parts. They will, quite honestly, tell me to pound sand.
<PaulFertser> For me personally it was always very practical, as I'm spending my free time and energy to help the community, and I do not want vendors to abuse the work of me and the others who think similarly.
<Andy_P> you as the developer have more pull than I do. Can't you demand that Microchip pulls OpenOCD from their tools?
<PaulFertser> I kinda tried but I think they didn't reply me at all.
<PaulFertser> Enforcing GPL is problematic.
<Andy_P> i understand. but from the perspective of the tool user, I either use what they provide or go down a painful path of finding alternative solutions.
<Andy_P> and since money talks and I do not buy enough parts, they don't listen to me either.
<Andy_P> so I honestly don't know what to tell you.
<PaulFertser> Is your project a hobby or open source hardware or non-commercial?
<Andy_P> no, it is a product we sell to commercial customers. Nothing in the product uses open source software.
<PaulFertser> So you can choose between different hardware vendors and give the money to an ethical one, or at least the one that doesn't abuse free software developers.
<PaulFertser> Also, commercial products are often made by commercial companies, so there might be some lawyer that can try negotiating licensing details with Microchip if needed.
peepsalot has joined #openocd
<Andy_P> if only other vendors offered devices which fit our requirements.
<PaulFertser> Tough call
<Andy_P> well we either use the parts that meet our requirements or we all go home and get jobs at the supermarket.
<Andy_P> look, I understand your position. I don't see anything in the SoftConsole distribution that's different from the standard OpenOCD other than Microchip added config files to support their M1 and RISC-V cores.
<PaulFertser> Can you please pastebin interface/microsemi-flashpro.cfg ?
<Andy_P> #**************************************************************************
<Andy_P> # Copyright (C) 2015-2018 by Microsemi Corporation *
<Andy_P> # *
<Andy_P> # This program is free software; you can redistribute it and/or modify *
<Andy_P> # it under the terms of the GNU General Public License as published by *
<Andy_P> # the Free Software Foundation; either version 2 of the License, or *
<Andy_P> # (at your option) any later version. *
<Andy_P> # *
<Andy_P> # This program is distributed in the hope that it will be useful, *
<Andy_P> # but WITHOUT ANY WARRANTY; without even the implied warranty of *
<Andy_P> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
<Andy_P> # GNU General Public License for more details. *
<Andy_P> # *
<Andy_P> # You should have received a copy of the GNU General Public License *
<Andy_P> # along with this program. If not, see <http://www.gnu.org/licenses/>. *
<Andy_P> #**************************************************************************
<Andy_P> #------------------------------------------------------------------------------
<Andy_P> # Microsemi FlashPro (FlashPro3/4/5/LCPS)
<Andy_P> #
<Andy_P> # FlashPro4: 1000, 2000, 3000, 4000, 5000, 6000 (i.e. 1, 2, 3, 4, 5, 6 MHz)
<Andy_P> # FlashPro5: 1..30000, specifically 30MHz/(1+divisor) where divisor = 0..65535.
<Andy_P> # Actual range is 458Hz to 30MHz but OpenOCD specifies speeds in kHz so 1kHz is
<Andy_P> # the effective lowest speed possible. With FlashPro5 if an invalid speed is
<Andy_P> # specified then Fpcommwrapper's JtagSetTckFrequency() sets the nearest valid
<Andy_P> # speed instead so the speed requested may not be the speed used.
<Andy_P> #------------------------------------------------------------------------------
<Andy_P> # Use FlashPro unless told not to (FLASHPRO = N)
<Andy_P> if {![exists FLASHPRO]} {
<Andy_P>     set FLASHPRO "Y"
<Andy_P> } else {
<Andy_P>     set FLASHPRO_UPPER [string toupper $FLASHPRO]
<Andy_P>     if {($FLASHPRO_UPPER ne "Y") && ($FLASHPRO_UPPER ne "N")} {
<Andy_P>         error [format "Error: invalid FLASHPRO value \"%s\" specified - must be \"Y\" or \"N\"" $FLASHPRO]
<Andy_P>     }
<Andy_P>     set FLASHPRO $FLASHPRO_UPPER
<Andy_P> I don't have a pastebin thing set up and I'm too lazy to deal with it.
<PaulFertser> You can use "cat filename | nc termbin.com 9999" or use a web interface, e.g. https://paste.debian.net
<PaulFertser> Apparently the file was truncated as pasted here, so the essential part is missing.
<Andy_P> what I pasted in this chat is complete.
<PaulFertser> The last line was "set FLASHPRO $FLASHPRO_UPPER"
<Andy_P> I see the entire thing on my end.
<PaulFertser> So the IRC server truncated it.
shibboleth has quit [Quit: shibboleth]
<PaulFertser> So "interface microsemi-flashpro" it is. That means this OpenOCD binary includes some additional compiled binary code, something not present in upstream. So it's not just a config file.
<Andy_P> i don't know anything about it.
<PaulFertser> Here's the list of interfaces, in a GPL C file: https://review.openocd.org/gitweb?p=openocd.git;a=blob;f=src/jtag/interfaces.c;h=48a194fd56d3d911c7d31c067298ba04a7765e66;hb=HEAD#l38
nerozero has quit [Ping timeout: 264 seconds]
Andy_P has quit [Quit: Client closed]
zjason has quit [Read error: Connection reset by peer]
zjason has joined #openocd
akaWolf has quit [Read error: Connection reset by peer]
akaWolf has joined #openocd
slobodan has quit [Ping timeout: 264 seconds]
shoragan[m] has quit [Server closed connection]
shoragan[m] has joined #openocd
peepsalot has quit [Ping timeout: 246 seconds]