NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
wingsorc has quit [Ping timeout: 260 seconds]
wingsorc has joined #openocd
tsal has quit [Ping timeout: 260 seconds]
tsal has joined #openocd
Hawk777 has joined #openocd
nerozero has joined #openocd
indy has quit [Ping timeout: 252 seconds]
indy_ has joined #openocd
indy_ is now known as indy
shoragan has quit [Remote host closed the connection]
shoragan has joined #openocd
Hawk777 has quit [Quit: Leaving.]
PaulFertser has quit [Ping timeout: 246 seconds]
Haohmaru has joined #openocd
PaulFertser has joined #openocd
<josuah> I just discovered gerrit, a bit frown upon from Github users at times, but I really like it!
<josuah> thanks for introducing me to it (implicitly, by using it yourself)
<Haohmaru> gerrit sounds like git with an "err" in the middle
<PaulFertser> josuah: welcome :)
<josuah> Haohmaru: the "err" of all the discussions and brainstorming before things get merged in
merethan_ has joined #openocd
PsySc0rpi0n has quit [Ping timeout: 248 seconds]
PsySc0rpi0n has joined #openocd
Guest9 has joined #openocd
Guest9 has quit [Quit: Client closed]
Guest9 has joined #openocd
<Guest9> hello there, I might be using slightly the wrong software, but i am hoping you can point me in the right direction. I am programming an FPGA with a raspberry pi. Currently using openFPGALoader. I can flash the devices volatile and non volatile memory successfully. But when I disconnect power to the FPGA, it won't automatically reconfigure itself
<Guest9> from the SPI flash. I first have to issue a reset command over JTAG. When I write the SPI flash from Vivado and power cycle the FPGA, it works just fine. I am uncertain where this information is stored. Why does the FPGA not boot from the SPI flash when i use openFPGALoader
<Guest9> I want to try openocd and its currently compiling on my pi
<PaulFertser> Guest9: you should be able to make Vivado write you an SVF file, it would contain all the JTAG operations, and then OpenOCD can play it back.
Guest9 has quit [Quit: Client closed]
Guest9 has joined #openocd
<Guest9> https://gist.github.com/tnishinaga/46a3380e1f47f5e892bbb74e55b3cf3e is this the config for the rpi4 as a master?
<karlp> we don't know from the information provided.
<karlp> I would suspect that you will have the same issue with openocd as with openfpga loader, I suspect you might be missing something in your flash dump?
<karlp> or vivavdo is doing something else as well.
<Guest9> thats what i am wondering. but it wworks with the spi flash and the manual reset
<Guest9> so maybe there is a "tail" at the end of the bitstream that issues the reset to the fpga or s.th. its really weird
<Guest9> and i am just a software programmer:D  i am hitting my head against this wall for two days straight now
wingsorc has quit [Quit: Leaving]
<PaulFertser> Guest9: SVF output should capture everything, bitstream and reset included.
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
Guest9 has quit [Quit: Client closed]
Guest9 has joined #openocd
<Guest9> PaulFertser, so is there such a thing as a _tail_ in the fpga bitstream stored on the spi flash that does the reset after configuration?
<PaulFertser> Guest9: no, I do not think so.
<Guest9> ok, i found the config files, i set up the correct gpio pins ... how would i go about just enumerating all devices connected to the jtag bus?
<PaulFertser> Guest9: just source the adapter config, then -c "transport select jtag; adapter speed 1000"
<Guest9> well. ok, i think my issue is that i wired the raspberry pi wrong. is there a way to bitbang it?
Guest9 has quit [Quit: Client closed]
Guest9 has joined #openocd
<Guest9> so ...
<Guest9> Info : BCM2835 GPIO JTAG/SWD bitbang driver
<Guest9> Info : clock speed 997 kHz
<Guest9> Info : JTAG tap: auto0.tap tap/device found: 0x13636093 (mfg: 0x049 (Xilinx), part: 0x3636, ver: 0x1)
<Guest9> Error: IR capture error at bit 2, saw 0x05 not 0x...3
<Guest9> Warn : Bypassing JTAG setup events due to errors
<Guest9> what do the errors mean
<Guest9> ?
<PaulFertser> Guest9: probably that the target isn't exactly matching the specs and so auto-detection doesn't fully work, but you shouldn't be bothered about it.
<Guest9> i can connect over telnet, unfortunately it seems to be only bound locally
<Guest9> > scan_chain
<Guest9>    TapName Enabled IdCode Expected IrLen IrCap IrMask
<Guest9> -- ------------------- -------- ---------- ---------- ----- ----- ------
<Guest9>  0 auto0.tap Y 0x13636093 0x00000000 2 0x01 0x03
<Guest9> >
<Guest9> sio its an artix7 and i want to program the flash thats "behind" it
<Guest9> but it seems that openocd is significantly faster than openFPGALoader and xc3prog
nerozero has quit [Ping timeout: 252 seconds]
<PaulFertser> Guest9: don't bother with autodetection, you proved already that the target is connected nicely.
<Guest9> thanks
<Guest9> after changing it a bit though, when i perform scan_chain over telnet i get a rather long list
<Guest9> and less errors
<Guest9> and i now added the xc7 cpld and fpga target, which makes sense looking at the architecture
<Guest9> -- ------------------- -------- ---------- ---------- ----- ----- ------
<Guest9>  0 xc7.tap Y 0x13636093 0x*3622093 6 0x01 0x03
<Guest9>                                            0x*3620093
<Guest9>                                            0x*37c4093
<Guest9>                                            0x*362f093
<PaulFertser> Guest9: please do not paste more than 3 lines in a channel, use some pastebin.
<PaulFertser> Guest9: yes, appropriate IR len helps of course.
<Guest9> thanks!
Haohmaru has quit []
merethan_ has quit [Ping timeout: 246 seconds]
Guest9 has quit [Quit: Client closed]
zjason``` has joined #openocd
zjason`` has quit [Ping timeout: 255 seconds]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd