NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
tsal_ has joined #openocd
tsal has quit [Ping timeout: 252 seconds]
borneoa___ has joined #openocd
nerozero has joined #openocd
renrelkha has quit [Quit: bye]
renrelkha has joined #openocd
Hawk777 has quit [Quit: Leaving.]
slobodan has joined #openocd
<gamiee> hi borneoa__ . Thank you for feedback in https://review.openocd.org/c/openocd/+/8529/1/tcl/target/bl702.cfg#b57
<gamiee> I wasn't aware of "catch" clause
<gamiee> I re-implemented it with catch clause, and I needed to modify some stuff (like reseting in -pre event).
<gamiee> It works, but it anyway shows error :/ But it works.
<gamiee> It works even without catch, just of course TCL execution is break, but that's okay.
<gamiee> https://paste.debian.net/1333571/ the error is still shown, but it works.
slobodan has quit [Ping timeout: 244 seconds]
<borneoa___> gamiee: what is printed out by echo $result ? I use the catch command when I know the command will return error, like on this case, but I often ignore the result
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
joconor has joined #openocd
<borneoa___> gamiee: the TCL command to write in memory should not output errors using LOG_ERROR(); it should return the error through the normal TCL output so catch can take it and either analyze or drop it
<borneoa___> gamiee: but unfortunately LOG_xxx() is widely abused in current code!
renrelkha has quit [Quit: bye]
renrelkha has joined #openocd
d_olex has quit [Ping timeout: 245 seconds]
Deneb has joined #openocd
<gamiee> borneoa___ : the $result is empty, that's the empty line between "Error" and "Info" messages.
<gamiee> ./configure CFLAGS="-ggdb3 -O0" CXXFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3"
<gamiee> those are my build flags, but I don't think those changes anything.
<gamiee> both Warn and Error logs came from riscv-013.c
crabbedhaloablut has quit []
crabbedhaloablut has joined #openocd
<borneoa___> gamiee: it's not a problem of compile options. I'm checking for a workaround...
d_olex has joined #openocd
<gamiee> borneoa___ : Thanks! Eventually, easy workaround would be to print before that this error is normal, and just leave it as is...
<gamiee> But well, having proper solution would be probably the best
joconor has quit [Read error: Connection reset by peer]
joconor has joined #openocd
<borneoa___> gamiee: proper solution will take too much
<borneoa___> gamiee: before the command that give error, add:
<borneoa___> gamiee: set lvl [lindex [debug_level] 1]
<borneoa___> gamiee: debug_level -1
<borneoa___> gamiee: then the command that give error, and then
<borneoa___> gamiee: debug_level $lvl
<borneoa___> gamiee: this will silent every LOG_xx() caused by your command
<borneoa___> gamiee: I haven't check if an attached GDB will still receive the errors...
<gamiee> borneoa___ : i am gonna try
<gamiee> It works perfectly! Error is not shown in both GDB and OpenOCD.
<gamiee> I will clean it up a bit and send it to gerrit. Thanks for help :)
<gamiee> Even it uses this workaround, it's much more readable than assembly and still works well.
<borneoa___> gamiee: cool!
slobodan has joined #openocd
<gamiee> borneoa___ : Patch is up. (Sorry, messed up twice some stuff, this patch is final).
<gamiee> Also, I hope it will be possible to get my BL602 flash bank driver ( https://review.openocd.org/c/openocd/+/8527/3 ) to upstream too.
<gamiee> I tried to make it as best as I could, so it would be suitable for upstream, and I wouldn't like to see it rot on fork :( I plan to maintain it in future (it's definitely not "upstream & abandon"), I already working on BL602 support for it :)
<gamiee> s/rot on/rot in/
PlasmaHH has joined #openocd
<borneoa___> gamiee: I have added a minor comment to your patch
<borneoa___> gamiee: for the flash driver, I only do some minor check, as I'm not familiar enough with the flash subsystem to run a full review
joconor has quit [Ping timeout: 244 seconds]
joconor has joined #openocd
joconor has quit [Ping timeout: 248 seconds]
joconor has joined #openocd
nerozero has quit [Ping timeout: 252 seconds]
Deneb has quit [Quit: Leaving]
<gamiee> borneoa___ I sent fixed patch, sorry, I probably introduced the space when commenting the code and forgot to remove space.
<gamiee> About the flash driver, thx for minor check. I will try to take look who does upstreaming of those and contact them about request for review.
joconor has quit [Ping timeout: 248 seconds]
joconor has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
vampirefrog has quit [Quit: Leaving]
PlasmaHH has quit [Ping timeout: 252 seconds]
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
joconor has joined #openocd