*** tpb has joined #timvideos | 00:00 | |
*** nickzoic has joined #timvideos | 00: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 |
---|---|---|
nickzoic | Hmmm ... 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 |
nickzoic | Actually it still does say it | 00:42 |
nickzoic | Actually 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_modern | nickzoic: It should be pins 1 and 2, but I presently don't have TinyFPGA BX hardware set up to test, sorry :( | 01:15 |
mithro | nickzoic: I'm about to try this myself | 01:52 |
nickzoic | Yeah, 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 |
nickzoic | Looking at the schematic that looks correct too. Pin1 = J1-2 = 221 = A2 and Pin2 = J1-3 = 224 = A1 ... | 02:16 |
nickzoic | The 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 / 0b70c51b8 | 02:46 |
nickzoic | 1.0.23 was mentioned elsewhere I think but isn't pushed yet. | 02:47 |
nickzoic | I'm at an impasse so here's a dump of the output in case it means something to anyone: https://gist.github.com/nickzoic/1dcd4574c0d73ced53ee21bc72d0f4ea | 02:54 |
tpb | Title: make gateware-flash · GitHub (at gist.github.com) | 02:54 |
*** sb0 has quit IRC | 03:22 | |
mithro | nickzoic: Sorry, got distracted... back now | 03:26 |
nickzoic | no worries | 03:36 |
*** CarlFK has joined #timvideos | 03:44 | |
*** ChanServ sets mode: +v CarlFK | 03:44 | |
mithro | nickzoic: Have you tried blinky? | 03:44 |
mithro | Now I need to figure out which way around tx+rx are :-P | 03:45 |
*** rohitksingh_work has joined #timvideos | 03:58 | |
nickzoic | mithro: which blinky? | 04:09 |
nickzoic | I don't get a serial console so no MicroPython blinky for me ... | 04:09 |
nickzoic | I 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 |
nickzoic | Tried another USB-UART and swapping TX/RX ... still nothing, nothing on 'scope either. | 04:14 |
nickzoic | Dunno what I've missed! | 04:15 |
mithro | nickzoic: https://tinyfpga.com/bx/guide.html | 04:20 |
tpb | Title: TinyFPGA BX User Guide (at tinyfpga.com) | 04:20 |
nickzoic | Oh, you mean the tinyfpga_bx/bink_project ... tried that earlier | 04:20 |
nickzoic | that works still | 04:20 |
mithro | Okay | 04:23 |
nickzoic | triyng to work out enoguh verilog to make it say SOS on the serial pins too :-) | 04:24 |
mithro | nickzoic: Try replacing "export FIRMWARE=micropython" with "export FIRMWARE=stub" | 04:29 |
nickzoic | yep, nope. | 04:32 |
mithro | nickzoic: 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 |
nickzoic | make gateware-flash | 04:37 |
mithro | nickzoic: Oh | 04:38 |
mithro | nickzoic: Can you try "make image-flash" ? | 04:40 |
nickzoic | yeah, same same. | 04:40 |
nickzoic | gets 'Success!' but no serial happiness. | 04:40 |
mithro | nickzoic: So, I guess the next step is to make the gateware flash the LED | 04:42 |
mithro | nickzoic: Oh, are you hitting enter on the serial console? | 04:42 |
mithro | cr1901_modern: tinyprog: error: unrecognized arguments: --program-image build/tinyfpga_bx_base_lm32.minimal//image-gateware+bios+none.bin | 04:44 |
mithro | ? | 04:44 |
mithro | nickzoic: You didn't get the above error? | 04:45 |
nickzoic | So I had to pull in a newer tinyprog ... `pip install -e /path/to/tinyprog` | 04:46 |
nickzoic | I 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 |
nickzoic | There's a 0.23 on PyPi but only for Python2 | 04:47 |
mithro | nickzoic: Well, so far I'm not seeing anything uart like on the pins either... | 04:49 |
mithro | nickzoic: Guess I'll test anything works on the icebreaker board here | 04:54 |
mithro | I know cr1901_modern was working on that recently... | 04:54 |
mithro | Okay, so at least the stub firmware boots on the lm32 on the icebreaker | 05:04 |
mithro | (LX P=icebreaker.minimal F=stub R=master-lbe) tansell@tansell:~/github/timvideos/litex-buildenv$ make firmware-connect | 05:04 |
mithro | flterm --port=/dev/ttyUSB2 --speed=115200 | 05:04 |
mithro | [FLTERM] Starting... | 05:04 |
mithro | STUB> | 05:04 |
mithro | STUB> | 05:04 |
*** mithro has quit IRC | 05:04 | |
*** mithro has joined #timvideos | 05:04 | |
*** ChanServ sets mode: +o mithro | 05:04 | |
mithro | https://www.irccloud.com/pastebin/G5MuVZxJ/ | 05:05 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 05:05 |
mithro | Hrm.... | 05:08 |
mithro | https://github.com/timvideos/litex-buildenv/blob/master/platforms/tinyfpga_bx.py#L42-L49 | 05:09 |
tpb | Title: litex-buildenv/tinyfpga_bx.py at master · timvideos/litex-buildenv · GitHub (at github.com) | 05:09 |
mithro | https://github.com/timvideos/litex-buildenv/blob/master/targets/tinyfpga_bx/base.py#L19-L25 | 05:10 |
tpb | Title: litex-buildenv/base.py at master · timvideos/litex-buildenv · GitHub (at github.com) | 05:10 |
mithro | They seem to be different... | 05:11 |
mithro | Bing! | 05:13 |
mithro | nickzoic: You need this patch | 05:13 |
mithro | https://www.irccloud.com/pastebin/S8L8lBuM/ | 05:13 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 05:13 |
nickzoic | Subsignal("tx", Pins("GPIO:0")), Subsignal("rx", Pins("GPIO:1")),is that patch right or reversed? I've currently got | 05:16 |
mithro | Notice the GPIO:0 and GPIO:1 verse GPIO:1 and GPIO:2 | 05:16 |
nickzoic | OK but your patch is -GPIO:1 and +GPIO:0 | 05:17 |
nickzoic | is it meant to be 1-indexed? | 05:17 |
nickzoic | and if so why is that not a goddamn erro! | 05:17 |
mithro | It's zero index | 05:17 |
mithro | GPIO:0 == Pin 1 == A2 | 05:17 |
nickzoic | Right, my version already says GPIO:0 and GPIO:1 | 05:17 |
mithro | nickzoic: Are you looking in the right file? | 05:18 |
mithro | That is duplicated in both targets/tinyfpga_bx/base.py *and* platforms/tinyfpga_bx.py | 05:18 |
nickzoic | No! | 05:18 |
nickzoic | *sigh* | 05:18 |
mithro | I blame cr1901_modern :-P | 05:20 |
mithro | nickzoic: https://github.com/timvideos/litex-buildenv/pull/101 | 05:21 |
tpb | Title: tinyfpga_bx: Actually use pins documented. by mithro · Pull Request #101 · timvideos/litex-buildenv · GitHub (at github.com) | 05:21 |
nickzoic | Any idea what baud it is expecting | 05:21 |
nickzoic | HA! | 05:24 |
nickzoic | IT LIVES! | 05:25 |
CarlFK | yay | 05: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 |
mithro | nickzoic: So, now we have the UART working | 05:26 |
nickzoic | final-fucking-ly! | 05:26 |
mithro | The next step is to create a litescope config which lets us capture data from the USB pins and spit it up the UART | 05:26 |
mithro | nickzoic: I added some extra documentation on https://github.com/timvideos/litex-buildenv/pull/101/files | 05:27 |
tpb | Title: tinyfpga_bx: Actually use pins documented. by mithro · Pull Request #101 · timvideos/litex-buildenv · GitHub (at github.com) | 05:27 |
mithro | nickzoic: Something along the lines of this -> https://github.com/timvideos/litex-buildenv/blob/master/targets/mimasv2/scope.py | 05:28 |
tpb | Title: litex-buildenv/scope.py at master · timvideos/litex-buildenv · GitHub (at github.com) | 05:28 |
nickzoic | So, dare I ask, what's the difference between 'platforms/' and 'targets/' ? | 05:32 |
mithro | nickzoic: platforms are like the "here is what the board has" | 05:32 |
mithro | nickzoic: targets are like "here is how to use the resources on a board" | 05:32 |
mithro | nickzoic: https://github.com/timvideos/litex-buildenv/wiki/Glossary | 05:33 |
tpb | Title: Glossary · timvideos/litex-buildenv Wiki · GitHub (at github.com) | 05:33 |
mithro | Actually, looks like that never made it there... | 05:34 |
nickzoic | OK will try and get my head around the litescope bit tonight, got to go chase the kids around for a bit. | 05:38 |
mithro | nickzoic: Take a look at https://github.com/timvideos/litex-buildenv/blob/master/test/test_analyzer.py | 05:39 |
tpb | Title: litex-buildenv/test_analyzer.py at master · timvideos/litex-buildenv · GitHub (at github.com) | 05:39 |
mithro | nickzoic: and https://github.com/timvideos/litex-buildenv/blob/master/test/ipython_etherbone.py | 05:39 |
tpb | Title: litex-buildenv/ipython_etherbone.py at master · timvideos/litex-buildenv · GitHub (at github.com) | 05:39 |
mithro | https://github.com/timvideos/litex-buildenv/blob/master/test/common.py#L34-L66 | 05:40 |
tpb | Title: litex-buildenv/common.py at master · timvideos/litex-buildenv · GitHub (at github.com) | 05:40 |
mithro | I have to run home and have some dinner I think | 05:40 |
*** sb0 has joined #timvideos | 06:16 | |
nickzoic | Wait, what timezone are you in Tim! | 06:32 |
*** nickzoic has quit IRC | 06:45 | |
*** mauz555 has joined #timvideos | 07:53 | |
*** mauz555 has quit IRC | 08:16 | |
*** sb0 has quit IRC | 10:05 | |
*** nickzoic has joined #timvideos | 10:22 | |
*** Kripton has quit IRC | 10:42 | |
*** Kripton has joined #timvideos | 10:50 | |
*** futarisIRCcloud has joined #timvideos | 11:50 | |
futarisIRCcloud | https://www.zdnet.com/google-amp/article/chip-startup-efinix-hopes-to-bootstrap-ai-efforts-in-iot/ | 11:52 |
tpb | Title: Chip startup Efinix hopes to bootstrap AI efforts in IoT | ZDNet (at www.zdnet.com) | 11:52 |
*** nickzoic has quit IRC | 12:05 | |
*** sc00bz1 has joined #timvideos | 12:37 | |
*** sc00bz has quit IRC | 12:40 | |
*** rohitksingh_work has quit IRC | 12:45 | |
*** sc00bz1 has quit IRC | 12:49 | |
*** sc00bz has joined #timvideos | 12:51 | |
*** sb0 has joined #timvideos | 13:03 | |
cr1901_modern | mithro: iceprog should be avail as part of icestorm on conda... | 13:04 |
cr1901_modern | is it not being built? | 13:05 |
*** futarisIRCcloud has quit IRC | 14: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_ | thx | 14:03 |
*** rohitksingh has joined #timvideos | 15:11 | |
*** TheAssassin has quit IRC | 16:25 | |
*** TheAssassin has joined #timvideos | 16:31 | |
*** rohitksingh has quit IRC | 17:38 | |
*** rohitksingh has joined #timvideos | 17:59 | |
*** mauz555 has joined #timvideos | 18:15 | |
*** CarlFK has quit IRC | 18:17 | |
*** mauz555 has quit IRC | 18:17 | |
*** mauz555 has joined #timvideos | 18:18 | |
*** rohitksingh has quit IRC | 18:28 | |
*** rohitksingh has joined #timvideos | 18:40 | |
*** mauz555 has quit IRC | 18:51 | |
*** mauz555 has joined #timvideos | 18:58 | |
*** rohitksingh has quit IRC | 19:00 | |
*** CarlFK has joined #timvideos | 21:28 | |
*** ChanServ sets mode: +v CarlFK | 21:28 | |
*** CarlFK has quit IRC | 21:39 | |
*** mauz555 has quit IRC | 21:41 | |
*** CarlFK has joined #timvideos | 21:43 | |
*** ChanServ sets mode: +v CarlFK | 21:43 | |
*** CarlFK has quit IRC | 21:43 | |
*** TimGremalm has quit IRC | 22:25 | |
*** TimGremalm has joined #timvideos | 22:29 | |
*** CarlFK has joined #timvideos | 22:38 | |
*** ChanServ sets mode: +v CarlFK | 22:38 | |
*** tsglove2 has joined #timvideos | 22:43 | |
*** tsglove has quit IRC | 22:46 | |
*** mauz555 has joined #timvideos | 23:31 | |
*** TheAssassin has quit IRC | 23:49 | |
*** TheAssassin has joined #timvideos | 23:58 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!