cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #rust-embedded
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #rust-embedded
_whitelogger has joined #rust-embedded
sroemer has quit [Quit: WeeChat 4.5.2]
d34db33f has joined #rust-embedded
Ralph[m] has joined #rust-embedded
<Ralph[m]>
there seems to be no discussion open yet for next weeks wg meeting - since [the last](https://github.com/rust-embedded/wg/discussions/846) didn't really happen: would it make sense to just rename that?
<Ralph[m]>
(i won't be around next tuesday, but i think the points i raised can easily be discussed without my presence)
Socke has quit [Ping timeout: 276 seconds]
Socke has joined #rust-embedded
t-moe[m] has quit [Quit: Idle timeout reached: 172800s]
jannic[m] has quit [Quit: Idle timeout reached: 172800s]
AshconMohseninia has quit [Quit: Idle timeout reached: 172800s]
Farooq has joined #rust-embedded
<Farooq>
I've got a W2812B to program which seems to use 1 wire protocol. Is this something my MCU needs to support at hardware level, or something which I should implement in the software?
<Ralph[m]>
<Farooq> "I've got a W2812B to program..." <- i presume you mean ws2812b? i've never used it but it seems common (it gets referenced in the chat regularly) and there are various crates around: https://crates.io/search?q=ws2812
<RobWells[m]>
Well there’s also an implementation for ESP chips that uses the RMT (remote control) peripheral, so pick your poison.
<JamesMunns[m]>
You can (ab)use the pwm or i2s peripherals on the nrf52 to drive them too :)
<Farooq>
what about usb? XD
<Farooq>
or ethernet
<JamesMunns[m]>
Nope, not that I'm aware of. I2S can have arbitrary datastreams and 2.4MHz is a multiple of the 800khz carrier frequency you need, and the PWM engine on the nrf52 is very custom, at the cost that it takes 16x more bytes to encode pwm sequences than it does the raw data
<JamesMunns[m]>
s/custom/customizable/
<JamesMunns[m]>
The issue with using SPI on the nrf52 is that it only supports power of two frequencies, which don't have good multiples with the 800khz carrier frequency you need for ws2812b stuff
<JamesMunns[m]>
whereas the stm32 you can pick a much more specific frequency
sirhcel[m] has joined #rust-embedded
<sirhcel[m]>
Has anyone a recommendation for tooling for checking stack frame sizes for an embedded rust application (cortex-m, mixed with c, but even jutst rust will help a lot)?
<JamesMunns[m]>
you probably have it installed on your stable toolchain but not your nightly toolchain
<sirhcel[m]>
JamesMunns[m]: Awesome! Thank you very much! That's one step forward. :)
<sirhcel[m]>
And the first build is over the finish line. ❤️
<Ralph[m]>
<JamesMunns[m]> "try rustup +nightly target..." <- i really like having a `rust-toolchain.toml` in my repos where i just define the `toolchain.targets` so that cargo picks it up automatically. since i started doing that i didn't have to manually install targets anymore (either locally or in CI) 🙂
<sirhcel[m]>
Had anyone success with generating stack frame size information in the recent past?
sroemer has joined #rust-embedded
Lumpio[m] has quit [Quit: Idle timeout reached: 172800s]
jason-kairos[m] has quit [Quit: Idle timeout reached: 172800s]
diondokter[m] has quit [Quit: Idle timeout reached: 172800s]
<dngrs[m]>
Someone here was looking for bit flags crates a while ago iirc? Here's an idiomatic enum based one https://github.com/enarx/flagset
<dngrs[m]>
(spotted by [Daniel aka CyReVolt 🐢](https://matrix.to/#/@CyReVolt:matrix.org))
DanielakaCyReVol has joined #rust-embedded
<DanielakaCyReVol>
happy to share that finding :)
d34db33f has quit [Ping timeout: 260 seconds]
d34db33f has joined #rust-embedded
d34db33f has quit [Read error: Connection reset by peer]
d34db33f has joined #rust-embedded
sroemer has quit [Quit: WeeChat 4.5.2]
AdamHorden has quit [Ping timeout: 260 seconds]
vollbrecht[m] has quit [Quit: Idle timeout reached: 172800s]
ello_ has quit [Read error: Connection reset by peer]
ello has quit [Read error: Connection reset by peer]
ello has joined #rust-embedded
ello_ has joined #rust-embedded
d34db33f has quit [Remote host closed the connection]
d34db33f has joined #rust-embedded
AdamHorden has joined #rust-embedded
AdamHorden has quit [Ping timeout: 248 seconds]
d34db33f has quit [Remote host closed the connection]
d34db33f has joined #rust-embedded
m5zs7k has quit [Ping timeout: 276 seconds]
AdamHorden has joined #rust-embedded
m5zs7k has joined #rust-embedded
d34db33f has quit [Ping timeout: 260 seconds]
d34db33f has joined #rust-embedded
d34db33f has quit [Ping timeout: 260 seconds]
d34db33f has joined #rust-embedded
_whitelogger has joined #rust-embedded
DominicFischer[m has quit [Quit: Idle timeout reached: 172800s]
thalesfragoso[m] has quit [Quit: Idle timeout reached: 172800s]
d34db33f has quit [Remote host closed the connection]
<JamesMunns[m]>
By the way, started writing some high level docs of what I'm working on with `ergot`, as a possible future entry into the `postcard` cinematic universe: https://docs.rs/ergot/latest/ergot/book/index.html
<JamesMunns[m]>
Ask me anything (please do: it will help me write good docs), feel free to check it out if it sounds interesting (there are demos you can run to connect multiple nodes!), if you feel like hacking on it with me, feel free to drop by https://matrix.to/#/#mnemos-dev:beeper.com, or just open an issue or something :)