whitequark[cis] changed the topic of #glasgow to: https://glasgow-embedded.org · digital interface explorer · https://www.crowdsupply.com/1bitsquared/glasgow · code https://github.com/GlasgowEmbedded/glasgow · logs https://libera.irclog.whitequark.org/glasgow · matrix #glasgow-interface-explorer:matrix.org · discord https://1bitsquared.com/pages/chat
mwk has quit [Ping timeout: 244 seconds]
mwk has joined #glasgow
redstarcomrade has joined #glasgow
redstarcomrade has quit [Read error: Connection reset by peer]
Stary has quit [Quit: ZNC - http://znc.in]
Fridtjof has quit [Quit: ZNC - http://znc.in]
Stary has joined #glasgow
Fridtjof has joined #glasgow
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
trh has quit [Quit: weg]
trh has joined #glasgow
redstarcomrade has quit [Read error: Connection reset by peer]
josHua[m] has quit [Quit: Idle timeout reached: 172800s]
urja has joined #glasgow
ewenmcneill[m] has quit [Quit: Idle timeout reached: 172800s]
altracer[m] has quit [Quit: Idle timeout reached: 172800s]
mwk has quit [Ping timeout: 252 seconds]
mwk has joined #glasgow
<_whitenotifier-3> [glasgow] whitequark reviewed pull request #649 commit - https://github.com/GlasgowEmbedded/glasgow/pull/649#discussion_r1694169757
<_whitenotifier-3> [glasgow] whitequark reviewed pull request #649 commit - https://github.com/GlasgowEmbedded/glasgow/pull/649#discussion_r1694170316
<_whitenotifier-3> [glasgow] whitequark commented on pull request #649: Isabelburgos/spi controller applets padless - https://github.com/GlasgowEmbedded/glasgow/pull/649#issuecomment-2254390241
mwk has quit [Ping timeout: 252 seconds]
mwk has joined #glasgow
redstarcomrade has joined #glasgow
whitequark[m] has quit [Quit: Idle timeout reached: 172800s]
Attie[m] has quit [Quit: Idle timeout reached: 172800s]
whitequark[m] has joined #glasgow
<whitequark[m]> purdeaandrei (@_discord_693328004947902465:catircservices.org) nobody is working on it afaik. to fix it you'd basically need to build a capacitance meter
<purdeaandrei[m]> I'm thinking one thing that could be done would be to read the status of the data lines through the pull-up/down gpio expander
<purdeaandrei[m]> Why capacitance meter though?
<whitequark[m]> tells you if something's likely to be short or open
<whitequark[m]> gpio expander would also work
<whitequark[m]> i'm not sure how to do the accesses though; the available space in the firmware is very tight, but also the i2c port doesn't do multi-master communication
<whitequark[m]> * also the fx2's i2c port
<whitequark[m]> or maybe it does and then we're fine
<purdeaandrei[m]> oh, so we can't master from the FPGA
<whitequark[m]> i think you should check the FX2's datasheet tbh
<whitequark[m]> but i seem to recall it doesn't do that
davidrysk[m] has quit [Quit: Idle timeout reached: 172800s]
<purdeaandrei[m]> Looks like it supports multi-master arbitration, but only cancels the current transfer, the hardware doesn't retry on it's own, and libfx2 doesn't seem to implement retries
<whitequark[cis]> ah, i think that's fine then
<whitequark[cis]> the transfers will just fail and this will percolate to the toplevel
<whitequark[m]> ah, i think that's fine then; the transfers will just fail and this will percolate to the toplevel
<whitequark[m]> selftest isn't normal operation so we should be able to ensure the transfers don't collide, on a one-off basis
<purdeaandrei[m]> this is the right place for look at firmware memory usage right?
<purdeaandrei[m]> build/glasgow.mem
<purdeaandrei[m]> looks like there's 1756 bytes left
<purdeaandrei[m]> my initial implementation consumed 92 bytes, but then I did a bit of optimization, using goto statements for e0 stall, and got it to consume only 19 bytes:
<purdeaandrei[m]> would this be acceptable
<purdeaandrei[m]> * be acceptable?
<_whitenotifier-3> [glasgow] purdeaandrei opened pull request #650: Firmware read pull io expander input - https://github.com/GlasgowEmbedded/glasgow/pull/650
<purdeaandrei[m]> Just for reference, I haven't tested this yet: https://github.com/GlasgowEmbedded/glasgow/pull/650/files
<purdeaandrei[m]> As it is it's -59 bytes optimization + 78 bytes for the feature, results in +19 bytes total change
<purdeaandrei[m]> I put the optimization in a separate commit
redstarcomrade has quit [Read error: Connection reset by peer]
<purdeaandrei[m]> oh, the firmware includes a git status, which makes results variable. Accounting for that, the real impact is:
<purdeaandrei[m]> -59 bytes optimization + 72 bytes for the feature, results in +13 bytes total change
<_whitenotifier-3> [glasgow] purdeaandrei commented on pull request #650: Firmware read pull io expander input - https://github.com/GlasgowEmbedded/glasgow/pull/650#issuecomment-2254607497
<_whitenotifier-3> [glasgow] purdeaandrei synchronize pull request #650: Firmware read pull io expander input - https://github.com/GlasgowEmbedded/glasgow/pull/650
<purdeaandrei[m]> Saved another 35 bytes with two more optimizations
<_whitenotifier-3> [glasgow] purdeaandrei commented on pull request #650: Firmware read pull io expander input - https://github.com/GlasgowEmbedded/glasgow/pull/650#issuecomment-2254621208
<purdeaandrei[m]> I can split these up as separate commits if you wish
<purdeaandrei[m]> the pr's now at -22 bytes
<purdeaandrei[m]> whoops , just re-reading I introduced a non-identical change, fixing...
<_whitenotifier-3> [glasgow] purdeaandrei synchronize pull request #650: Firmware read pull io expander input - https://github.com/GlasgowEmbedded/glasgow/pull/650
<purdeaandrei[m]> actually it was right, there's no reason to toggle OEQ_N_REVAB high then low on revAB. It's already high before the code runs due to the pull-up resistor, and it doesn't need to be high
<_whitenotifier-3> [glasgow] purdeaandrei synchronize pull request #650: Firmware read pull io expander input - https://github.com/GlasgowEmbedded/glasgow/pull/650
<_whitenotifier-3> [glasgow] purdeaandrei synchronize pull request #650: Firmware read pull io expander input - https://github.com/GlasgowEmbedded/glasgow/pull/650
smkz has quit [Quit: smkz]
smkz has joined #glasgow
smkz has quit [Client Quit]
smkz has joined #glasgow
<purdeaandrei[m]> does amaranth still not support controlling the internal pulls of the ice40?
Wanda[cis] has joined #glasgow
<Wanda[cis]> um... what?
<Wanda[cis]> was that ever an issue?
<urja> I have no idea how to enter `Ctrl+\ q` (as the glasgow uart tty mode says is the quit combo) on a finnish layout keyboard.
<urja> I tried to press Ctrl+\ (Which is Ctrl+AltGr+the-keyright-of-0), then release AltGr (and tried with or without releasing Ctrl at this point),press space and q but nothing significant happened (the remote echoed space and q...)
<urja> oh. the space was not part of the combo.
<urja> SO yeah got it now, but that's a really weird sequence to parse out lol (at first i thought someone tried to \-escape a space lol)
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
redstarcomrade has quit [Read error: Connection reset by peer]
Attie[m] has joined #glasgow
<Attie[m]> ah, glad you figured it out... it is indeed Ctrl+\ ... and then q
<urja> Yeah, the \ had me so bamboozled that I didnt notice that i had misintrepreted the rest of the sequence
<urja> Until i wrote out what i tried
<Attie[m]> 😂
urja[m] has joined #glasgow
<urja[m]> Oh, a totally different question that I guess works better here (but still not sure of the channel). Are we going to have the glasgow pigtails / breakout cables sold seperately later? Because they're so good that I had the desire to cut one up for a project-specific configuration (but then I'd need ... more of them).
<Attie[m]> that's one for @esden ... iirc the answer was "yes, once things settle"
ar-jan has quit [Ping timeout: 246 seconds]
ar-jan has joined #glasgow
attiegrande[m] has joined #glasgow
<attiegrande[m]> sorry, urja. (@_discord_463814842445201419:catircservices.org) ... I replied on Matrix and it seems my message didn't cross the bridge
<attiegrande[m]> that's one for esden (@_discord_269693955338141697:catircservices.org) ... iirc the answer was "yes, once things settle"