#garfield Logs

Jan 11 2020

#garfield Calendar

07:38 AM polprog: Tom_L: got the tarfile. thanks
10:04 AM Tom_L: oh, good
10:04 AM rue_bed: i'm awake
10:04 AM rue_bed: for a bit
10:04 AM Tom_L: me too
10:04 AM rue_bed: 7pm huh
10:04 AM Tom_L: for a longer bit
10:05 AM rue_bed: I must have been exhausted
10:06 AM rue_bed: polprog, do you have the programmer?
10:06 AM rue_bed: did you install the ide?
10:06 AM Tom_L: he said he has a jtag for it
10:06 AM rue_bed: can you connect to it?
10:06 AM polprog: no not yet
10:06 AM Tom_L: i doubt he's installed it yet
10:06 AM rue_bed: but just *any* jtag, or the right one
10:06 AM polprog: havent installed the ide, havent sat to it yet
10:06 AM polprog: doing maths now
10:07 AM rue_bed: you need a jtag that works with the chip and software
10:07 AM rue_bed: jtag is not just jtag
10:07 AM polprog: rue_bed: i have openocd working with buspirate, was able to conenct to a samsung arm core with it
10:07 AM Tom_L: doesn't mean it will work on xilinx chips
10:07 AM polprog: i know, but ill try
10:07 AM rue_bed: k, I cnat help you use opencd to program it tho
10:08 AM rue_bed: you may be missing the instructions process on loading the fpga via jtag for openocd
10:08 AM polprog: i blindly believe this guy: https://tomverbeure.github.io/2019/09/15/Loading-a-Spartan-6-bitstream-with-openocd.html
10:08 AM Tom_L: he will need that little jumper program you got to store it in flash too
10:08 AM rue_bed: k
10:09 AM rue_bed: yup, see if he can connect
10:09 AM rue_bed: I'll pack what I got
10:09 AM rue_bed: in a bit
10:09 AM polprog: ive got loads of uni shit to do sadly now so im not sure if ill be able to touch it this weekend
10:10 AM polprog: bbl
10:11 AM rue_bed: yea, if you can get those command lines built for openocd, your ok
10:13 AM rue_bed: so, my state machien software is ported
10:13 AM rue_bed: I can work on adding to it now
10:13 AM Tom_L: ported to what?
10:13 AM rue_bed: LOTS of stuff to add
10:14 AM rue_bed: it nolonger needs libraries to translate from dos function calls
10:14 AM rue_bed: its all on its own on linux
10:14 AM Tom_L: dos function calls were fun though
10:15 AM rue_bed: yea, the source is lots longer now
10:15 AM rue_bed: but the dos translation library isn't maintained anymore
10:15 AM rue_bed: and it uses ncurses
10:15 AM Tom_L: seems they got linuxcnc running decent on a Pi4 now
10:15 AM rue_bed: so, when ncurses changed, it died
10:16 AM rue_bed: oh its 8_AM_
10:16 AM rue_bed: wow
10:16 AM rue_bed: that explains the light
10:16 AM Tom_L: woke up to 16°F and snow today
10:17 AM rue_bed: strange strange dream
10:17 AM rue_bed: huh, no snow here
10:17 AM rue_bed: there was yesterday
10:17 AM rue_bed: I dreamt I had a fort, and that it was getting kinda popular
10:18 AM rue_bed: and I needed to use the secret entrance to get back in
10:18 AM Tom_L: you've had lots of visitors lately
10:18 AM rue_bed: but I got cuaght up in a murder mystery show
10:19 AM rue_bed: yes, there could easily be 3 people on thursday as regulars
10:19 AM Tom_L: still making paint sprayers?
10:19 AM rue_bed: yup, no sales tho
10:20 AM Tom_L: it's winter.
10:20 AM rue_bed: we decided to make about 3 and put them online
10:20 AM rue_bed: see what happens
10:28 AM rue_bed: I should focus on things like exporting to usefull formats next
10:28 AM rue_bed: like C, ihex, and verilog
10:29 AM rue_bed: and I want to, I think, so a verilog i2c slave
10:30 AM rue_bed: do
11:15 AM Tom_L: https://www.fpga4fun.com/I2C_2.html
11:20 AM Tom_L: https://opencores.org/projects/i2cslave
11:50 AM polprog: holy crap ive got cifs to work finally
11:50 AM polprog: transferring the xilinx targz to the debian box
11:52 AM polprog: oh, so i apparently have two 32G files of random data i used to test the sd card
11:52 AM polprog: thats where all the free space went lol
11:59 AM Tom_L: i see ur studying hard :D
12:23 PM rue_bed: I was looking at an implementation that was horrid
12:24 PM rue_bed: I think it was opencores
12:24 PM rue_bed: polprog, ahahaha
12:25 PM polprog: Tom_L: i was :D
12:26 PM rue_bed: heh, they did the address check one bit at a time, I considered that
12:26 PM rue_bed: https://www.fpga4fun.com/files/I2Cslave1.zip
12:30 PM Tom_L: i found several but didn't post them all
12:33 PM Tom_L: i2c slave is almost application specific implementations
12:34 PM Tom_L: what did you wanna do with it?
01:16 PM polprog: do you know if the jtag on the spartans is 5v compatible?
01:24 PM polprog: JTAG tap: auto0.tap tap/device found: 0x44002093 (mfg: 0x049, part: 0x4002, ver: 0x4)
01:24 PM polprog: sweet
01:29 PM Tom_L: a regular jtag should be ok
01:29 PM polprog: it found the device
01:29 PM Tom_L: nice
01:50 PM rue_mohr: polprog, its 3V only
01:51 PM rue_mohr: carefull about that!
01:58 PM rue_mohr: erm, maybe I'll github these
01:58 PM polprog: luckily my buspirate config was set to opendrain mode
01:58 PM polprog: phew
01:58 PM polprog: ill keep it like that
01:58 PM Tom_L: rue_mohr, i thought you said it was compatible
01:59 PM rue_mohr: if its 3.3V its ok
01:59 PM rue_mohr: its not 5V,
01:59 PM rue_mohr: nothings 5v workable on that board
02:00 PM rue_mohr: hey, my internets still working :)
02:00 PM polprog: Tom_L: how do i go about installing that xiling software?
02:00 PM rue_mohr: have a first born?
02:00 PM polprog: xilinx*
02:00 PM Tom_L: hold on i'll get the directions
02:00 PM Tom_L: on linux right?
02:01 PM polprog: yes
02:01 PM Tom_L: booting the test pc
02:01 PM rue_mohr: hmm
02:01 PM rue_mohr: you can clone a part of a repository cant ya?
02:03 PM Tom_dev: Installing Xilinx Design Suite:
02:03 PM Tom_dev: open a terminal
02:03 PM Tom_dev: 'sudo su'
02:03 PM Tom_dev: cd /home/tom/xilinx14-7/Xilinx_ISE_DS_Lin_14.7_1015_1
02:03 PM Tom_dev: bash xsetup
02:03 PM Tom_dev: need libncurses5 for debian 10
02:05 PM Tom_L: you need to install / run it as root
02:12 PM polprog: 20G required ?????
02:12 PM polprog: wow
02:12 PM polprog: ok, i guess ill have to bite that
02:13 PM Tom_L: you can delete the zip afterwards and gain 6G
02:13 PM Tom_L: and the unzipped folder
02:15 PM rue_mohr: it installs in /opt
02:15 PM Tom_L: key to that is get a ssd big enough you never have to worry :)
02:15 PM Tom_dev: in: /opt/Xilinx/14.7/ISE_DS
02:15 PM rue_mohr: sure cause infinite sotrage means you can be as messy as you want and never pay and concequinces...
02:16 PM Tom_L: yeah, it's awesome :)
02:17 PM polprog: hmm
02:17 PM polprog: i guess that that IDE + what i have here should work
02:17 PM polprog: what's the bitstream file extension?
02:17 PM Tom_L: .bit
02:17 PM polprog: hmm
02:17 PM Tom_L: are you running 32 or 64bit?
02:18 PM polprog: 64 bit
02:18 PM polprog: attempting to load one of the example bitstreams with oocd caused a seg fault
02:18 PM Tom_dev: Launching Xilinx Design Suite:
02:18 PM Tom_dev: open terminal and 'sudo su'
02:18 PM Tom_dev: run as root
02:18 PM Tom_dev: navigate to cd /opt/Xilinx/14.7/ISE_DS
02:18 PM Tom_dev: and run: source settings32.sh
02:18 PM Tom_dev: or run: source settings64.sh
02:18 PM Tom_dev: then type: ise
02:18 PM Tom_dev: the application should launch
02:19 PM rue_mohr: polprog, https://github.com/ruenahcmohr/spartin6-fpga
02:19 PM polprog: ty! ^_^
02:20 PM rue_mohr: I think there will be bumps, tell me if/when you hit any
02:20 PM rue_mohr: can you get just part of the whole blob tho?
02:21 PM polprog: what blob
02:22 PM polprog: hmm, still segfaults
02:23 PM rue_mohr: 32 bit or 64 bit
02:23 PM polprog: 64
02:23 PM rue_mohr: huh
02:23 PM rue_mohr: it looks like 64 is a pain
02:23 PM polprog: openocd segfaults
02:24 PM rue_mohr: I wrestled with it too
02:24 PM rue_mohr: oh
02:24 PM polprog: ise is still installing
02:24 PM polprog: ;)
02:24 PM rue_mohr: thats... a different...
02:24 PM rue_mohr: huh
02:24 PM polprog: but i doubt ise supports buspirate as adapter, heh
02:25 PM Tom_L: did you get a license file?
02:26 PM polprog: where from?
02:26 PM polprog: i checked the option to get one
02:27 PM Tom_L: did you register on their site?
02:27 PM polprog: no
02:27 PM Tom_L: you will need to to get a license file
02:35 PM polprog: i want the "ISE Embedded Edition License"?
02:35 PM Tom_L: umm, lemme check
02:38 PM Tom_L: yes
02:38 PM Tom_L: i think...
02:39 PM Tom_L: yeah i'm pretty sure that's it
02:39 PM Tom_L: you might want that microblaze sdk too... you mentioned it
02:40 PM Tom_L: i didn't get that one
02:41 PM Tom_L: rue_mohr, do you remember what directory we copied your license file to?
02:41 PM Tom_L: save him alot of grief right off...
02:42 PM Tom_L: it was a hidden dir
02:42 PM polprog: ive got it working
02:42 PM Tom_L: license file installed?
02:42 PM polprog: it accepted the licence file
02:42 PM Tom_L: ok
02:42 PM Tom_L: good
02:42 PM Tom_L: rue had issues with it
02:44 PM Tom_L: rue_mohr, dunno if you looked but they've got a bunch of LogiCORE things you can download
02:44 PM Tom_L: alot of them are free
02:49 PM polprog: oh fuck
02:49 PM polprog: it doesnt detect my ethernet mac properly for the license
02:54 PM polprog: >Refer this AR to change the NIC card naming convention from emx to ethx as Flexlm tools only recognize ethx:
02:54 PM polprog: aaaaaaaaaaaaaaaaa
02:58 PM polprog: the bitstream upload issue worries me
02:58 PM polprog: what programmers do you use?
03:00 PM Tom_L: i've got a chinese xilinx one
03:01 PM Tom_L: https://www.ebay.com/itm/Xilinx-Platform-USB-Download-Cable-Jtag-Programmer-FPGA-CPLD-C-Mod-XC2C64A/401777575806?epid=842871839&hash=item5d8bcf477e:g:NckAAOSwGtxc8TX7
03:01 PM Tom_L: rue is using a parallel port one
03:02 PM Tom_L: or a usb one he got that uses that open software
03:10 PM polprog: eh ill bookmark that
03:10 PM polprog: Open On-Chip Debugger 0.9.0 (2018-01-21-13:43)
03:10 PM polprog: gj debian
03:11 PM polprog: i wonder which version have i got on the arch laptop
03:11 PM polprog: thats where BP was working before
03:12 PM rue_shop1: power bump!
03:16 PM Tom_L: rue_shop1, , link to the usb jtag you got
03:19 PM rue_shop1: https://www.aliexpress.com/item/32923720300.html
03:19 PM Tom_L: po
03:19 PM Tom_L: polprog, that works with the alternate software rue uses
03:19 PM Tom_L: rue_shop1, where's that at too?
03:20 PM polprog: rue_shop1: what alternate software?
03:21 PM Tom_L: the impact downloader that comes with webpack doesn't work in linux
03:21 PM Tom_L: the rest of it does though
03:35 PM polprog: hmm, new openocd still doesnt work
03:35 PM polprog: i guess ill bite the bullet
03:36 PM Tom_L: that one rue got works
03:36 PM Tom_L: as does mine
03:44 PM polprog: hmm
03:44 PM polprog: i guess ill have to try these
03:45 PM polprog: openocd just seg faults no matter what
03:45 PM polprog: i could try programming via raspi tomorrow
04:10 PM rue_mohr: I suggest what worked for me :)
04:10 PM rue_mohr: jtag is a nighmare
04:11 PM rue_mohr: it would be easier if these devices just used proprietory itnerfaces
04:30 PM polprog: yeah ill probably order that and try to use a raspi for now
04:31 PM polprog: you know how i programmed stm32 before the stlink came?
04:31 PM polprog: raspi with openocd
04:31 PM polprog: makefile on the PC that pushed the binary over XMODEM and ran openocd there
04:32 PM polprog: awesome isnt it?...
04:32 PM rue_mohr: its a prop protocol too
04:32 PM rue_mohr: see, jtag sucks
04:32 PM polprog: yeah
04:42 PM Tom_L: wait some more...
04:44 PM polprog: rue_mohr: what pins on the ft232 does your programmer connect to?
04:45 PM polprog: im trying to find out whether this ft232 adapter would work
04:45 PM polprog: https://allegro.pl/oferta/programator-sonoff-ft232rl-ftdi-przewody-kabel-usb-8118700441
04:45 PM rue_mohr: I have it all documented
04:45 PM polprog: if not then ill go order that violet one
04:46 PM rue_mohr: hmm
04:46 PM rue_mohr: I'll post in a bit
04:46 PM rue_mohr: 2pm, just having breakfast
04:46 PM polprog: bon apetit
04:47 PM Tom_L: ft232 sould be the same ehh?
04:47 PM polprog: its the older version
04:47 PM polprog: i think it has less pins, but the tqfp vs soic package might be fooling me
04:48 PM Tom_L: sure worth a try
04:50 PM polprog: damnit, all my converters are cp2102
04:50 PM polprog: hmm, there is one pl2302
04:53 PM polprog: if i order it tomorrow, ill have it on tuesday
04:53 PM polprog: worth a shot
04:53 PM polprog: ill go grab something to eat as well..
04:54 PM Tom_L: from ali?
04:54 PM Tom_L: that's quick
04:54 PM polprog: no, from the local site
04:55 PM polprog: ali takes.. a month maybe?
04:55 PM Tom_L: oh
04:55 PM zhanx: still alive, welding practice bbl
04:55 PM Tom_L: roll call is complete then
04:56 PM polprog: ?
04:56 PM Tom_L: haven't heard from z all day
04:56 PM polprog: theres a second ebay package coming with an altera fpga and a usb blaster
04:56 PM polprog: which was known to work under some arcane conditions
04:57 PM polprog: Tom_L: ah, nice
04:57 PM Tom_L: altera will require different software too
04:57 PM polprog: i know
04:57 PM Tom_L: for the one short on hdd space...
04:57 PM polprog: heh
04:57 PM polprog: i hope it wont be that huge...
04:58 PM polprog: ill just add another disk if necesary
04:59 PM rue_mohr: 18G
05:00 PM rue_mohr: those projects are about ~2M ea
05:00 PM Tom_L: once you get the bit file, delete the rest
05:01 PM polprog: ill be fine tuning the process with a makefile for actual programming when it works
05:05 PM polprog: nighters
05:06 PM rue_mohr: but in the meantime you can just unpack and opent eh project
07:16 PM Tom_L: they've got a LogicCORE IIC bus interface example
07:17 PM Tom_L: PCIE endpoint block plus
07:17 PM Tom_L: one for spartan6 as well
07:18 PM Tom_L: 10G ethernet PCS/PMA
07:19 PM Tom_L: 16550 uart
07:20 PM Tom_L: FPU
07:20 PM Tom_L: single precision
07:35 PM rue_mohr: yea, but they all seem to bloated and overcomplicated
07:35 PM Tom_L: those are on the xilinx site
07:36 PM Tom_L: most for the microblaze core i think
07:45 PM rue_shop5: zhanx,
07:45 PM zhanx: me
07:46 PM zhanx: googling stainless welding but go
07:46 PM rue_shop5: stick
07:46 PM rue_shop5: just do it
07:46 PM zhanx: your question?
07:46 PM rue_shop5: no, I'm just happy to see ya back
07:46 PM zhanx: amps to high for it
07:47 PM zhanx: took me a bit to dial it in
07:47 PM rue_shop5: ? huh
07:47 PM rue_shop5: brush it before it cools
07:47 PM zhanx: dab it to tack it
07:47 PM zhanx: thin wall
07:48 PM rue_shop5: hmm
07:48 PM rue_shop5: making a turbocharger?
07:49 PM zhanx: no
08:00 PM rue_shop2: polprog, AD0 TCK, AD1 TDI, AD2 TDO, AD3 TMS