*** tpb has joined #tomu | 00:00 | |
*** deltab has quit IRC | 00:08 | |
*** deltab has joined #tomu | 00:15 | |
xobs | sldkfjsldkf: you could run "arm-none-eabi-size" on it, or "arm-none-eabi-nm" | 00:34 |
---|---|---|
*** futarisIRCcloud has joined #tomu | 01:31 | |
xobs | Well that's a good sign. I've been continuously transferring random data back and forth across the Wishbone bridge for about 24 hours now. | 02:31 |
*** xkapastel has joined #tomu | 02:52 | |
*** AmosSam has left #tomu | 05:05 | |
*** AmosSam has joined #tomu | 05:06 | |
*** rohitksingh_work has joined #tomu | 05:30 | |
*** xkapastel has quit IRC | 05:32 | |
*** AmosSam has left #tomu | 05:52 | |
*** AmosSam has joined #tomu | 05:56 | |
keesj | cool | 06:46 |
tnt | xobs: you should also try large packet transfers for a while (512b bulk or isoc). | 07:00 |
*** AmosSam has left #tomu | 07:10 | |
*** AmosSam has joined #tomu | 07:11 | |
*** AmosSam has left #tomu | 07:17 | |
*** AmosSam has joined #tomu | 07:18 | |
*** rohitksingh_wor1 has joined #tomu | 07:37 | |
*** rohitksingh_work has quit IRC | 07:38 | |
xobs | tnt: I'm actually testing both right now. | 07:39 |
tnt | :) | 07:40 |
xobs | I'm sending random data over the debug channel (writing to memory, then reading back to make sure it matches), while sending random data over the serial channel. | 07:40 |
xobs | Windows doesn't like it when I do that. But Linux will happily mux it for me. | 07:40 |
xobs | Convincing Linux that write() means write() is the hardest bit. Undoing decades of terminal cruft. | 07:40 |
MadHacker | Isn't that just stty raw < /dev/ttywhatever ? | 07:42 |
MadHacker | Basically taking it out of cooked mode. | 07:42 |
tnt | xobs: and that uses large packet sizes btw ? | 07:43 |
*** AmosSam has left #tomu | 07:43 | |
xobs | tnt: I'm not sure what you mean by "large" packet sizes. I was limiting it to 64-byte packets, because that's the transfer length. | 07:45 |
xobs | But let me increase it to 512 bytes. I'll have to worry about fragmentation now, though. | 07:45 |
tnt | xobs: I meant packet of 512 bytes on the USB bus. | 07:46 |
tnt | (in a single packet, to check tolerance to progressive drifts etc ...) | 07:46 |
xobs | Ah, I see. Okay, my C program to test appears to be broken. Time to fix it. | 07:46 |
*** AmosSam has joined #tomu | 07:51 | |
alexhw[m] | xobs: nice to see it running :-) | 07:51 |
keesj | 2019.. serial remain usefull and funky. | 08:22 |
*** AmosSam has left #tomu | 08:34 | |
xobs | tnt: naturally, it falls over and dies when I write 129-byte packets. | 08:35 |
xobs | Which is to be expected, given that my packet depth is 128. | 08:35 |
tnt | xobs: fifo depth you mean ? | 08:38 |
*** AmosSam has joined #tomu | 08:39 | |
xobs | Yeah, and I've otherwise run out of BRAM. | 08:39 |
xobs | The real solution is to move away from this FIFO implementation and towards the epmem approach. But this works well enough for now. | 08:40 |
keesj | xobs: it this using fdti/serial or the usb serial running on the fpga? | 08:43 |
xobs | keesj: it's a usb serial program running on the FPGA. | 08:44 |
xobs | tnt: isn't the maximum packet size for FS 64 bytes? Anything larger than that isn't valid for FS... | 08:51 |
tnt | Of course it is. | 08:51 |
tnt | you can go up to 1023 bytes. | 08:51 |
xobs | Hm, you're right. | 08:52 |
tnt | Only control transfers on ep0 are limited to 64 | 08:52 |
xobs | Why is Linux behaving strangely when I give it a 64-byte packet? | 08:52 |
tnt | Oh, wait, bulk transfer might actually be limited to 64. | 08:53 |
tnt | Isoc can be longer for sure. | 08:56 |
keesj | I also have been buffering happening on the recieve side (e.g. the use serial stack running on the tinyFPGA sending data and when I connect to the serial I the buffers are then already full of stuff | 08:58 |
tnt | ok, til that FS bulk is limited to 64 bytes, I had no idea. | 08:59 |
tnt | (I only used isoc and control so far) | 08:59 |
xobs | tnt: your ability to grep the USB spec is far higher than mine. Where do you see that? | 09:01 |
xobs | Ah, 5.8.3. | 09:02 |
xobs | "The USB defines the allowable maximum bulk data payload sizes to be only 8, 16, 32, or 64 bytes for full-speed endpoints and 512 bytes for high-speed endpoints. " | 09:02 |
xobs | And yeah, 1024 bytes is fine for FS ISO endpoints. | 09:03 |
*** AmosSam has left #tomu | 09:03 | |
keesj | some data here http://www.usbmadesimple.co.uk/ums_3.htm | 09:04 |
tpb | Title: USB Made Simple - Part 3 (at www.usbmadesimple.co.uk) | 09:04 |
tnt | 5.8.3 | 09:05 |
tnt | oh ... a bit late :p | 09:05 |
xobs | Well, with this test running, I'm reasonably happy that the core is now stable. That makes me happy, because mass production happens in two weeks. | 09:06 |
*** AmosSam has joined #tomu | 09:07 | |
keesj | nice nice | 09:07 |
alexhw[m] | tnt/xobs: for fs iso transfers its 1023 (5.6.3), for other fs transfers its 64 max. | 09:12 |
tnt | yup. But bulk can get multiple packets in s ingle frame I think, iso can't. | 09:13 |
alexhw[m] | Ah, ok | 09:14 |
MadHacker | xobs: Is https://www.crowdsupply.com/solokeys/somu from you, or from the Solo folks, or some cooperation between? | 10:37 |
tpb | Title: Somu | Crowd Supply (at www.crowdsupply.com) | 10:37 |
*** futarisIRCcloud has quit IRC | 10:40 | |
MadHacker | (my NFC question yesterday was unrelated, just happened to spot them on crowdsupply's front page) | 10:45 |
*** xkapastel has joined #tomu | 10:52 | |
xobs | MadHacker: it's from the Solo folks | 11:06 |
MadHacker | Bit cheeky with the naming, then! Oh well. :) | 11:09 |
*** Dan_au has joined #tomu | 11:27 | |
xobs | they did ask! | 11:33 |
keesj | perhaps the casing can be shared. it looks nice | 13:06 |
*** xkapastel has quit IRC | 13:21 | |
*** rohitksingh_wor1 has quit IRC | 13:28 | |
*** AmosSam has left #tomu | 13:41 | |
*** AmosSam has joined #tomu | 13:46 | |
*** AmosSam has left #tomu | 14:51 | |
*** AmosSam has joined #tomu | 14:51 | |
*** rohitksingh has joined #tomu | 14:56 | |
*** alexhw has joined #tomu | 15:07 | |
*** emeb has joined #tomu | 15:46 | |
pollo | keesj: it wouldn't diffuse the tomu led though | 15:49 |
keesj | the tomu is quite a beast in terms of distracting me with blinking stuff | 16:12 |
*** andi- has quit IRC | 17:06 | |
*** andi- has joined #tomu | 17:15 | |
*** rohitksingh has quit IRC | 18:32 | |
*** rohitksingh has joined #tomu | 18:42 | |
*** cdmatter has joined #tomu | 18:44 | |
tnt | Despite 64b packets, still manage to do 1.15 Mbytes/s, that's not too bad. | 19:39 |
*** rohitksingh has quit IRC | 20:21 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!