promach has joined ##openfpga
digshadow1 has joined ##openfpga
digshadow has quit [Ping timeout: 240 seconds]
<rqou> found myself an excuse to finally play with Rust
<cr1901_modern> I've been using it for small command line applications just to get a feel. But I'm def not using it to its full potential
<whitequark> rqou: yeah?
<jedb> eh, I find Ada to be much more readable
digshadow1 has quit [Ping timeout: 260 seconds]
digshadow has joined ##openfpga
_whitelogger has joined ##openfpga
_whitelogger has joined ##openfpga
digshadow has quit [Quit: Leaving.]
digshadow has joined ##openfpga
<rqou> why does rust still use the "curl | sh" installation method?
scrts has quit [Ping timeout: 240 seconds]
IRCFrEAK has joined ##openfpga
IRCFrEAK has left ##openfpga [##openfpga]
<lain> why not?
<lain> you're just going to wget && ./thing it anyway
<lain> well, ok, there should probably be a signature check in there :P
<lain> but /other than that/
scrts has joined ##openfpga
fengling has quit [Ping timeout: 252 seconds]
<cyrozap> lain: First, because it encourages bad practices. Second, because what happens if the curl download dies in the middle of the script? Then you'll have a half-installed something-or-other, or you'll run a partial "rm -r ..." command.
<cyrozap> Also, to some people, it may not be obvious that piping to a shell is going to execute a bunch of commands.
<cyrozap> And if it's done over HTTP, you might as well just give a telnet-accessible root shell to everyone between you and the script server, including whoever happens to be poisoning the BGP route that day.
<cyrozap> The ideal situation is, you either `wget` or `curl -O` the script and its signature, `gpg --verify` the signature, `less` the script to make sure it isn't doing anything sneaky, and then run it.
DocScrutinizer05 has quit [Disconnected by services]
DocScrutinizer05 has joined ##openfpga
fengling has joined ##openfpga
m_w has quit [Quit: leaving]
digshadow has quit [Ping timeout: 255 seconds]
digshadow has joined ##openfpga
<cyrozap> pointfree: I'm pretty much "done" with the KitProg driver at this point. Can you please try out the latest version and let me know if anything needs fixing?
<cyrozap> ^ That goes for anyone else with KitProgs as well.
<pointfree> cyrozap: Eagerly updating my openocd-kitprog-git Arch Linux PKGBUILD as we speak!
<pointfree> Are there any areas I should pay special attention to?
<cyrozap> pointfree: Well, if you haven't updated in a while, all the reset issues I'm aware of are now fixed, so OpenOCD will now reconnect if you hard-reset the target (toggling SRST/XRES/RST). Mostly I just want to make sure there aren't any regressions, and that gdb debugging, memory read/write, and flashing (using the unmerged flash driver) still work.
<pointfree> I use all of those things.
<cr1901_modern> azonenberg: Not ready to go into details, but I have concluded that industry inertia prevents me from using Ethernet as my data xfer medium :'(.
<azonenberg> :(
Hootch has joined ##openfpga
<pointfree> cyrozap: Is "openocd -c "interface kitprog; kitprog_acquire_psoc" -f target/psoc5lp.cfg ..." still the syntax?
<cyrozap> pointfree: Sorry, it's "kitprog_init_acquire_psoc" now, because there's also now a run-time "kitprog acquire_psoc" command (note the space).
<pointfree> Ah.
<pointfree> Also looks like "-f target/psoc5.cfg" instead of "-f target/psoc5lp.cfg"
<cyrozap> "-f target/psoc5lp.cfg" should still be correct, since that's the config in OpenOCD master.
<cyrozap> Oh, wait, are you using the stuff from my GitHub and not from OpenOCD Gerrit? Because it should all be from Gerrit.
<pointfree> Oh whoops.
<cyrozap> I just use the GitHub repo to backup my reasoning behind each individual commit and as a sort of staging area for the Gerrit stuff, and the PSoC driver branch is deprecated in favor of that other guy's stuff in Gerrit.
<pointfree> ah
<cyrozap> Also, if you want to do a hard reset, you don't do "kitprog reset_target" any more, you just configure reset with "reset_config srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst". Then, any "reset" call will do a hard reset instead of a soft reset.
<pointfree> good to know
<pointfree> cyrozap: There is a merge conflict with http://openocd.zylin.com/#/c/3432/ (flash/nor).
<cyrozap> Also also, please let me know what your KitProg's firmware version is when you try the driver. So far, I haven't seen any differences in behavior between 2.12, 2.14, and 2.16 (besides the CDC-ACM descriptor fix that happened in either 2.15 or 2.16), but it's still good to know just in case there are any firmware version-specific bugs.
<cyrozap> pointfree: What file did it conflict on?
<cyrozap> Ah, I see it
<pointfree> cyrozap: src/flash/nor/Makefile.am
<cyrozap> Yup
<pointfree> I have "KitProg v2.16" and "Hardware version: 17"
<pointfree> At some point I updated the KitProg firmware.
<cyrozap> That's fine. Anyways, to resolve the merge conflict, you just need to add "%D%/psoc5lp.c \" below "%D%/psoc4.c \" in the version of that file from the git HEAD. The error happened because the flash driver hasn't been rebased on master yet.
Bike has quit [Quit: slep]
<cyrozap> pointfree: Here's the fixed patch you can apply with `patch -p1 < patchy_the.patch`: https://paste.debian.net/hidden/8fe8a8c5/
<pointfree> Thanks cyrozap.
<cyrozap> np
<pointfree> Everything seems to work great: flashing, setting the blue led on and off, gdb.
<pointfree> I just cut power to the PSoC board while keeping the KitProg plugged in...
<pointfree> ..."Polling again in 6300ms"
<pointfree> Oh right...
<pointfree> I need to power the PSoC before powering the KitProg.
<pointfree> (I was working on USB while using openocd, so I snapped off the KitProg and I only power through USB)
mifune has joined ##openfpga
mifune has joined ##openfpga
<cyrozap> Ah, yeah, you need to do another acquisition if you power off the PSoC
<pointfree> "OpenOCD will now reconnect if you hard-reset the target (toggling SRST/XRES/RST)"
<cyrozap> But now, you can just run "kitprog acquire_psoc" and it'll work again
<cyrozap> pointfree: Yeah, hard-reset using the reset pin, not powering off :P
<cyrozap> But it should still work if you run "kitprog acquire_psoc; reset"
<pointfree> cyrozap: The reset button on the KitProg works great. I can toggle it and it reconnects.
<pointfree> Oh-yeah!
<cyrozap> I just checked the "power off, re-acquire" and that works if you run those commands
<cyrozap> Actually, I don't even think you need the "reset" part
<cyrozap> Yup, you just need to re-acquire
<pointfree> awesome.
<pointfree> dmesg is getting spammed because my laptop is polling for setup with the nascent usb driver. I guess the only way forward is to finish it.
<cyrozap> I was really hoping to get rid of the separate kitprog_init_acquire_psoc, but OpenOCD has no way to run commands post-adapter-init, pre-target-communication.
<pointfree> should it?
<cyrozap> Maybe?
mifune has quit [Quit: Leaving]
scrts has quit [Ping timeout: 268 seconds]
scrts has joined ##openfpga
mifune has joined ##openfpga
mifune has joined ##openfpga
mifune has quit [Changing host]
Hootch has quit [Quit: Leaving]
l0ser_ has joined ##openfpga
l0ser_ has quit [Remote host closed the connection]
Hootch has joined ##openfpga
<pie_> you cannever haveenough hooks
* qu1j0t3 read that as books
pie__ has joined ##openfpga
pie___ has joined ##openfpga
pie_ has quit [Ping timeout: 240 seconds]
pie__ has quit [Ping timeout: 240 seconds]
pie___ has quit [Quit: Leaving]
promach has quit [Quit: Leaving]
eduardo__ has joined ##openfpga
eduardo_ has quit [Ping timeout: 260 seconds]
Bike has joined ##openfpga
scrts has quit [Ping timeout: 240 seconds]
pie_ has joined ##openfpga
m_w has joined ##openfpga
scrts has joined ##openfpga
mifune has quit [Quit: Leaving]
kuldeep has quit [Read error: Connection reset by peer]
kuldeep has joined ##openfpga
mifune has joined ##openfpga
mifune has joined ##openfpga
mifune has quit [Changing host]
mifune has quit [Read error: Connection reset by peer]
mifune has joined ##openfpga
mifune has quit [Read error: Connection reset by peer]
scrts has quit [Ping timeout: 240 seconds]
scrts has joined ##openfpga
pie_ has quit [Changing host]
pie_ has joined ##openfpga
scrts has quit [Ping timeout: 240 seconds]
scrts has joined ##openfpga
mifune has joined ##openfpga
mifune has quit [Changing host]
mifune has joined ##openfpga
ZipCPU|Laptop_ is now known as ZipCPU|Laptop
Hootch has quit [Quit: Leaving]
pie_ has quit [Quit: Leaving]
pie_ has joined ##openfpga
jrernst has joined ##openfpga
<jrernst> @Marex: hi! are you listening?
l0ser has joined ##openfpga
mifune has quit [Ping timeout: 260 seconds]
jrernst has quit [Quit: Leaving]