<M0e4ef622[m]>
<KevinPFleming[m]> "OK, thanks for the tips, I think..." <- I've toyed with the idea of having one `memory.toml` and then the have the application/bootloader build.rs generate the memory.x from that.
<KevinPFleming[m]>
M0e4ef622[m]: Interesting idea... that's more capable but requires more copy-paste code in the build script.
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
<KevinPFleming[m]>
I've got a branch using the far crate working with my idea... I'll get it posted for comments tomorrow.
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
sroemer has joined #rust-embedded
sroemer has quit [Changing host]
sroemer has joined #rust-embedded
Ralph[m] has joined #rust-embedded
<Ralph[m]>
<ivmarkov[m]> "Can't imagine not having select..." <- can you elaborate on this? i'm only aware of `select!` (both with embassy and tokio)
<Ralph[m]>
<Noah[m]> "is there an easy way to get a..." <- simple: throw it into the recycling bin and get something else which exposes debug pins 😉
<Ralph[m]>
(i have one of those POS on my desk and am forced to interact with it. i think board designers not exposing debug pins or offering a built-in debugger via USB should be publicly shamed and never allowed to make a board ever again 🤬)
<M9names[m]>
I think teensy is just fine for what it's intended for (a high-performance Arduino).
<M9names[m]>
If you are trying to use it for something else, that's kinda on you
<ivmarkov[m]>
<Ralph[m]> "can you elaborate on this? i'm..." <- `embassy_futures` does not have a `select!` macro. It has a bunch of `select` functions, as in `select`, `select3`, `select4`, `select_array` and so on. While they are a bit more restrictive, the are overall also simpler to use. And don't require futures to be fused.
<ivmarkov[m]>
race from futures_lite seems to be similar to embassy_futures::select
<ivmarkov[m]>
* race and or from futures_lite seems to be similar to embassy_futures::select
<Ralph[m]>
ah, i used tokio so much lately that i forgot about the difference in embassy 😅 (haven't used async on embedded that much yet - at least not in cases where i needed select)
Lumpio[m] has quit [Quit: Idle timeout reached: 172800s]
Hallo124 has quit [Remote host closed the connection]
<Ralph[m]>
hm, maybe i could spawn a new thread just to launch the external process from there and then await it there? that feels like complete overkill, though...
<Ralph[m]>
but then i could also skip the `Option`s and instead check `JoinHandle::is_finished` in `Drop` (not sure if i'm allowed to `await` a `JoinHandle` which already finished? IIRC it wasn't allowed to `await` an already finished `Future` a second time in async rust?)
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
Hallo124 has quit [Remote host closed the connection]
<jf-uu[m]>
Is there a crypto library I can use in an no_std / no alloc environment to do mTLS for MQTT? (connecting to AWS MQTT). I found https://docs.rs/embedded-tls/latest/embedded_tls/ but it sounds like it doesn't support server certificate validation.
<jf-uu[m]>
Aye saw that - there is a PR open to switch from webpki to RustCrypto but it's in early days by the looks of it.
<jf-uu[m]>
* to RustCrypto for server certificate validation but it's
<dngrs[m]>
for me personally reserving a bit of ram for having an allocator isn't a deal breaker; that said I don't know of a no_std + alloc solution either 😬
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
<jf-uu[m]>
What options are there if I do have an allocator?
<dngrs[m]>
it's just my take on the issue discussion
<dngrs[m]>
* on the linked issue discussion
<jf-uu[m]>
It sounds like rustls might support no_std now actually, I'll give that a go with an allocator I guess.
<Ralph[m]>
<dngrs[m]> "> <@rursprung:matrix.org> i'm in..." <- i've managed to avoid discord for now... 🙈
<Ralph[m]>
<Ralph[m]> "hm, maybe i could spawn a new..." <- i think i now have the solution: i now indeed spawn a new thread to launch - and await - the child process as well. and i'm using _two separate_ [`TaskTracker`](https://docs.rs/tokio-util/latest/tokio_util/task/task_tracker/struct.TaskTracker.html)s which offer `wait(&self)` which i can use. this, combined with a cancellation token (to kill the threads - i use another `select!` in
<Ralph[m]>
there) seems to work fine!
<dngrs[m]>
<Ralph[m]> "i've managed to avoid discord..." <- Maybe they have a bridge, I don't know
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #rust-embedded
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #rust-embedded
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
WSalmon has quit [Remote host closed the connection]
WSalmon_ has joined #rust-embedded
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
therealprof[m] has quit [Quit: Idle timeout reached: 172800s]