JamesMunns[m] has quit [Quit: Idle timeout reached: 172800s]
badrb[m] has quit [Quit: Idle timeout reached: 172800s]
jcroisant has joined #rust-embedded
emerent has quit [Ping timeout: 276 seconds]
emerent has joined #rust-embedded
IlPalazzo-ojiisa has quit [Quit: Leaving.]
wllenyj[m] has joined #rust-embedded
<wllenyj[m]>
analyzer
crabbedhaloablut has joined #rust-embedded
therealprof[m] has joined #rust-embedded
<therealprof[m]>
<jamesmunns> "Dunno if we ever hit consensus..." <- One issue here. It is used by the microbit crate which is used in the "discovery" book...
AnandGedam[m] has quit [Quit: Idle timeout reached: 172800s]
vollbrecht[m] has quit [Quit: Idle timeout reached: 172800s]
JamesMunns[m] has joined #rust-embedded
<JamesMunns[m]>
<therealprof[m]> "One issue here. It is used by..." <- Yep, discussion on that going on in the nrf room.
vollbrecht[m] has joined #rust-embedded
<vollbrecht[m]>
<firefrommoonligh> "Don't feel like the merge to..." <- I agree with all your points here. Still i think talking directly to each other, as a first step if things are not rolling as one side is hoping, should always be done over just accepting the status queue. Every site is always free to do as they wish, but we can't know what the other site on the table is thinking without talking. And in this case with respect to the
<vollbrecht[m]>
incredible work the knurling team did there, i think it would not be justice to not talk first, to know how one should proceed after.
<vollbrecht[m]>
If this is - for one party - to high of a burden no one should think bad of that party, but this step should always taking place. Obviously one should be cautious with the time constraint in mind many peoples have and wishing / nagging can feel exhaustive for people. I am talking generally and not specific about this case here.
<vollbrecht[m]>
* a burden (for whatever reason) no one
ryan-summers[m] has joined #rust-embedded
<ryan-summers[m]>
<dav1d> "lulf, nice thanks, the first one..." <- Let me guys know if you don't like minimq's API, I agree its a bit off to use, but happy to change it :) We've got all the MQTT functions implemented, but it could be nicer to use imho
<ryan-summers[m]>
Its on my TODO to make it async-enabled, but QUARTIQ's apps are all pre-async embedded so I haven't had much motivation yet
starblue has quit [Ping timeout: 255 seconds]
starblue has joined #rust-embedded
IlPalazzo-ojiisa has joined #rust-embedded
diondokter[m] has quit [Quit: Idle timeout reached: 172800s]
Guest7282 has left #rust-embedded [Error from remote client]
maxwickhamOld[m] has joined #rust-embedded
<maxwickhamOld[m]>
Hey all, I am currently building an open-source project for embedded Rust programming to solve the issues I’ve experienced in the firmware industry. I’m really interested to hear other people biggest development issues and their opinions on my current focus.... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/AohtHqzwBUIeircAERkRkbEk>)
<ryan-summers[m]>
<maxwickhamOld[m]> "Hey all, I am currently building..." <- > <@maxwickham:matrix.org> Hey all, I am currently building an open-source project for embedded Rust programming to solve the issues I’ve experienced in the firmware industry. I’m really interested to hear other people biggest development issues... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/RneSeWHJjGWTJqEcSseETxus>)
<ryan-summers[m]>
* General comment, but this sounds like almost 2-3 startup companies worth of ideas in one project. Source: I've talked to people doing this as an actual company
<ryan-summers[m]>
So great ideas, but a lot of work
<jessebraham[m]>
Sounds like `cargo-generate`, `probe-rs`, and `cargo` already largely solve these problems? Curious what deficiencies you feel these tools have
<jessebraham[m]>
(Not saying they're perfect by any means, of course, but good tools IMO)
<maxwickhamOld[m]>
Yeah we may be doing something similar to probe-rs (or integrating it) for some aspects. But, there’s still some things that could be easier, for example, dealing with multiple chips in one project, i.e. flashing AI accelerators. Also, we want to put a lot of emphasis on emulation for testing pipelines and in general, providing one central tool for dealing with all of these problems.
Noah[m]1 has joined #rust-embedded
<Noah[m]1>
PRs are very happily accepted :)
Guest7282 has joined #rust-embedded
FlixtheNewbie[m] has quit [Quit: Idle timeout reached: 172800s]
<thejpster[m]>
Cargo workspaces are a bit of a nightmare with multiple targets and different feature flags. Would love to see that improved.
<thejpster[m]>
There's a thing coming where I think that's really going to hurt.
diondokter[m] has joined #rust-embedded
<diondokter[m]>
Wanna spill the beans??
<diondokter[m]>
Looking through the cargo issue and PR tracker, I don't really see anything.
<dav1d>
ryan-summers[m], for me it's currently just the initial hurdle, for me it isnt immediately clear how to use this with my current setup (embassy and esp) and I am not familiar enough with the embedded ecosystem to know how to plug this in.
<ryan-summers[m]>
That's a fair point :)
temurumaru[m] has joined #rust-embedded
<temurumaru[m]>
Hi everyone!
spinfast[m] has joined #rust-embedded
<spinfast[m]>
thejpster: so I did end up with a working wm8960 driver, using chiptool to generate the regmap and everything
<thejpster[m]>
nice. I wrote everything by hand.
<spinfast[m]>
* and everything, I think its pretty nice in the end, and I can even keep the regmap cached in memory as the wm8960 needs
<thejpster[m]>
and the PDF was very much not amenable to copy-paste, as the text would come out in a fairly random order
<spinfast[m]>
thejpster[m]: I've done that so many times, I'm done with it
<spinfast[m]>
* with it, inevitably I screw something up and have to go refactor things
<thejpster[m]>
yeah the TLV320AIC23 doesn't have read support, so you have to cache everything. The NAU88C22 does have read support though. Apparently.
<spinfast[m]>
The nice part of this chiptool stuff is I can use yaml to then generate the regmap, so I mean I didn't get it working with python to rip the regmap out of the pdf, but maybe I could've
<spinfast[m]>
rip out regmap, dump yaml (with doc strings and all perhaps), generate rust code from easy to grok yaml
dirbaio[m] has joined #rust-embedded
<dirbaio[m]>
I've written python regex crimes to rip registers from C headers to yaml :)
<spinfast[m]>
like vs directly trying to rip the pdf and generate rust code, but then if you mess up...
<JamesMunns[m]>
I know I saw japaric write a PDF-to-SVD converter once :D
<dirbaio[m]>
usually a bit more machine readable than the pdf
<spinfast[m]>
yaml's easy enough to hand edit if needed
<spinfast[m]>
dirbaio: yeah but then perhaps you miss all the register and field doc strings, which are pretty awesome to have in an editor with autocomplete
<spinfast[m]>
I added some to the yaml for chiptool to generate for, but not all
<dirbaio[m]>
yeah (:
<dirbaio[m]>
* yeah :(
<spinfast[m]>
JamesMunns[m]: yeah I mean, same idea really I suppose, though svd to me is not so human friendly as the chiptool yaml IR stuff
<spinfast[m]>
though having to repeat the register size in the fieldset wasn't cool, I might have to look into that
<dirbaio[m]>
neat!! :D
<dirbaio[m]>
but most importantly... will it spin fast?
<spinfast[m]>
haha, it does indeed let me generate a square wave from the imxrt1010 I have now :-D so I guess... in a way sure
<spinfast[m]>
need to fix my sine lut, should copy James Munns stuff from his blog
<JamesMunns[m]>
spinfast[m]: Yeah, that was in the Old Days where I don't think any of the YAML tooling stuff existed yet
<spinfast[m]>
Imagine yaml from top to bottom, here's my board yaml describing how everything is connected, here's my soc yaml, here's my regmap yaml, before you know its kubernetes all over... lets not go too crazy I guess :-)
<JamesMunns[m]>
Tho I think the more recent allwinner PACs are scraped from PDF as well, would be good to have a reference for the PDF -> ??? -> YAML -> chiptool pipeline
<JamesMunns[m]>
spinfast[m]: hope nobody has a `NO` register :)
<spinfast[m]>
yeah that would be nice, wm8960 pdf has a nice table even for python to rip, but I guess trying to readout those tables is hard
<spinfast[m]>
it came out as gibberish
<spinfast[m]>
* is hard, I tried it with the camelot package
<spinfast[m]>
* is hard, I tried it with the camelot python package
<dirbaio[m]>
ST's own SVDs for the newer families are scraped from PDF
<spinfast[m]>
you'd think people might put some metadata in the vhdl/verliog/sv to generate regmaps...
<spinfast[m]>
* generate regmaps from the rtl...
<spinfast[m]>
* generate regmaps from the rtl..., * ... or maybe they do but only dump it in pdfs and no one else has access
<JamesMunns[m]>
spinfast[m]: surprise! it's all interns and spreadsheets
<spinfast[m]>
I'm not surprised... at all
<JamesMunns[m]>
(just a guess, I would love to know the real process tho)
<spinfast[m]>
we need to send in some R-E industrial spies to find out
sknebel has quit [Ping timeout: 268 seconds]
<dirbaio[m]>
ST's was intern-powered until L5 or so, then they switched to scraping their own PDFs
<spinfast[m]>
* we need to send in some rust embedded wg industrial spies to find out
<dirbaio[m]>
s/L5/L4/
<spinfast[m]>
yeah its like... the asic doc writers I guess are the human firewall between the actual rtl source and the rest of the world
<spinfast[m]>
gotta keep that spi IP block secret, surely there's massive value locked up there
sknebel has joined #rust-embedded
<JamesMunns[m]>
<spinfast[m]> "need to fix my sine lut, should..." <- btw there's some fun optimization tricks I didn't even hit in that code, like you can chop the LUT into 1/2 or 1/4 if you are willing to do a bit more math per lookup
<spinfast[m]>
I kind of hope one of these open chip designs gets printed one day, would love a neorv32 in a qfp I can drop on a board
<JamesMunns[m]>
(for that blog post, keeping the full 512B LUT wasn't a big deal, and I was going for max speed anyway :p)
<dirbaio[m]>
there's more instances like this ... the human writing the Word document types things formatted slightly different than usual ... then their scraper doesn't pick it up.. 🥲
<dirbaio[m]>
and of course no enum names, they're all B_0xWhatever
<dirbaio[m]>
because the PDF doesn't have enum names, just value + description
<dirbaio[m]>
(╯°□°)╯︵ ┻━┻
mameluc[m] has joined #rust-embedded
<mameluc[m]>
garbage in, diamonds out
<Noah[m]1>
Who's up for founding a chip company with proper materials? :P
<dirbaio[m]>
sure just wait a moment I got a few spare million under my mattress
barnabyw[m] has joined #rust-embedded
<barnabyw[m]>
maybe we can team up with that guy who put together a DIY IC fab in his garage and (jokingly) was projected to beat moore’s law within a few years
dnm_ has joined #rust-embedded
seds_ has joined #rust-embedded
innegatives_ has joined #rust-embedded
cyrozap_ has joined #rust-embedded
ryan-summers[m] has quit [Ping timeout: 252 seconds]
dnm has quit [Ping timeout: 252 seconds]
vollbrecht[m] has quit [Ping timeout: 252 seconds]
therealprof[m] has quit [Ping timeout: 252 seconds]
seds has quit [Ping timeout: 252 seconds]
cyrozap has quit [Ping timeout: 252 seconds]
innegatives has quit [Ping timeout: 252 seconds]
GenTooMan has quit [Ping timeout: 252 seconds]
zagura has quit [Ping timeout: 252 seconds]
dnm_ is now known as dnm
seds_ is now known as seds
zagura has joined #rust-embedded
<Noah[m]1>
<dirbaio[m]> "sure just wait a moment I got..." <- and you have been hiding it all this time???!!!
<dirbaio[m]>
i'd say that's a good reason to hide
<Noah[m]1>
<barnabyw[m]> "maybe we can team up with that..." <- he already founded a company: https://atomicsemi.com/ and if they werent in SF I would be working there (copium) :'(
<Noah[m]1>
err make that US instead of SF
<barnabyw[m]>
oh cool, I hadn’t heard that! been a bit out of the loop about things like this since leaving twitter/X
vollbrecht[m] has joined #rust-embedded
therealprof[m] has joined #rust-embedded
ryan-summers[m] has joined #rust-embedded
GenTooMan has joined #rust-embedded
Foxyloxy has quit [Ping timeout: 268 seconds]
Foxyloxy has joined #rust-embedded
<Noah[m]1>
Yeah it's extremely dope!
<Noah[m]1>
pun not intended
<thejpster[m]>
<Noah[m]1> "Who's up for founding a chip..." <- Some might say Raspberry Pi already did…
<Noah[m]1>
thejpster[m]: fair!
<thejpster[m]>
Hell of a place to end up when they weren’t sure they could shift their first pallet of 10,000 Pi boards.
Guest7282 has left #rust-embedded [Error from remote client]
kurtis has joined #rust-embedded
Guest7282 has joined #rust-embedded
kurtis has quit [Ping timeout: 252 seconds]
dne has quit [Remote host closed the connection]
dne has joined #rust-embedded
<Ecco>
Dumb embassy-stm32 question: is it possible to do Output-only SPI? As in, I don't need MISO
<adamgreig[m]>
(probably better to ask in #embassy-rs:matrix.org for embassy-specific stuff, btw)
<adamgreig[m]>
but anyway, have you tried the new_txonly() method?
<Ecco>
oh, didn't see it
<Ecco>
awesome, thnaks :)
<Ecco>
(I'm on IRC, is there a mirror for embassy-rs?)
<adamgreig[m]>
aah, no, I don't believe there is
<M9names[m]>
Also: not a dumb question, please don't feel like you need to add a disclaimer before you ask something here