Tuesday, 2018-11-13

*** tpb has joined #timvideos00:00
*** nickzoic has joined #timvideos00:06
nickzoic@mithro @cr1901_modern do you know which TinyFPGA BX pins are required for UART?  I tried 1 and 2 as the instructions previously said but no dice, the instructions now say "You will need to connect the USB UART to the following pins;  XXXX"00:11
nickzoicHmmm ... platforms/tinyfpga_bx.py suggests TX = GPIO:0 = A2 = pin1 and RX = GPIO:1 = A1 = pin2 but that didn't work for me ...00:15
nickzoicActually it still does say it00:42
nickzoicActually it still does say it "TX should be connected to Pin 1 and RX to Pin 2 (as labeled on the TinyFPGA BX silkscreen)"00:42
cr1901_modernnickzoic: It should be pins 1 and 2, but I presently don't have TinyFPGA BX hardware set up to test, sorry :(01:15
mithronickzoic: I'm about to try this myself01:52
nickzoicYeah, it's weird, the code looks like it is setting it up, tinyprog reports success but there's no sign of any signals on those pins.02:12
nickzoicLooking at the schematic that looks correct too. Pin1 = J1-2 = 221 = A2 and Pin2 = J1-3 = 224 = A1 ...02:16
nickzoicThe only thing I'm doing differently from the instructions is `pip install -e /path/to/tinyprog`02:44
nickzoic... which is grabbing 1.0.22b1 / 0b70c51b802:46
nickzoic1.0.23 was mentioned elsewhere I think but isn't pushed yet.02:47
nickzoicI'm at an impasse so here's a dump of the output in case it means something to anyone: https://gist.github.com/nickzoic/1dcd4574c0d73ced53ee21bc72d0f4ea02:54
tpbTitle: make gateware-flash · GitHub (at gist.github.com)02:54
*** sb0 has quit IRC03:22
mithronickzoic: Sorry, got distracted... back now03:26
nickzoicno worries03:36
*** CarlFK has joined #timvideos03:44
*** ChanServ sets mode: +v CarlFK03:44
mithronickzoic: Have you tried blinky?03:44
mithroNow I need to figure out which way around tx+rx are :-P03:45
*** rohitksingh_work has joined #timvideos03:58
nickzoicmithro: which blinky?04:09
nickzoicI don't get a serial console so no MicroPython blinky for me ...04:09
nickzoicI started over with a new repo checkout & conda environment and micropython builds and `make image-flash` gets 'Success!' but no sign of serial comms at any point.04:11
nickzoicTried another USB-UART and swapping TX/RX ... still nothing, nothing on 'scope either.04:14
nickzoicDunno what I've missed!04:15
mithronickzoic: https://tinyfpga.com/bx/guide.html04:20
tpbTitle: TinyFPGA BX User Guide (at tinyfpga.com)04:20
nickzoicOh, you mean the tinyfpga_bx/bink_project ... tried that earlier04:20
nickzoicthat works still04:20
mithroOkay04:23
nickzoictriyng to work out enoguh verilog to make it say SOS on the serial pins too :-)04:24
mithronickzoic: Try replacing "export FIRMWARE=micropython" with "export FIRMWARE=stub"04:29
nickzoicyep, nope.04:32
mithronickzoic: So how are you flashing the board?04:36
nickzoic(OK, so a modified blink_project is now successfully barfing (incorrect) serial characters out on pin 1, so it isn't that that isn't soldered properly or something)04:37
nickzoicmake gateware-flash04:37
mithronickzoic: Oh04:38
mithronickzoic: Can you try "make image-flash" ?04:40
nickzoicyeah, same same.04:40
nickzoicgets 'Success!' but no serial happiness.04:40
mithronickzoic: So, I guess the next step is to make the gateware flash the LED04:42
mithronickzoic: Oh, are you hitting enter on the serial console?04:42
mithrocr1901_modern: tinyprog: error: unrecognized arguments: --program-image build/tinyfpga_bx_base_lm32.minimal//image-gateware+bios+none.bin04:44
mithro?04:44
mithronickzoic: You didn't get the above error?04:45
nickzoicSo I had to pull in a newer tinyprog ... `pip install -e /path/to/tinyprog`04:46
nickzoicI just pulled it from master.  The options have changed from 0.21 to 0.22b ... 0.23 isn't on the repo yet!04:46
nickzoicThere's a 0.23 on PyPi but only for Python204:47
mithronickzoic: Well, so far I'm not seeing anything uart like on the pins either...04:49
mithronickzoic: Guess I'll test anything works on the icebreaker board here04:54
mithroI know cr1901_modern was working on that recently...04:54
mithroOkay, so at least the stub firmware boots on the lm32 on the icebreaker05:04
mithro(LX P=icebreaker.minimal F=stub R=master-lbe) tansell@tansell:~/github/timvideos/litex-buildenv$ make firmware-connect05:04
mithroflterm --port=/dev/ttyUSB2 --speed=11520005:04
mithro[FLTERM] Starting...05:04
mithroSTUB>05:04
mithroSTUB>05:04
*** mithro has quit IRC05:04
*** mithro has joined #timvideos05:04
*** ChanServ sets mode: +o mithro05:04
mithrohttps://www.irccloud.com/pastebin/G5MuVZxJ/05:05
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)05:05
mithroHrm....05:08
mithrohttps://github.com/timvideos/litex-buildenv/blob/master/platforms/tinyfpga_bx.py#L42-L4905:09
tpbTitle: litex-buildenv/tinyfpga_bx.py at master · timvideos/litex-buildenv · GitHub (at github.com)05:09
mithrohttps://github.com/timvideos/litex-buildenv/blob/master/targets/tinyfpga_bx/base.py#L19-L2505:10
tpbTitle: litex-buildenv/base.py at master · timvideos/litex-buildenv · GitHub (at github.com)05:10
mithroThey seem to be different...05:11
mithroBing!05:13
mithronickzoic: You need this patch05:13
mithrohttps://www.irccloud.com/pastebin/S8L8lBuM/05:13
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)05:13
nickzoicSubsignal("tx", Pins("GPIO:0")),         Subsignal("rx", Pins("GPIO:1")),is that patch right or reversed?  I've currently got05:16
mithroNotice the GPIO:0 and GPIO:1 verse GPIO:1 and GPIO:205:16
nickzoicOK but your patch is -GPIO:1 and +GPIO:005:17
nickzoicis it meant to be 1-indexed?05:17
nickzoicand if so why is that not a goddamn erro!05:17
mithroIt's zero index05:17
mithroGPIO:0 == Pin 1 == A205:17
nickzoicRight, my version already says GPIO:0 and GPIO:105:17
mithronickzoic: Are you looking in the right file?05:18
mithroThat is duplicated in both targets/tinyfpga_bx/base.py *and* platforms/tinyfpga_bx.py05:18
nickzoicNo!05:18
nickzoic*sigh*05:18
mithroI blame cr1901_modern :-P05:20
mithronickzoic: https://github.com/timvideos/litex-buildenv/pull/10105:21
tpbTitle: tinyfpga_bx: Actually use pins documented. by mithro · Pull Request #101 · timvideos/litex-buildenv · GitHub (at github.com)05:21
nickzoicAny idea what baud it is expecting05:21
nickzoicHA!05:24
nickzoicIT LIVES!05:25
CarlFKyay05:25
CarlFK(no idea what lives, but im sure it is a good thing)(05:25
nickzoic`MicroPython v1.9.4-534-gd2bd40498 on 2018-11-13; litex with lm32`05:25
mithronickzoic: So, now we have the UART working05:26
nickzoicfinal-fucking-ly!05:26
mithroThe next step is to create a litescope config which lets us capture data from the USB pins and spit it up the UART05:26
mithronickzoic: I added some extra documentation on https://github.com/timvideos/litex-buildenv/pull/101/files05:27
tpbTitle: tinyfpga_bx: Actually use pins documented. by mithro · Pull Request #101 · timvideos/litex-buildenv · GitHub (at github.com)05:27
mithronickzoic: Something along the lines of this -> https://github.com/timvideos/litex-buildenv/blob/master/targets/mimasv2/scope.py05:28
tpbTitle: litex-buildenv/scope.py at master · timvideos/litex-buildenv · GitHub (at github.com)05:28
nickzoicSo, dare I ask, what's the difference between 'platforms/' and 'targets/' ?05:32
mithronickzoic: platforms are like the "here is what the board has"05:32
mithronickzoic: targets are like "here is how to use the resources on a board"05:32
mithronickzoic: https://github.com/timvideos/litex-buildenv/wiki/Glossary05:33
tpbTitle: Glossary · timvideos/litex-buildenv Wiki · GitHub (at github.com)05:33
mithroActually, looks like that never made it there...05:34
nickzoicOK will try and get my head around the litescope bit tonight, got to go chase the kids around for a bit.05:38
mithronickzoic: Take a look at https://github.com/timvideos/litex-buildenv/blob/master/test/test_analyzer.py05:39
tpbTitle: litex-buildenv/test_analyzer.py at master · timvideos/litex-buildenv · GitHub (at github.com)05:39
mithronickzoic: and https://github.com/timvideos/litex-buildenv/blob/master/test/ipython_etherbone.py05:39
tpbTitle: litex-buildenv/ipython_etherbone.py at master · timvideos/litex-buildenv · GitHub (at github.com)05:39
mithrohttps://github.com/timvideos/litex-buildenv/blob/master/test/common.py#L34-L6605:40
tpbTitle: litex-buildenv/common.py at master · timvideos/litex-buildenv · GitHub (at github.com)05:40
mithroI have to run home and have some dinner I think05:40
*** sb0 has joined #timvideos06:16
nickzoicWait, what timezone are you in Tim!06:32
*** nickzoic has quit IRC06:45
*** mauz555 has joined #timvideos07:53
*** mauz555 has quit IRC08:16
*** sb0 has quit IRC10:05
*** nickzoic has joined #timvideos10:22
*** Kripton has quit IRC10:42
*** Kripton has joined #timvideos10:50
*** futarisIRCcloud has joined #timvideos11:50
futarisIRCcloudhttps://www.zdnet.com/google-amp/article/chip-startup-efinix-hopes-to-bootstrap-ai-efforts-in-iot/11:52
tpbTitle: Chip startup Efinix hopes to bootstrap AI efforts in IoT | ZDNet (at www.zdnet.com)11:52
*** nickzoic has quit IRC12:05
*** sc00bz1 has joined #timvideos12:37
*** sc00bz has quit IRC12:40
*** rohitksingh_work has quit IRC12:45
*** sc00bz1 has quit IRC12:49
*** sc00bz has joined #timvideos12:51
*** sb0 has joined #timvideos13:03
cr1901_modernmithro: iceprog should be avail as part of icestorm on conda...13:04
cr1901_modernis it not being built?13:05
*** futarisIRCcloud has quit IRC14:00
felix__florent_: how can i add a pull-up to a tristate pin in litex/migen?14:01
_florent_felix_: Misc("PULLUP=TRUE")14:03
felix_thx14:03
*** rohitksingh has joined #timvideos15:11
*** TheAssassin has quit IRC16:25
*** TheAssassin has joined #timvideos16:31
*** rohitksingh has quit IRC17:38
*** rohitksingh has joined #timvideos17:59
*** mauz555 has joined #timvideos18:15
*** CarlFK has quit IRC18:17
*** mauz555 has quit IRC18:17
*** mauz555 has joined #timvideos18:18
*** rohitksingh has quit IRC18:28
*** rohitksingh has joined #timvideos18:40
*** mauz555 has quit IRC18:51
*** mauz555 has joined #timvideos18:58
*** rohitksingh has quit IRC19:00
*** CarlFK has joined #timvideos21:28
*** ChanServ sets mode: +v CarlFK21:28
*** CarlFK has quit IRC21:39
*** mauz555 has quit IRC21:41
*** CarlFK has joined #timvideos21:43
*** ChanServ sets mode: +v CarlFK21:43
*** CarlFK has quit IRC21:43
*** TimGremalm has quit IRC22:25
*** TimGremalm has joined #timvideos22:29
*** CarlFK has joined #timvideos22:38
*** ChanServ sets mode: +v CarlFK22:38
*** tsglove2 has joined #timvideos22:43
*** tsglove has quit IRC22:46
*** mauz555 has joined #timvideos23:31
*** TheAssassin has quit IRC23:49
*** TheAssassin has joined #timvideos23:58

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!