programmerjake | trying out https://github.com/antonblanchard/microwatt/pull/347 | 00:38 |
---|---|---|
programmerjake | it has some extra code that makes the orangecrab's usb interface look to the host computer like a usb serial device connected to microwatt's uart interface, that way, an external usb serial adaptor isn't needed | 00:39 |
programmerjake | (my external usb serial adaptor is 5v, and I wanted to try this before I have to build a level shifter) | 00:39 |
programmerjake | also, no extra connector makes it waay easier to use | 00:40 |
lkcl | programmerjake, nice! | 01:23 |
lkcl | the valentyusb.lpf constraints file however.. mmm... yeah that needs cleaning up (removing wishbone from it) | 01:25 |
programmerjake | compiled and flashed it, currently running wireshark trying to debug the usb | 01:26 |
lkcl | the constraints lpf file isn't actually mapping anything from verilog i/o signals to actual pins | 01:27 |
lkcl | look at other .lpf files you'll see what i mean | 01:28 |
programmerjake | it does show up and enumerate, so the pins at least are correct afaict | 01:28 |
programmerjake | it enumerates as: "Microwatt on OrangeCrab" | 01:31 |
programmerjake | hmm, not responding to URB_BULK in | 01:41 |
programmerjake | ...i think | 01:42 |
programmerjake | I'm guessing the default hello hex file isn't the right one to use, trying usb_hello | 02:05 |
programmerjake | it requires running `cd usb_hello; ln -s ../hello_world/head.S .; make` | 02:07 |
programmerjake | $ rg usb_pullup | 02:13 |
programmerjake | constraints/orange-crab-0.2.lpf | 02:13 |
programmerjake | 13:LOCATE COMP "usb_pullup" SITE "N2"; | 02:13 |
programmerjake | 17:IOBUF PORT "usb_pullup" IO_TYPE=LVCMOS33; | 02:13 |
programmerjake | so that's where it constrains the usb signals to the correct pins...it probably merges the two lpf files or just ignores the valentyusb one since it's used as a submodule | 02:15 |
programmerjake | well, the usb interface works, but nothing beyond that seems to work...though the alternate reset input works (the orangecrab's button) | 02:34 |
programmerjake | for reference, the command I used, after running the above ln and make commands in usb_hello: | 02:41 |
programmerjake | sudo make FPGA_TARGET=ORANGE-CRAB-0.21 dfuprog DOCKER=1 RAM_INIT_FILE=usb_hello/usb_hello.hex MEMORY_SIZE=$((1<<18)) | 02:41 |
programmerjake | left a comment: https://github.com/antonblanchard/microwatt/pull/347#issuecomment-1057613695 | 02:52 |
programmerjake | what fun: https://lists.debian.org/debian-project/2022/03/msg00002.html | 03:35 |
msh | programmerjake: (I'm @mkj on github) good idea for the delayed usb reset | 03:38 |
msh | at the moment a uart write will block waiting for the host side to read the usb serial anyway, so output won't get lost | 03:39 |
msh | I'll try a build of that valentyusb pull request here a bit later. what're you using to talk to usb serial on the host side? (I ask because at one point I was using "cat /dev/ttyUSBwhatever" and it didn't work properly) | 03:42 |
programmerjake | I used tio | 03:45 |
programmerjake | msh thx for working on it! | 04:26 |
* lkcl welcomes msh | 09:37 | |
lkcl | that's an enormous VM. | 09:39 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!