Sunday, 2021-09-26

openpowerbot[slack] <Matt Johnston> lkcl: dfu-util with an orangecrab 0.2.1 85f05:48
lkclMatt: hmm. i wonder if it's down to the fact that USB connects directly to the ECP5?10:33
lkclthe fact that there's an external pull-up resistor (1.5k) tells me that the ECP5 itself may actually be doing a form of bit-banging USB 1.110:34
lkcli.e. totally unsophisticated10:34
lkclconsequently if you try to connect it to "modern" devices, it's hit-and-miss10:35
lkclLattice probably *cough* know this and always connect to it via a known-good, known-tested IC such as on-board FT232s which have a more reliable (mass-volume-tested) USB interface10:36
lkcllike on the VERSA_ECP5 and the ULX3S10:36
openpowerbot[slack] <Matt Johnston> mm not sure how valentyusb works. https://github.com/gregdavill/foboot/blob/OrangeCrab/hw/foboot-bitstream.py is the bootloader10:36
lkclMatt: check the schematics.10:37
lkclhttps://libre-soc.org/irclog-microwatt/%23microwatt.2021-09-25.log.html#t2021-09-25T18:42:0710:38
lkclpage 2 Quadrant 3D - the incoming USB cable is connected *DIRECTLY* to the ECP5, pads PR44C and PR47D10:38
lkclwhereas for the VERSA_ECP5 the incoming USB cable is connected to a (reliable) FT2232 ASIC10:39
* lkcl checking that foboot source code10:40
lkclhttps://github.com/im-tomu/valentyusb10:41
lkclUSB "Full Speed"10:41
lkclthat means it's effectively barely above "bit-banging"10:41
lkclUSB 1.110:42
lkcl12 mbits per second10:42
lkclit requires no complexity of any kind10:42
lkclno analog I/O10:42
lkcljust a single external 1.5 kOhm resistor on one of the wires.10:42
lkclexactly which you can see on Page 5 of Rev 20.2.1 Orange Crab Schematis, Quadrant A/B-210:43
lkclby the time you get to USB 2.0 (480 mbits per second) you need an Analog PHY.  USB 1.1 you can get away with standard digital I/O10:45
lkclboth valentyusb *and the Lattice ECP5 itself* appear to be critically relying on that fact10:45
lkclbottom line that's not going to be reliable10:45
lkcli'd recommend hunting around for older USB 2 Hubs, connecting them in between.10:46
lkclexactly like how some people have already discovered, "strangely, my orangecrab seems to work if i connect it via a USB2 hub"10:47
openpowerbot[slack] <mithro> Did people ever see https://antmicro.github.io/embench-tester/ and https://antmicro.com/blog/2020/09/automatic-cpu-testing-with-embench/ ?21:36
openpowerbot[slack] <mithro> @Paul Mackerras -^21:37

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!