ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
notgull has joined #rust-embedded
dav1d has quit [Ping timeout: 260 seconds]
dav1d has joined #rust-embedded
IlPalazzo-ojiisa has quit [Remote host closed the connection]
corecode[m] has joined #rust-embedded
<corecode[m]> mqtt seems the wrong vehicle to me
<corecode[m]> to push the ota binary, i mean
bibble235[m] has joined #rust-embedded
<bibble235[m]> Great!
Lumpio- has quit [Ping timeout: 246 seconds]
Lumpio- has joined #rust-embedded
Guest7282 has left #rust-embedded [Error from remote client]
Guest7282 has joined #rust-embedded
Guest7282 has left #rust-embedded [Error from remote client]
<jannic[m]> <ithinuel> "rp2040-hal implements RTIC’s..." <- BTW, it only does this for RTIC v1. Do you have an idea how to also support v2?
<jannic[m]> Either having dependencies on multiple versions of RTIC or having separate feature flags for the two versions would be somewhat ugly. But just dropping support for RTICv1 also seems wrong, as afaik v1 is still widely used.
cr1901_ has joined #rust-embedded
cr1901 has quit [Ping timeout: 260 seconds]
Guest7282 has joined #rust-embedded
<Ralph[m]> <adamgreig[m]> "yea, @rust-embedded/hal I think?..." <- FYI: as the teams in the rust-embedded org are private it's not possible to ping the team (at least for non-members)
<badrb[m]> <corecode[m]> "mqtt seems the wrong vehicle..." <- Why?
<badrb[m]> The intention is to push sliced indexed chunks of a bin, each one checksummed, at the rhythm of the end device.
<badrb[m]> s/push/publish/
Guest7282 has left #rust-embedded [Error from remote client]
<michaeldesilva[m> Hi any ideas why my Jlink mini has trouble connecting sometimes?... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/LHuubMaIFedVaIDHoXMmSbqZ>)
<lulf[m]> badrb: I used hawkBit a little in the past, though that's http. For Drogue IoT I wrote https://github.com/drogue-iot/drogue-ajour which works on top of mqtt, http, lorawan and coap transport (yay layers on layers). Probably plain TCP or HTTP is just as good compared to MQTT. But for coap and lorawan having the 'message based' dfu protocol was nice as you could do the updates over a long period of time.
Guest7282 has joined #rust-embedded
<badrb[m]> <lulf[m]> "badrb: I used hawkBit a little..." <- This look good!
<badrb[m]> How tightly coupled to Drogue IoT Cloud is it?
Guest7282 has left #rust-embedded [Error from remote client]
<Ralph[m]> a few weeks ago i already asked this here but never got a definitive answer, so here's another attempt: what is the recommended way for drivers to propagate e-h errors to their consumers? should they bubble up each individual error type or should they just wrap it up in a generic "hardware said no" error as the... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/BBGTENIJVnnwDnZSfhXwFdjW>)
ryan-summers[m] has quit [Quit: Idle timeout reached: 172800s]
<lulf[m]> <badrb[m]> "This look good!..." <- > <@badrb:matrix.org> This look good!
<lulf[m]> > How tightly coupled to Drogue IoT Cloud is it?
<lulf[m]> It relies on mqtt and the event format in drogue cloud(cloudevents.io). There is also embedded-update crate for the device side that generalises the update mechanism with "pluggable" transports to drogue cloud (drogue device has http and lorawan)
IlPalazzo-ojiisa has joined #rust-embedded
IlPalazzo-ojiisa has quit [Ping timeout: 246 seconds]
IlPalazzo-ojiisa has joined #rust-embedded
Guest7282 has joined #rust-embedded
AdamHott[m] has joined #rust-embedded
<AdamHott[m]> Can anyone recommend an affordable stm32 board that has Wifi capabilities?
<AdamHott[m]> I want to test with embassy.
fooker has quit [Ping timeout: 252 seconds]
ilpalazzo-ojiis4 has joined #rust-embedded
<ilpalazzo-ojiis4> OK, first things first, what constitutes “affordable”? Could you give, like, three prices for “Below price 1 I'd jump for joy, price 2 appears good, price 3 is the absolute hard upper limit”?
<lulf[m]> Adam Hott: I've used this devkit in the past https://www.st.com/en/evaluation-tools/b-l475e-iot01a.html - not much value for money compared to rpi pico IMHO though....
<lulf[m]> * rpi pico w IMHO though....
fooker has joined #rust-embedded
notgull has quit [Ping timeout: 272 seconds]
<AdamHott[m]> I had some trouble connecting my probe to a rpi pico w board to test, so I'm looking at alternative boards to test.
<AdamHott[m]> yeah this one is pretty pricey
notgull has joined #rust-embedded
<dirbaio[m]> wifi on these is AT-command based, so it doesn't work with embassy-net
<dirbaio[m]> you can still use it through embedded-nal-async with https://github.com/drogue-iot/es-wifi-driver
<lulf[m]> Maybe get another pico and use as probe :D In general I would recommend embassy-net over the at-command drivers
<dirbaio[m]> does it have to be stm32? if not, then an esp32c3 devkit is probably your best bet, using esp-wifi and esp-hal
<dirbaio[m]> if it *has* to be stm32, then you can wire up the esp32c3 to the stm32 board via spi to use as a dumb wifi adapter with [esp-hosted](https://github.com/embassy-rs/embassy/tree/main/embassy-net-esp-hosted)
<AdamHott[m]> It doesn't have to be stm32, I'm just looking for an affordable alternative board to test
<AdamHott[m]> I also have a raspberry pi probe, wondering if I can use that as a probe on an alternative board or if I need to look at another probe
<dirbaio[m]> raspberry pi probe should work on stm32's too
<dirbaio[m]> many stm32 boards have a bulit-in stlink though
<dirbaio[m]> * most stm32 boards from ST have a bulit-in stlink though
<AdamHott[m]> would the raspberry pi probe work on the esp32c3?
mabez[m] has joined #rust-embedded
<mabez[m]> AdamHott[m]: No, but the esp32c3 has its own JTAG probe built into the USB interface and it's well supported by probe-rs - if you're thinking of picking one up I'd recommend the [esp-rust-board](https://github.com/esp-rs/esp-rust-board)
<vollbrecht[m]> you can directly hook gpio 18/19 of that chip into your PC and have a jtag/usb-cdc connection without any 3rd party chip whatsoever
<AdamHott[m]> mabez[m]: that's the one from Mouser Electronics that's linked in the repo, right?
<mabez[m]> AdamHott[m]: Correct, it should also be available on Digikey if you prefer :)
danielb[m] has joined #rust-embedded
<danielb[m]> Fair warning, probe-rs has some issues with the c3, though, for some users
<AdamHott[m]> danielb[m]: problems connecting?
<AdamHott[m]> <vollbrecht[m]> "you can directly hook gpio 18/19..." <- would that involve splicing a cable?
notgull has quit [Ping timeout: 276 seconds]
<firefrommoonligh> <danielb[m]> "Fair warning, probe-rs has..." <- FYSA I wasn't able to get it working, but I didn't try too hard
<danielb[m]> Sorry, what's fysa? 🙈
<firefrommoonligh> for your situational awareness
<vollbrecht[m]> <AdamHott[m]> "would that involve splicing a..." <- depending on the board, this two gpio pins are directly connected to the usb-header without any chips in between. The rust board does exactly that. But if you for example just get the naked esp32c3 module you could just use it with something like [this](https://images.app.goo.gl/D6jz5effkEex8MVQ9) connecting the usb+ / - to those pins directly.
<vollbrecht[m]> though to be safe i still would put minimal usb protection in series here with some special clamping diodes.
<vollbrecht[m]> but its just info, this is all not needed for the mention rust dev board
<vollbrecht[m]> * its just general info, this
_whitelogger has joined #rust-embedded
Guest7282 has left #rust-embedded [Error from remote client]
Guest7282 has joined #rust-embedded
<Ralph[m]> <Ralph[m]> "a few weeks ago i already..." <- > <@rursprung:matrix.org> a few weeks ago i already asked this here but never got a definitive answer, so here's another attempt: what is the recommended way for drivers to propagate e-h errors to their consumers? should they bubble up each individual error type or should... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/HredomMimyhUaYqUewaererE>)
<corecode[m]> oh i managed to build a docker container for embedded arm work: https://hub.docker.com/r/bitsandelectrons/rust-embedded-arm
pauldotsh[m] has joined #rust-embedded
<pauldotsh[m]> How good is rust support on esp32 and on arduino uno?
Guest7282 has left #rust-embedded [Error from remote client]
<Ralph[m]> <pauldotsh[m]> "How good is rust support on esp3..." <- for arduino you currently need to use nightly rust, see: https://github.com/Rahix/avr-hal/issues/471
<Ralph[m]> no experience with esp32 from my side, but there's this: https://github.com/esp-rs
Guest7282 has joined #rust-embedded
<JamesMunns[m]> My $0.02, doing Rust on AVR is a fairly advanced thing, the compiler sometimes doesn't work reliably, and requires some setup. it's way more bleeding edge than Cortex-M.
<vollbrecht[m]> pauldotsh: look at the https://esp-rs.github.io/book/ for infos around rust on esp's
<vollbrecht[m]> and feel free to ask around in https://matrix.to/#/#esp-rs:matrix.org
cr1901_ is now known as cr1901
TomB[m] has quit [Quit: Idle timeout reached: 172800s]
DrJoniPelham[m] has quit [Quit: Idle timeout reached: 172800s]
WSalmon has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
WSalmon has joined #rust-embedded
<vollbrecht[m]> C strings alla `c"my null terminated c string"` are stabilized for the upcoming rust 1.77. So no CStr::from_bytes_with_nul() anymore. Here are the [docs](https://doc.rust-lang.org/nightly/edition-guide/rust-2021/c-string-literals.html) 🎉
notgull has quit [Ping timeout: 264 seconds]
<JamesMunns[m]> oh that's cool!
boondocker[m] has quit [Quit: Idle timeout reached: 172800s]
IlPalazzo-ojiis1 has joined #rust-embedded
IlPalazzo-ojiisa has quit [Read error: Connection reset by peer]
IlPalazzo-ojiis1 has quit [Ping timeout: 255 seconds]
IlPalazzo-ojiisa has joined #rust-embedded
sashin has joined #rust-embedded
sashin has quit [Remote host closed the connection]
explodingwaffle1 has quit [Quit: Idle timeout reached: 172800s]
IlPalazzo-ojiisa has quit [Remote host closed the connection]