NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
a3f has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
shoragan has quit [Quit: quit]
a3f has joined #openocd
shoragan has joined #openocd
shoragan has quit [Read error: Connection reset by peer]
a3f has quit [Read error: Connection reset by peer]
a3f has joined #openocd
shoragan has joined #openocd
Foxyloxy has joined #openocd
Foxyloxy_ has quit [Ping timeout: 252 seconds]
tsal_ has joined #openocd
tsal has quit [Ping timeout: 255 seconds]
rigid has quit [Read error: Connection reset by peer]
rigid has joined #openocd
rigid has quit [Changing host]
rigid has joined #openocd
Foxyloxy_ has joined #openocd
Foxyloxy has quit [Ping timeout: 252 seconds]
Foxyloxy has joined #openocd
Foxyloxy_ has quit [Ping timeout: 244 seconds]
nerozero has joined #openocd
Foxyloxy_ has joined #openocd
Foxyloxy has quit [Ping timeout: 252 seconds]
rigid has quit [Read error: Connection reset by peer]
rigid has joined #openocd
rigid has quit [Changing host]
rigid has joined #openocd
rigid has quit [Read error: Connection reset by peer]
rigid has joined #openocd
rigid has quit [Changing host]
rigid has joined #openocd
Foxyloxy has joined #openocd
Foxyloxy_ has quit [Ping timeout: 244 seconds]
diddly has quit [Ping timeout: 245 seconds]
diddly has joined #openocd
key2 has joined #openocd
Foxyloxy_ has joined #openocd
Foxyloxy has quit [Ping timeout: 244 seconds]
nerozero has quit [Ping timeout: 255 seconds]
<gamiee> Hi borneoa___ , in RISC-V DM during reset-assert, you can override executing C's assert_reset func. Although this function does quite a lot of stuff, and doing it manually in TCL involves kinda a lot of redundant code. (We have been talking abouth this some time ago). As a good alternative, there is reset-assert-post callback, which can be in most occasions enough for doing any post ndmreset stuff. I implemented my reset mechanism in it, instead of reset-
<gamiee> assert (and doing all the ndmreset and other stuff manually, without any hacks). Although there comes one problem.
<gamiee> In assert_rest func, there is part (riscv-013.c#L2384) where progbuf cache is cleaned up, although, if I use anything progbuf related (I couldn't avoid it), the cache is filled with stuff, and not cleared after reset (and this ofc causes troubles later).
<gamiee> My suggestion is to add progbuf cache clean on deassert_reset C function. Does this sounds reasonable? Thanks.
<borneoa___> gamiee: I'm not working on risc-v, I need to check the code
Foxyloxy has joined #openocd
Foxyloxy_ has quit [Ping timeout: 252 seconds]
<gamiee> borneoa___ : okay thanks!
<gamiee> Moving it to deassert_reset shouldn't introduce any issues, eventually, we can have it on both places, but that seems redundant for me.
pedroa has joined #openocd
pedroa has quit [Quit: Client closed]
rigid has quit [Read error: Connection reset by peer]
rigid has joined #openocd
rigid has quit [Changing host]
rigid has joined #openocd