*** tpb has joined #timvideos | 00:00 | |
tannewt | mithro: they can be up to 64 bytes. On the control endpoint the setup packet will include a max length | 00:05 |
---|---|---|
mithro | tannewt: But it seems the first data0 following a setup pid token is always 8 bytes | 00:06 |
mithro | ? | 00:06 |
tannewt | Yup. The setup packet is always 8 bytes | 00:06 |
mithro | Okay | 00:07 |
mithro | coffee time and then I think I can get these data in / out transfers working | 00:07 |
tannewt | The nrf has registers for those values because you can receive a setup packet at any time | 00:07 |
tannewt | Nice! Do you have a setup packet interrupt as well? | 00:08 |
*** TheAssassin has joined #timvideos | 00:20 | |
mithro | tannewt: I'll need some code to generate the packet data soon | 00:27 |
tannewt | I may have some time tonight for it. You can see the osal in tiny usb for what needs to be implemented at the lowest level. | 00:29 |
*** sc00bz1 has joined #timvideos | 00:47 | |
*** sc00bz has quit IRC | 00:50 | |
xobs | mithro: yes, U10 is the RGB LED. And U7 is the crystal I forgot to give them. And U4 is the footprint that apparently doesn't fit the parts I gave them :-/ | 01:03 |
*** puck_ has quit IRC | 01:14 | |
*** futarisIRCcloud has joined #timvideos | 02:41 | |
futarisIRCcloud | mithro: What device(s) were you trying to get tinyusb running on over the weekend? | 02:46 |
mithro | Tinyfpga-bx | 02:58 |
mithro | tannewt / xobs: The crc5 is done over the addr+endp -- so 11 bits? | 04:08 |
tannewt | mithro, not sure I never have to do that part | 04:12 |
futarisIRCcloud | address & endp. http://www.oguchi-rd.com/technology/crc5.pdf | 04:12 |
xobs | mithro: I believe so. Though in practice I never had to calculate it in Grainuum. | 04:22 |
mithro | tannewt: I figure out what that strange request is before the SET_ADDRESS | 04:30 |
tannewt | ya? | 04:31 |
mithro | https://www.irccloud.com/pastebin/81fvmT29/ | 04:31 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 04:31 |
*** rohitksingh_work has joined #timvideos | 04:35 | |
tannewt | interesting! | 04:36 |
xobs | Yeah, it's completely valid to only request part of a descriptor! | 04:41 |
futarisIRCcloud | Yep, part of the spec. | 04:44 |
futarisIRCcloud | Relevant - https://twitter.com/whitequark/status/1060039819097726976 - "please find the people who wrote the USB spec, and fire every single one of them for gross incompetence" | 04:45 |
tannewt | that's easy to say after the fact | 04:45 |
futarisIRCcloud | It was designed in 1996. Bluetooth specs aren't much better. | 04:47 |
*** rohitksingh_wor1 has joined #timvideos | 04:57 | |
*** rohitksingh_work has quit IRC | 04:58 | |
xobs | The descriptor system, with various sizes that may (or may not) be accurate, is a large source of host implementation bugs. | 05:17 |
*** rohitksingh_work has joined #timvideos | 05:26 | |
*** rohitksingh_wor1 has quit IRC | 05:29 | |
xobs | When compiling nextpnr, what does "Could NOT find Boost" mean? | 05:58 |
xobs | This is following "Found the following boost libraries: filesystem, thread, program_options, system, chrono, date_time, atomic". | 05:58 |
mithro | xobs: If I recall, it is complaining about not finding python-py27.... | 06:17 |
xobs | mithro: I see. It tries to find Boost one method, and then when it fails it falls back to a different method. But the error still gets printed out. | 06:18 |
*** rohitksingh_wor1 has joined #timvideos | 06:26 | |
*** rohitksingh_work has quit IRC | 06:28 | |
*** futarisIRCcloud has quit IRC | 07:00 | |
CarlFK | mithro: why is this booting h2u firmware and not linux? https://paste.ubuntu.com/p/ndfhnzzVJG/ | 07:34 |
tpb | Title: Ubuntu Pastebin (at paste.ubuntu.com) | 07:34 |
mithro | CarlFK: your script is bad | 07:37 |
mithro | Look in the middle | 07:37 |
CarlFK | mithro: i looked. now what? ;) | 07:40 |
mithro | Your script is broken, fix your script | 07:41 |
CarlFK | mithro: I don't know how | 07:45 |
mithro | CarlFK: go compare your script to the tutorial | 07:46 |
mithro | CarlFK: Also make your script stop on errors | 07:46 |
CarlFK | mithro: make flterm not error :p | 07:46 |
mithro | CarlFK: you have the source code | 07:48 |
CarlFK | mithro: this just got too hard. | 07:48 |
mithro | CarlFK: of just do a "flterm || true" ? | 07:57 |
CarlFK | mithro: i can't just do that - the script clones your repo, your repo has the flterm commands in arty/Makefile.mk - if you'll do it your repo, then I'll test it and see what happens | 08:12 |
mithro | Isn't it the last command anyway? | 08:13 |
CarlFK | mithro: 4 - firmware,linux x qemu, arty | 08:15 |
mithro | CarlFK: I have no idea what you are saying | 08:18 |
CarlFK | mithro: flterm isn't the last command | 08:18 |
mithro | Well, I'm calling it a night | 08:32 |
mithro | xobs: You can see the latest at https://github.com/mithro/valentyusb | 08:50 |
tpb | Title: GitHub - mithro/valentyusb: USB Full-Speed core written in migen/LiteX (at github.com) | 08:50 |
mithro | xobs: Still probably won't work | 08:50 |
mithro | xobs: Currently working on this bit -> https://github.com/mithro/valentyusb/blob/master/valentyusb/test_usbcore.py#L1928-L2042 | 08:51 |
tpb | Title: valentyusb/test_usbcore.py at master · mithro/valentyusb · GitHub (at github.com) | 08:51 |
xobs | Ick. Turns out the footprint of the crystal is mirrored on the datasheet. As a result my PCBs have no working 48 MHz crystal. | 11:00 |
daveshah | xobs: https://imgur.com/a/zTmQ8VB | 11:02 |
tpb | Title: Imgur: The magic of the Internet (at imgur.com) | 11:02 |
daveshah | join the club | 11:02 |
xobs | daveshah: that... makes me feel a lot better, actually. Nice job. | 11:03 |
daveshah | I had made the same mistake I think | 11:03 |
daveshah | then I ordered a second batch of boards to be assembled by elecrow | 11:03 |
daveshah | with a correct footprint | 11:03 |
xobs | Well, this is why we make prototypes. | 11:03 |
daveshah | but they soldered it the wrong way round so I had to bodge those too! | 11:03 |
xobs | I also made the SPI flash footprint a bit small, but that can be fixed with not-too-terrible hand-soldering. The oscillator footprint thing is annoying. | 11:04 |
daveshah | everyone gets SPI flash footprints too small lol | 11:04 |
xobs | It's an FPGA, so I'm thinking maybe I can get away with using a different input for clocks. Unfortunately, the pad I picked for that is I2C, which has a pullup on it. That'll make the clock line not so good. | 11:05 |
daveshah | I doubt a pullup is too big an issue tbh | 11:05 |
xobs | Well, I'll try feeding it in. I need a 48 MHz clock, and happily the Raspberry Pi has a 19.2 MHz clock that's two pins away, which the PLL can eat nicely. | 11:06 |
daveshah | ah, that's nice | 11:06 |
xobs | And this PCB is designed to work with a Raspberry Pi, so it's not a catastrophic failure. Just a big one. | 11:06 |
xobs | At least I got the LED polarity right. And the voltage regulators seem happy. Tomorrow I'll see if I can talk to the ICE40. | 11:07 |
* felix_ also wonders why some crystal manufacturers have the footprint seen from the bottom and not from the top like everone else does that | 11:11 | |
*** rohitksingh_wor1 has quit IRC | 11:54 | |
*** diamondman has quit IRC | 11:57 | |
*** diamondman has joined #timvideos | 11:57 | |
*** rohitksingh_work has joined #timvideos | 11:59 | |
*** rohitksingh_wor1 has joined #timvideos | 12:03 | |
*** rohitksingh_work has quit IRC | 12:03 | |
*** rohitksingh_wor1 has quit IRC | 13:02 | |
*** Kripton has quit IRC | 13:15 | |
*** Kripton has joined #timvideos | 13:28 | |
*** rohitksingh has joined #timvideos | 13:47 | |
*** rohitksingh has quit IRC | 14:55 | |
*** rohitksingh has joined #timvideos | 15:27 | |
*** rohitksingh has quit IRC | 16:50 | |
*** rohitksingh has joined #timvideos | 17:22 | |
*** rohitksingh has quit IRC | 17:31 | |
*** rohitksingh has joined #timvideos | 17:39 | |
mithro | xobs: I'm very interested in seeing if I can get the USB stuff working from the internal oscillator | 18:52 |
mithro | xobs: tinyfpga doesn't think it's stable enough | 18:52 |
mithro | xobs: He's probably right, but I'm stubborn :-P | 18:53 |
mithro | _florent_: ping? | 18:53 |
tannewt | @mithro can you sync to the internal osc? | 20:34 |
mithro | tannewt: you mean internal oscillator feeding the PLL? | 20:37 |
tannewt | I think samd syncs the internal osc to the start of frame | 20:37 |
tannewt | I don't know much about clocks | 20:38 |
CarlFK | mithro: ./scripts/build-qemu.sh ... buildroot login: <- is that flterm or qemu's --nographic console? | 20:47 |
CarlFK | I don't see flterm runing. which explains whey I can ^c out of it and flterm doesn't error | 20:48 |
*** rohitksingh has quit IRC | 21:09 | |
mithro | xobs: Also see https://github.com/mithro/litex-buildenv/blob/tinyusb-work/targets/tinyfpga_bx/usbtest.py | 21:17 |
tpb | Title: litex-buildenv/usbtest.py at tinyusb-work · mithro/litex-buildenv · GitHub (at github.com) | 21:17 |
CarlFK | mithro: this looks new: or1k-elf-newlib-gcc: error trying to exec 'cc1': execvp: No such file or directory | 21:24 |
CarlFK | mithro: any guess what that is about, or should I dig? | 21:24 |
daveshah | CarlFK: sounds like it might be a path issue | 21:25 |
daveshah | Perhaps the gcc binary is in not in its proper folder so it can't find cc1 | 21:26 |
CarlFK | litex-buildenv/build/conda/bin/or1k-elf-newlib-gcc litex-buildenv/build/conda/libexec/gcc/or1k-elf/8.2.0/cc1 | 21:35 |
CarlFK | litex-buildenv/build/conda/libexec/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/cc1 | 21:35 |
CarlFK | no idea what proper is | 21:35 |
tannewt | mithro, thanks. my bxes should come today | 22:03 |
mithro | tannewt: Great! | 22:03 |
mithro | CarlFK: you got the full output? | 22:04 |
CarlFK | mithro: http://paste.ubuntu.com/p/hR3YSwrkhv/ (I think thats enough? | 22:05 |
tpb | Title: Ubuntu Pastebin (at paste.ubuntu.com) | 22:05 |
*** puck_ has joined #timvideos | 22:08 | |
mithro | CarlFK: dunno, will have to look at it later -- need to concentrate on this USB stuff | 22:19 |
CarlFK | mithro: no prob - was thinking it might have been something you did in the last few hours | 22:22 |
*** tsglove2 has joined #timvideos | 22:40 | |
*** cr1901_modern1 has joined #timvideos | 22:42 | |
*** springermac_ has joined #timvideos | 22:45 | |
*** techman83 has quit IRC | 22:45 | |
*** cyrozap has quit IRC | 22:45 | |
*** cr1901_modern has quit IRC | 22:46 | |
*** tsglove has quit IRC | 22:46 | |
*** paddatrapper has quit IRC | 22:46 | |
*** springermac has quit IRC | 22:46 | |
*** springermac_ is now known as springermac | 22:46 | |
*** paddatrapper has joined #timvideos | 22:47 | |
*** cyrozap has joined #timvideos | 22:47 | |
*** techman83 has joined #timvideos | 22:52 | |
*** ChanServ sets mode: +v techman83 | 22:52 | |
*** sc00bz1 is now known as Sc00bz | 23:32 | |
*** cr1901_modern1 has quit IRC | 23:39 | |
*** cr1901_modern has joined #timvideos | 23:39 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!