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 joined #openocd
Hawk777 has quit [Quit: Leaving.]
urja has quit [Read error: Connection reset by peer]
tsal has quit [Ping timeout: 250 seconds]
tsal has joined #openocd
marcusmae has quit [Ping timeout: 265 seconds]
marcusmae has joined #openocd
rue_mohr has joined #openocd
<rue_mohr> help
<rue_mohr> I'm trying to do something stupid
<rue_mohr> and I dont know enough
<rue_mohr> I want to use a JTAG adapter to shift data into a &$HC595
<rue_mohr> lskdfjlksjdf
<rue_mohr> 74HC595
<rue_mohr> the lines are serial clock, serial data, and output strobe
<rue_mohr> please tell me a way I can do this stupid task if you know
<rue_mohr> cause it will make the world a better place
<rue_mohr> I can connect the return data line if that helps get around software stuff
<rue_mohr> oh god, I'm gonna ask openai...
<rue_mohr> if you know, please speak up
<rue_mohr> openai: ""
<rue_mohr> To use the scan_chain command with the TDI looped back to the TDO line, you can use the following command:
<rue_mohr> openocd -f interface <interface_config_file> -c "adapter_khz <adapter_speed> ; jtag_scan_chain ; jtag_reset ; jtag_scan_chain"
<rue_mohr> If the TDI is looped back to the TDO line, you should see one device detected on the JTAG chain. If there are no devices detected, or more than one device detected, then there may be an issue with your JTAG adapter or the loopback connection.
<rue_mohr> ---
<rue_mohr> is it right?
<rue_mohr> Hi, I'm Rue, the last living real person on the planet. I use a real IRC client directly with an IRC network, I do not use repeaters or bots.
rue_shop3 has joined #openocd
<rue_shop3> invalid command name "jtag_scan_chain"
urja has joined #openocd
nerozero has joined #openocd
<rue_shop3> anyone?
<rue_shop3> the documentation is hopeless I need a human
<rue_shop3> or to completely learn every line of source code in the project, at which point I might as well write my own software
<PaulFertser> rue_shop3: hi
<PaulFertser> rue_shop3: you can try with "irscan" command, it should be almost low-level enoough.
<PaulFertser> rue_shop3: but are you familiar with the JTAG state machine diagram?
<PaulFertser> rue_shop3: for irscan it will do few clock cycles with appropriate TMS transitions to go to the appropriate state.
barath has left #openocd [#openocd]
tlwoerner has quit [Ping timeout: 240 seconds]
Hawk777 has joined #openocd
nerozero has quit [Ping timeout: 276 seconds]
<rue_mohr> PaulFertser, hey thanks, I think I tried, but it would not go without an init, and init freaked out
<rue_mohr> at the end of the night, it looked like I might get closer with swd?
<PaulFertser> rue_mohr: no, swd is certainly less suitable
<rue_mohr> ? I saw something that used seperate rx tx lines and the clock and it looks like there is no init
<PaulFertser> rue_mohr: init should be fine if you do not define target
<PaulFertser> rue_mohr: init is always there, you can't run any non-config command without it.
<PaulFertser> rue_mohr: for the reference, SWD is using two lines: SWDIO (bidirectional) and SWCLK (clock).
Hawk777 has quit [Quit: Leaving.]
<rue_mohr> init freaked out that the id did not match and there wasn't a 0x1 at the end
<PaulFertser> rue_mohr: it didn't mean it failed, just warned you.
<rue_mohr> hmm, I can show you more in a bit, I have to finish breakfast and grab a shower
marcusmae has quit [Ping timeout: 248 seconds]
shibboleth has joined #openocd
Getty4 is now known as Getty
marcusmae has joined #openocd
<rue_shop3> whitequark suggests modeling it as a bunch of 1 bit registers
<rue_shop3> openocd -f interface/ftdi/um232h.cfg -c "transport select jtag; adapter speed 10; jtag newtap foo bs -irlen 1 ; init; irscan foo.bs 1; exit "
<rue_shop3> the number after irlen, is that bits or bytes?
<rue_shop3> oh maybe i read that wrong
gruetzkopf has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<PaulFertser> rue_shop3: bits
<PaulFertser> rue_shop3: I think defining it as a single register IR of an approriate size would be more fruitful.
<PaulFertser> rue_shop3: you didn't answer my question re state machine.
shibboleth has quit [Remote host closed the connection]
shibboleth has joined #openocd
wearyhacker has joined #openocd
tlwoerner has joined #openocd
shibboleth has quit [Quit: shibboleth]
<rue_mohr> I dont know how to operate the state machine
<rue_mohr> its a 74LS595
gruetzkopf has joined #openocd
wearyhacker has quit [Quit: Connection closed for inactivity]
<rue_shop3> ok, it sounds like minimum is 10 bits, so I should set up atleast 2 595
<rue_shop3> unless I can just use DR
<rue_shop3> Warn : Haven't made progress in mpsse_flush() for 2002ms.
<rue_shop3> ^^ what does that error mean?