NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
tlwoerner__ has quit [Ping timeout: 252 seconds]
tlwoerner has joined #openocd
nerozero has joined #openocd
MGF_Fabio has joined #openocd
merethan has joined #openocd
merethan has quit [Ping timeout: 260 seconds]
slobodan has joined #openocd
slobodan_ has joined #openocd
slobodan has quit [Ping timeout: 265 seconds]
slobodan_ has quit [Read error: Connection reset by peer]
slobodan_ has joined #openocd
vampirefrog has quit [Ping timeout: 258 seconds]
slobodan__ has joined #openocd
slobodan_ has quit [Ping timeout: 260 seconds]
vampirefrog has joined #openocd
bvernoux has joined #openocd
slobodan__ is now known as slobodan
slobodan has quit [Read error: Connection reset by peer]
merethan has joined #openocd
slobodan has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
<gamiee> hello. I am implementing proper reset, and for this to work, I need also reset GPIO controller, which thus resets pinmux, so OpenOCD losts JTAG connection. After the GPIO controller reset, I need to trigger system reset (through registers), but since JTAG is already cut off, I can't do that. One idea is to construct two jump instructions, jump to them and then just wait until OpenOCD will be able to connect again. But I can't do this through TCL, since only
<gamiee> from C code I can run algorithm. Any ideas?
slobodan_ has joined #openocd
slobodan has quit [Remote host closed the connection]
slobodan__ has joined #openocd
slobodan_ has quit [Ping timeout: 252 seconds]
nerozero has quit [Ping timeout: 260 seconds]
slobodan_ has joined #openocd
slobodan__ has quit [Ping timeout: 252 seconds]
<zapb_> gamiee, can you provide more context? Not sure what are you trying to do / implement
<zapb_> What is your target?
<gamiee> RISC-V, BL702.
<gamiee> zapb_ : In short, I need to set register which resets GPIO pinmux conf (so JTAG connection is lost) and then perform CPU reset through register.
<gamiee> But I can't reset CPU, because I will lose JTAG. So my idea is to put some trampoline code into RAM, which will reset GPIO and then perform CPU.
slobodan_ has quit [Ping timeout: 276 seconds]
slobodan has joined #openocd
slobodan has quit [Ping timeout: 260 seconds]
<zapb_> gamiee, and what's the problem? You can write this code via Tcl into your device, execute it, wait some time and try to examine the target again
urja has quit [Read error: Connection reset by peer]
<zapb_> Probably you need to call "poll off", otherwise OpenOCD tries to check the target status periodically
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
slobodan has joined #openocd
joconor has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
urja has joined #openocd
slobodan has joined #openocd
<gamiee> zapb_ : so I will just write it by writing bytearray? Like, I can do that, for sure... Just I thought there is some better solution, or I can call flash bank driver functions, that maybe would work too.
<gamiee> But I have bigger problem right now, I have another method, but my target doesn't support abstract commands... :(
<gamiee> so if I use sysbus for writing register, OpenOCD will be not able to read out result of that.
<zapb_> gamiee, it should work like that but is not the "best" solution probably. Are you trying to write a driver / support for this device? I'm not very familiar with the risc-v code in OpenOCD unfortunately
Noxz has joined #openocd
slobodan has quit [Ping timeout: 252 seconds]
bvernoux has quit [Quit: Leaving]
<gamiee> zapb_ : I already upstreamed basic support for the chip. now I am working on Flash driver (almost done), and now I am testing new, better reset, which seems to reset whole chip, as my previous method didn't.
<gamiee> I solved it by writing instructions into RAM and jumping to that.
<gamiee> it works so far, so I am happy.
<zapb_> gamiee, why do you need to reset the device for flash operations?
merethan has quit [Ping timeout: 260 seconds]
slobodan has joined #openocd
slobodan_ has joined #openocd
slobodan_ has quit [Remote host closed the connection]
slobodan_ has joined #openocd
slobodan has quit [Ping timeout: 252 seconds]
slobodan_ has quit [Remote host closed the connection]
MGF_Fabio has quit [Ping timeout: 258 seconds]