*** tpb has joined #tomu | 00:00 | |
xobs | Weird. I plugged Fomu into my PC's keyboard, and according to the Beagle sometimes the PC isn't "ACK"ing debug packets. | 01:12 |
---|---|---|
xobs | Which, granted, it's totally fine to do that. But it's not something I'd seen before. Or handled. | 01:13 |
*** emeb has quit IRC | 01:20 | |
xobs | Okay, /that's/ interesting. If the value "0xe0007537" is READ from the device, Windows doesn't ever send an ACK. That value can be written, and many other values can be written too... | 01:46 |
*** futarisIRCcloud has quit IRC | 02:03 | |
*** futarisIRCcloud has joined #tomu | 02:10 | |
*** xkapastel has quit IRC | 03:16 | |
xobs | It appears to be a problem where USB isn't properly stuffing the last bit, as it should. Well, I'm glad I caught this now! | 03:17 |
xobs | And not in two weeks when we go to production. | 03:18 |
*** futarisIRCcloud has quit IRC | 04:13 | |
*** awe00 has quit IRC | 04:41 | |
*** rohitksingh_work has joined #tomu | 05:17 | |
tnt | xobs: lol. Look what I fixed in my core a couple weeks ago : https://github.com/smunaut/ice40-playground/commit/a8ca29653ce8e373360269a74e4fe73c3bb93259 | 05:26 |
tpb | Title: cores/usb: Fix bitstuffing in TX path for border line case · smunaut/ice40-playground@a8ca296 · GitHub (at github.com) | 05:26 |
mithro | tnt: Did I ever get you some (more?) Fomu hacker boards? | 05:28 |
mithro | tnt: FYI - I'll be back in Europe for WOSH (https://fossi-foundation.org/wosh/) in June... | 05:29 |
tpb | Title: WOSH: Week of Open Source Hardware (at fossi-foundation.org) | 05:29 |
xobs | tnt: it's one of those weird edgecases that I always forget about. | 05:30 |
xobs | It's becoming more of an issue now that I'm sending random bytes across the wire. | 05:30 |
tnt | mithro: I don't think so (at least I never received any). But yeah, if you can take a few with you and post them then, that'd be nice :) | 05:30 |
xobs | Which, incidentally, appears to be a good way to shake out bugs. | 05:30 |
mithro | I still have plenty | 05:30 |
tnt | xobs: yeah, I only found out about the issue when I started to send random 4 Mits isochronous traffic and notice sometime I would miss some packets ... | 05:31 |
mithro | anyway, heading home now - have a gnight! | 05:31 |
tnt | mithro: gn ! | 05:31 |
xobs | mithro: night! | 05:31 |
xobs | ...and after spending all day on it, it turns out the problem was probably caused by the timeout feature being weird. | 09:14 |
*** AmosSam has left #tomu | 09:15 | |
xobs | I removed the timeout logic and now it works well. | 09:16 |
*** AmosSam has joined #tomu | 09:24 | |
*** AmosSam has left #tomu | 09:30 | |
*** AmosSam has joined #tomu | 09:30 | |
*** futarisIRCcloud has joined #tomu | 09:34 | |
*** AmosSam has left #tomu | 09:37 | |
*** AmosSam has joined #tomu | 09:41 | |
tnt | xobs: timeout ? | 10:05 |
xobs | tnt: I put a timeout on the debug bus, because otherwise if you try to access a part of the Wishbone that is unmapped, nothing will ACK it and you'll wait forever. | 10:07 |
xobs | Somehow that timeout was doing the wrong thing. | 10:07 |
*** johnhmay has quit IRC | 10:57 | |
*** johnhmay has joined #tomu | 10:59 | |
*** alexhw has quit IRC | 10:59 | |
*** alexhw has joined #tomu | 11:01 | |
*** spacekookie has quit IRC | 11:04 | |
*** spacekookie has joined #tomu | 11:05 | |
*** xkapastel has joined #tomu | 11:20 | |
*** futarisIRCcloud has quit IRC | 11:43 | |
_florent__ | xobs: just curious, it is the litex wishbone timeout or something else? | 12:23 |
xobs | _florent__: it was mostly a copy of the timeout in the UART bridge. | 12:24 |
*** ToxicFrog has joined #tomu | 13:01 | |
ToxicFrog | I'm having a weird issue with the quickstart repo. The prebuilt DFUs all work fine, but when I build the same ones from source, they don't -- main() runs fine but the sys_tick_handler() is never called. | 13:05 |
xobs | ToxicFrog: are you on Ubuntu 18.04 by any chance? | 13:05 |
ToxicFrog | The only change I've made to the source or the build process is using arm-none-eabi-gcc instead of arm-none-eabi-g++ to link, since I don't have the latter, but it's all written in plain C anyways, so that shouldn't be an issue...and if it were I'd expect an actual linker error. | 13:06 |
ToxicFrog | xobs: OpenSUSE. | 13:06 |
ToxicFrog | Why, is this a known issue on Ubuntu 18.04? Perhaps it also affects SUSE. | 13:06 |
ToxicFrog | (this is not a showstopper for me, since everything I want to do, at least for now, I can do with loops and cycle counting in main(), but I would like to get to the bottom of it) | 13:07 |
xobs | The issue on Ubuntu was that it wasn't linking the correct library. | 13:08 |
xobs | E. G. https://bugs.launchpad.net/ubuntu/+source/newlib/+bug/1768125 | 13:08 |
tpb | Title: Bug #1768125 “libnewlib-arm-none-eabi generates wrong code for c...” : Bugs : newlib package : Ubuntu (at bugs.launchpad.net) | 13:08 |
*** im-tomu has quit IRC | 13:12 | |
*** im-tomu has joined #tomu | 13:12 | |
*** awe00 has joined #tomu | 13:26 | |
ToxicFrog | Aah. I'll look into that on SUSE, thanks. | 13:30 |
*** rohitksingh_work has quit IRC | 13:32 | |
*** AmosSam has left #tomu | 13:46 | |
*** AmosSam has joined #tomu | 13:46 | |
*** rohitksingh has joined #tomu | 14:34 | |
*** emeb has joined #tomu | 15:18 | |
*** emeb has quit IRC | 15:43 | |
xobs | alexhw: looks like the theory I had on the github issue isn't quite correct. Still getting missing bytes. | 16:15 |
xobs | Or extra bytes. | 16:15 |
xobs | Or both. | 16:15 |
xobs | I've been staring at this for too long now. I'm going to give up for the night. | 16:16 |
*** xkapastel has quit IRC | 18:22 | |
*** rohitksingh has quit IRC | 19:17 | |
*** rohitksingh has joined #tomu | 19:21 | |
*** emeb has joined #tomu | 19:23 | |
*** rohitksingh has quit IRC | 19:46 | |
alexhw[m] | xobs: I'll look into it a some more this night or tomorrow | 21:05 |
*** futarisIRCcloud has joined #tomu | 21:55 | |
futarisIRCcloud | https://twitter.com/_conorpp/status/1126668925998125056 | 21:59 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!