NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
captain_morgan has quit [Ping timeout: 248 seconds]
captain_morgan has joined #openocd
tsal has quit [Ping timeout: 256 seconds]
thinkfat_ has quit [Ping timeout: 260 seconds]
thinkfat has joined #openocd
tsal has joined #openocd
wtywtykk has joined #openocd
captain_morgan has quit [Remote host closed the connection]
captain_morgan has joined #openocd
Bertl_oO is now known as Bertl_zZ
erhankur has joined #openocd
erhankur has quit [Ping timeout: 248 seconds]
nerozero has joined #openocd
erhankur has joined #openocd
wtywtykk has quit [Quit: Client closed]
wtywtykk has joined #openocd
Haohmaru has joined #openocd
erhankur_ has joined #openocd
erhankur has quit [Read error: Connection reset by peer]
wtywtykk has quit [Quit: Client closed]
wingsorc has quit [Ping timeout: 260 seconds]
erhankur_ has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
merethan has joined #openocd
Bertl_zZ is now known as Bertl
<karlp> well, MRS replied with source! it's... kinda gross, which is to be expected, but that's progress at least: https://github.com/karlp/openocd-hacks/commit/91b55cfbe61f302bdcce925cb86f2f278272c559
<karlp> no wonder this shit behaves unreliably....
<Haohmaru> much extern, very wch
<karlp> oops sorry, missed a couple of files.
<karlp> had some wonky chmod -R to fix up some mode dropping they splattered
<Haohmaru> "LOG_ERROR("[wch] hart must be halted before reset!");" hart?
<karlp> that's the correct on enow.
<karlp> "hart" is riscv jargon for "a cpu core"
<karlp> hardware thread,
<karlp> and apparently hwthread was too hard....
<Haohmaru> huh
<Haohmaru> aww, the sloppy indentation x_x
<karlp> it's not so bad really, some of that can just be bad editor settings.
<karlp> the really nasty layering hacks are worse...
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Haohmaru has quit []
<merethan> Funny, hart is heart in Dutch. So a heart of a computer?
<cambrian_invader> they're like worms
merethan has quit [Ping timeout: 276 seconds]
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
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Bertl is now known as Bertl_oO
nerozero has quit [Ping timeout: 276 seconds]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
<zapb_> karlp, what is wlink? :D
wingsorc has joined #openocd
HelloShitty has quit [Quit: leaving]
wolfshappen has quit [Ping timeout: 260 seconds]
wolfshappen has joined #openocd
ormaaj has quit [Quit: Reconnecting]
wolfshappen has quit [Read error: Connection reset by peer]
ormaaj has joined #openocd
<karlp> it's the name wch gave to their "stlink" like on this board, and presumably some others too: https://eji4evk5kxx.exactdn.com/wp-content/uploads/2022/01/CH32V307V-EVT-R1.jpg?lossy=1&w=2560&ssl=1
<karlp> I'm considering hooking up the LA to it, to see just how ~equivalent it is to SWD,
<karlp> it's another two wire protocol at least, with zero docs, just this openocd impl that talks to the little soic16 on the right there.
<karlp> but I'm not actualyl familiar enough with swd wirelevel, and it's not reallllly all that interesting to me itself,
<karlp> plenty of other stuff to do.
zjason` has joined #openocd
zjason has quit [Ping timeout: 240 seconds]
HelloShitty has joined #openocd
sbach has quit [Read error: Connection reset by peer]
RAMIII has joined #openocd
sbach has joined #openocd
ghostbuster has quit [Quit: WeeChat 3.0]
<dormito> Hmm is openocd supposed to hold off things like interrupts being enabled while it's attached?
<karlp> by following the core in questions debug specifications...
<karlp> do you have a specific problem, or just asking in general?
<dormito> let me rephrase, it seems that some times when I let my core (a riscv core) run (typing continue in gdb), it will suddently have interrupts disable, where they would have been enable if openocd+gdb had never attached.
<karlp> that sounds like a poor implementation of either the debug adapter, the target support in openocd, or the core itself :)
<karlp> that's not the sort of behaviour you should expect :)
<karlp> what target?
<karlp> (and what interface?)
<dormito> it's the hifive1 (original, not rev b)
<dormito> it uses an ftdi jtag adaptor (on the board)
<karlp> I'm not personally very familiar with the riscv debug specs, onyl enough to know that they're no-where _near_ as consistently implemented as ARM's ADIv5 for instance.
<karlp> it seems many RV cores made up all sorts of versions of debugging modules.
<dormito> anyhow, I didn't think it would make sense for openocd to be shutting off interrupts, even when the cores no longer halter, but want to to make sure.
<karlp> well, oocd is certainly not reaching into peripheral registers andturning them off, but there may be un/poorl specified instructions on how to manage some interactions that arent being followed...
<karlp> the riscv core I'm working on at the moment for instance doesn't even say what debug spec it uses...
<dormito> it doesn't use the "riscv debug specification"? I think most of the sifive cores use that ... I haven't had to deal with any other vedors chips... yet.
<karlp> it might use part of it, but I don't know, I don't have any docs for that portion :)
<karlp> also, which spec, 0.13? 1.0draft? something interim?
<karlp> what spec is on your hifive1?
<dormito> 0.11
<dormito> sifive did document that bit.
<karlp> see :) what fun :)
<karlp> openocd has to handle all the differences, and I'v eno idea personally how well it handles them all.
<karlp> oocd has riscv-011 and riscv-013 files, so... we're probably trying at lesat :)
<karlp> have you reported it as a bug anywhere else? the riscv-openocd fork, or to sifive or anything?
<karlp> it definitely isnt how it should be.
<dormito> I've not reported it anywhere yet, partly because I wasnt 100% sure what the expected behavior was.
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
ormaaj is now known as jaamro
erhankur has joined #openocd