<whitequark[cis]>
<tomkeddie[m]> "You'll want to name it zmod or..." <- yes, this is why I'm saying SYZYGY-like, I do not intend to actually use their trademark
<whitequark[cis]>
I do not like their I2C autodiscovery stuff and do not plan to follow it, but following the pinout and maybe mechanical spec seems valuable
<Darius>
ooh my Glasgow case arrived, very swish
<whitequark[cis]>
just like how revABC follow the ARM 20-pin JTAG connector somewhat
esden[cis] has joined #glasgow
<esden[cis]>
<Darius> "ooh my Glasgow case arrived..." <- Congrats! I am glad you like it. :)
<Darius>
of course I am on macos and now the tools crash so it's not all rainbows and lollypops
<josHua[m]>
hm, am I the only one who had success with the tools on macos?
<Darius>
I did run them OK a while ago, but that was quite a while ago now
<Darius>
from, uh.. 2021, wow
<Darius>
ffs rebuild python3.12 with dtrace but I can't use it because of SIP
<Darius>
OK I told pipx to use python 3.9 (also installed via macports) and it doesn't crash anymore
<Darius>
also tried 3.10 and 3.11 - no problem
<Darius>
open to suggestions for how to track the issue down
<esden[m]>
Not just you. Things seem to work for me too, on an M2 machine as well as an intel iMac...
<Darius>
esden[cis]: as in broken with Python 3.12?
<whitequark[cis]>
what was the crash while it did crash?
<esden[m]>
so yeah, the whole stack seems to be doing things...
<Darius>
I'll see if MP has 3.12.3
<esden[m]>
that is on the M2 machine... I use the iMac for provisioning and testing of the glasgows... it is running Python 2.7.16 ... and I am not touching that as it works 😉
<esden[m]>
ok that is not clear, the M2 is a MacMini, and the iMac is an intel machine.
<Darius>
hah, vintage
<esden[m]>
yeah, I am following a "it works so don't touch it" attitude there
<esden[m]>
🤦 ... of course I meant Python 3.12.3 ... (venv vs system python ... sigh)
<esden[m]>
so both machines are running 3.12.3 for glasgow
<Darius>
I just updated MP and it went to 3.12.4 but has the same behaviour as .2
<Darius>
are there any plans to add some wiring guides to the intro? a diagram with pinouts would be nice IMO
<whitequark[cis]>
what kind of guide?
<Darius>
whitequark[cis]: well, I just connected VIN of my WS2812 strip to VCC because I didn't realise the 2 left most pins were VCC
<Darius>
which is PEBKAC but still :)
<whitequark[cis]>
hm
<whitequark[cis]>
have you got the cardboard thing from 1b2?
<whitequark[cis]>
there's a diagram on the cardboard ... however you call it, and on the case
<whitequark[cis]>
and on the back of the PCB
<whitequark[cis]>
we could definitely add the same diagram to the website, I'm just a little surprised it wasn't enough
<Darius>
whitequark[cis]: I have the aluminium case
<Darius>
I got a board made a while ago built by someone who made a batch
<Darius>
probably the cardboard thing would be enough - if it is like the 1 bitsy thing that was great
<josHua[m]>
the wiring harness that comes with the 1b2 boards also helps mitigate this
<whitequark[cis]>
<Darius> "I got a board made a while ago..." <- ah i see
<whitequark[cis]>
yeah 1b2 distributes something that is much more like a commercial product
<Darius>
ahh nice, fair enough then
Shiz has joined #glasgow
<whitequark[cis]>
i mean we do need to put the card on the website
<Attie[m]>
@darius - possibly one of mine? that was indeed just the board - 1b2 have bundled a USB C cable, wire looks, info cards, cases, etc...! it's very neat what @esden has put together
<FireFly>
having a pdf version of that card would be neat yeah
<grazianom[m]>
you allow selecting the CS level, but CS is supposed to be active low
<grazianom[m]>
from the wiki:
<grazianom[m]>
> Data is usually shifted out with the most-significant bit (MSB) first.
<grazianom[m]>
Seems that this hardware is LSB first
<whitequark[cis]>
<grazianom[m]> "SPI isn't well defined, sure it..." <- as far as I know, Motorola SPI is unambiguous that it's MSB first
<whitequark[cis]>
yes, there are other SPI-like serial protocols that are LSB-first, but they're not SPI
<whitequark[cis]>
what we should ideally have is a configurable stream-based block which lets you transmit however much clocked data you like, any order you like
<whitequark[cis]>
(or rather have a block that operates on a bit at a time and lets you easily build any kind of protocol on top of it)
<whitequark[cis]>
but I don't want the SPI controller gateware to grow features for every silly thing a vendor's marketing department calls "SPI" until it's completely unmaintainable
<grazianom[m]>
that would be nice. Until then I am swapping bits manually
<grazianom[m]>
motorola also calls is MOSI and MISO not COPI CIPO
<whitequark[cis]>
(if you don't like the naming change you should get a refund)
<grazianom[m]>
yeah I saw that exact article because I had to google how to map miso to w/e of those
<grazianom[m]>
anyway thanks for confirming about MSB, will keep playing with this
<whitequark[cis]>
re: configurable serial block, to get there we'll need to migrate to Amaranth 0.5 first
<whitequark[cis]>
which has streams
sigstoat[m] has joined #glasgow
<sigstoat[m]>
graziano.m (@_discord_119160277555085314:catircservices.org) you could copy and paste the spi applet and change behaviors for your purposes
<grazianom[m]>
oh actually a quick q about the logic analyzer. It just dumps a vcd file. 1. its fifo seems to fill up in a split second. Is that expected? Maybe I had it sample rate super high, and maybe I have to disable all the other pins. 2. Any plans for a version that lets the glasgow enumerate as a logic analyzer so that I can e.g. use it with pulseview?
<grazianom[m]>
as far as I can tell the spi applet doesn't configure msp/lsp, so I guess it's hardcoded in the spi bitstream. So I would have to manually do it in the `write` method or something. I am writing a script for it anyway, so I just wrap the write method in my own and do it there, without needing to modify the applet
<Wanda[cis]>
the logic analyzer has a really tiny FIFO, so yeah; there are plans to use the RAM-pak addon to provide a properly large FIFO, but that's still in development
<Wanda[cis]>
glasgow enumerating as a logic analyzer (or anything other than glasgow) is not planned, as it'd be a prohibitive amount of work to make it work with anything other than the host-side glasgow software stack, and also make us instantly run out of FX2 firmware space
<grazianom[m]>
roger that. thanks
<whitequark[cis]>
re: FIFO filling up, what is it filling up with?
<whitequark[cis]>
sometimes it's floating pins which hover near Vcc/2, in which case you can add pull-ups on them to fix that
<whitequark[cis]>
and in the SPI applet, MSB shift order is a part of the gateware, yes
<grazianom[m]>
samples? I forget how is had it setup. Does it let you disable a bunch of inputs? I can try again... I just used one of those cheapos instead
<whitequark[cis]>
(I looked at Motorola SPI and concluded that it should not be configurable)
<grazianom[m]>
fair. Just sort of not great for reverse engineering when obviously we can encounter a ton of devices that aren't to spec. I don't blame you though
<whitequark[cis]>
there is an inherent tension between "supporting obscure misdesigned protocols" and "providing legible, well tested behavior"
<whitequark[cis]>
Glasgow makes gateware easy enough to write and test (and, in my view, fun) that it shouldn't be too difficult to write gateware for any obscure thing you want
<whitequark[cis]>
this actually gets harder to do the more complex built-in applets are!
<whitequark[cis]>
* more complex the built-in applets
fibmod has quit [Ping timeout: 255 seconds]
fibmod has joined #glasgow
siriusfox has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
siriusfox has joined #glasgow
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
redstarcomrade has quit [Read error: Connection reset by peer]
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
<grazianom[m]>
I just need to learn amoranth 🙂
<josHua[m]>
MOSI/MISO COPI/CIPO: the latter is obviously correct, but there is a contingent of folks who have decided to rename these pins to SDI/SDO, which is completely fucking wrong
threeflour[m] has joined #glasgow
<threeflour[m]>
I've seen it as PICO and POCI too :/. It seems like when one convention goes, everyone throws in their hat resulting in many more conventions.
<josHua[m]>
PICO and POCI are definitely wrong but not as wrong as SDI and SDO
wheresheisnt[m] has joined #glasgow
<wheresheisnt[m]>
coming from the digital video world I get confused every time I read SDI and it’s not referring to a multi-gigabit video signal lol
redstarcomrade has quit [Read error: Connection reset by peer]