sorear has quit [Ping timeout: 276 seconds]
sorear has joined ##openfpga
_whitelogger has joined ##openfpga
finsternis has quit [Remote host closed the connection]
finsternis has joined ##openfpga
emeb_mac has quit [Ping timeout: 245 seconds]
finsternis has quit [Quit: leaving]
finsternis has joined ##openfpga
finsternis has quit [Quit: leaving]
finsternis has joined ##openfpga
flea86 has joined ##openfpga
dj_pi has joined ##openfpga
dj_pi has quit [Ping timeout: 268 seconds]
<Sprite_tm> tnt: Spent yesterday fighting Yosys, seems I had one inferred latch that messed up routing that I missed over and over again.
<Sprite_tm> Got the hardware hooked up, I hope. Need to write the actual software... I assume I should be able to port ice40-playground/projects/riscv_usb/fw over and get some results out of it?
emeb_mac has joined ##openfpga
<Sprite_tm> \o/
<Sprite_tm> [147397.277158] usb 1-2: New USB device found, idVendor=1d50, idProduct=6147, bcdDevice= 0.02
<Sprite_tm> [147397.277172] usb 1-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
<Sprite_tm> [147397.277179] usb 1-2: Product: iCE40 USB Demo
<Sprite_tm> [147397.277185] usb 1-2: Manufacturer: osmocom
<Sprite_tm> [147397.277190] usb 1-2: SerialNumber: 0000000000000000
<Sprite_tm> [147397.354982] cdc_acm 1-2:1.0: ttyACM0: USB ACM device
<Sprite_tm> Now to take a stab at porting TinyUSB... with a working PoC, at least I don't have to worry about the hardware being OK.
genii has joined ##openfpga
genii has quit [Remote host closed the connection]
Bike has quit [Quit: Lost terminal]
<tnt> Sprite_tm: oh wow, that was fast ! Nice !
_whitelogger has joined ##openfpga
<Sprite_tm> tnt: Errm... does your USB hardware have a name?
<Sprite_tm> Gonna call it tntusb for now :P
<tnt> Sprite_tm: oh yeah, didn't think about that :p
<Sprite_tm> Hehe, I can imagine, naming my thing is also something that doesn't always happen when I write stuff.
<Sprite_tm> Are you ok with tntusb? If not, I can still rename it.
<tnt> Sprite_tm: no, it's as good a name as any and I can't immediately think of something else.
emeb_mac has quit [Ping timeout: 258 seconds]
<Sprite_tm> tnt: Cool :)
<Sprite_tm> tnt: Hey, erm, where do you have the code to initialize eps other than ep0?
<Sprite_tm> Perhaps I'm overlooking them, but your cdc code doesn't seem to open an ep and dfu doesn't need it.
<tnt> Sprite_tm: I just pushed some code in the icepick branch.
<tnt> for instance
<tnt> I gotta go now but I'll be back in a couple of hours. The 'e1' branch also has some code showing off dual buffered isochronous endpoints with 512 bytes packets.
<Sprite_tm> Nice, thanks!
<Sprite_tm> I don't quite need iso support yet; I'll hack in the requirements for msc first as I need that.
_whitelogger has joined ##openfpga
Asu has joined ##openfpga
<tnt> Sprite_tm: yeah getting it to enumerate is probably the first step :p
Laksen has joined ##openfpga
sgstair_ has joined ##openfpga
sgstair has quit [Ping timeout: 246 seconds]
_whitelogger has joined ##openfpga
flea86 has quit [Ping timeout: 245 seconds]
<Sprite_tm> tnt : Whee, TinyUSB does something as well.
<Sprite_tm> [173877.367164] usb 1-2: New USB device found, idVendor=cafe, idProduct=4002, bcdDevice= 1.00
<Sprite_tm> [173877.367175] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<Sprite_tm> [173877.367180] usb 1-2: Product: TinyUSB Device
<Sprite_tm> [173877.367184] usb 1-2: Manufacturer: TinyUSB
<Sprite_tm> [173877.367188] usb 1-2: SerialNumber: 123456
<Sprite_tm> [173877.478115] usb-storage 1-2:1.0: USB Mass Storage device detected
<Sprite_tm> [173877.478424] scsi host1: usb-storage 1-2:1.0
<Sprite_tm> Everything but EP0 is borked, and error handling is entirely absent, but there ya go :)
<tnt> Sprite_tm: oh wow, that was pretty quick :p
<tnt> Sprite_tm: do you have the code up somewhere ?
<Sprite_tm> Sec, I'll push.
<Sprite_tm> Apologies in advance if you find some infuriating hack that I did you your otherwise pretty nice code.
<tnt> Sprite_tm: hehe.
<tnt> Sprite_tm: for the stall and clear_stall, I think maybe setting the 'HALT' bit in the EP type would match the API better. Setting one BD to STALL will only send a single STALL packet. Setting the HALT bit makes it respond with STALL until it's un-halted.
flea86 has joined ##openfpga
Bike has joined ##openfpga
lutsabound has joined ##openfpga
flea86 has quit [Quit: Goodbye and thanks for all the dirty sand ;-)]
<Sprite_tm> tnt: Ah gotcha. That's what ctrl-f 'stall' nets ya :P
emeb has joined ##openfpga
<tnt> Sprite_tm: oh, something I'm just thinking of now ... the "length" that you read off a receive buffer descriptor when it's done includes the CRC ... (so it's 2 byte added to it basically).
<tnt> (there is no need to account for it in the 'size' you reserve when allocating or prepapring it though so you can safely set it up with a max length of 64 bytes and it will happily receive 64 bytes packets, but the length written when xfer is done is 66 ...)
rohitksingh has joined ##openfpga
lutsabound has quit [Quit: Connection closed for inactivity]
rohitksingh has quit [Ping timeout: 245 seconds]
sgstair_ is now known as sgstair
Laksen has quit [Quit: Leaving]
Asu has quit [Read error: Connection reset by peer]
Asu has joined ##openfpga
Asu` has joined ##openfpga
Asu has quit [Ping timeout: 272 seconds]
wbraun has quit [Read error: Connection reset by peer]
wbraun has joined ##openfpga
mithro has quit [Read error: Connection reset by peer]
mithro has joined ##openfpga
emeb_mac has joined ##openfpga
emeb_mac has quit [Quit: Leaving.]
emeb has quit [Quit: Leaving.]
Asu` has quit [Ping timeout: 272 seconds]