<djdisodo[m]>
is there a way i can just print some kind of code from microcontroller and compare that code with dictionary to check error message
pronvis has quit [Ping timeout: 264 seconds]
<M9names[m]>
sure! that's what defmt does internally, if you don't mind the dictionary being in your elf file defmt's a good option
<M9names[m]>
this is obviously not exclusive to defmt though - I watched a talk from an intel engineer (can't remember which one) for C firmware where they write out all the error messages including formatting string in some format, and use codegen to get the impl in code for packing the string index and the data, as well as generating the tool for decoding this data.
<M9names[m]>
if you just want prebaked strings with no data you can do a simple index lookup instead, but usually for debugging you want some runtime values as well.
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 256 seconds]
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 252 seconds]
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 260 seconds]
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 260 seconds]
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 264 seconds]
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 272 seconds]
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 260 seconds]
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 260 seconds]
<sourcebox[m]>
ryan-summers: What do you think about having a dummy UsbBus implementation in usb-device? This would allow to make example that actually build. E.g. the usbd-serial readme example would just need `usb_bus` to be assigned to such a dummy bus instance to compile.
<sourcebox[m]>
s/example/examples/
zachariasfrings[ has joined #rust-embedded
<zachariasfrings[>
Hello, i want to program my raspberry pico with rust. I am looking and two different options. rp-hal (https://github.com/rp-rs/rp-hal) and embassy. What exactly is the difference between the two and which one should I use for a small Uni-Project?
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 272 seconds]
pronvis has joined #rust-embedded
_whitelogger has joined #rust-embedded
pronvis has quit [Ping timeout: 252 seconds]
pronvis has joined #rust-embedded
<badyjoke[m]>
<zachariasfrings[> "Hello, i want to program my..." <- AFAIK, the main difference is that embassy will let you do multitasking using async/await. It depends if you want to have multitasking for you project . If I remember correctly you can use embassy-rp without using asyn/await. dirbaio Will have agreater knowledge than me.
mameluc[m] has quit [Quit: Idle timeout reached: 172800s]
<badyjoke[m]>
Oh and rp-rs has a BSP for the raspberry pico, if you want something to use directly without going throught configurations
<M9names[m]>
I would not choose one over the other based solely on BSP availability
<M9names[m]>
the BSP does not provide much for Pico, anyway - there's not much on the board!
<dirbaio[m]>
the led 😎
<M9names[m]>
yeah, and the flash chip
<dirbaio[m]>
yeah the bsp basically renames "PIN_25" to "LED" :P
<M9names[m]>
if it's a Pico W the answer is easy - use embassy-rp. rp2040-hal has no support for the wifi chip, which means it also can't blink the LED on board.
<M9names[m]>
if you want to use async, use embassy-rp.
<M9names[m]>
otherwise... you can totally get the job done with either. but i think given you've already expressed a dislike for boilerplate you'll probably hate the generics in rp2040-hal
<M9names[m]>
so, uh, try embassy-rp first and switch if you decide you hate it?
Mathias[m] has quit [Quit: Idle timeout reached: 172800s]
IlPalazzo-ojiisa has joined #rust-embedded
pronvis_ has joined #rust-embedded
pronvis has quit [Ping timeout: 256 seconds]
pronvis_ has quit [Remote host closed the connection]
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 252 seconds]
Mathias[m] has joined #rust-embedded
<Mathias[m]>
For people at Oxidize Conference (or in Berlin), let's meet at 7 PM outside the venue for a Rust Embedded social.
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 240 seconds]
Amanieu has joined #rust-embedded
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 256 seconds]
Amanieu has quit [Quit: Amanieu]
Amanieu has joined #rust-embedded
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 260 seconds]
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 268 seconds]
jiande2020 has quit [Quit: Ping timeout (120 seconds)]
jiande2020 has joined #rust-embedded
PinballWIzard[m] has joined #rust-embedded
<PinballWIzard[m]>
Am I right? I am interested in using COBS in case....
<PinballWIzard[m]>
Hi jamesmunns dropping a question here about using UART with postcard-rpc: you told that there's no way atm to use the nice dispatch macro, but I could compose my dispatcher also with UART also with :
seds has quit [Quit: Connection closed for inactivity]
Amanieu has quit [Quit: Amanieu]
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 256 seconds]
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 252 seconds]
pronvis has joined #rust-embedded
pronvis has quit [Ping timeout: 260 seconds]
pronvis has joined #rust-embedded
Makarov has joined #rust-embedded
sirhcel[m] has joined #rust-embedded
<sirhcel[m]>
Anyone interested in eating out and having a beer later near oxidize conf? Meet Mathias and me at the conference drink. 🍻
AlexandrosLiarok has quit [Quit: Idle timeout reached: 172800s]
ryan-summers[m] has quit [Quit: Idle timeout reached: 172800s]
Amanieu has joined #rust-embedded
pronvis_ has joined #rust-embedded
pronvis has quit [Read error: Connection reset by peer]
pronvis has joined #rust-embedded
pronvis_ has quit [Read error: Connection reset by peer]
Makarov has quit [Quit: Client closed]
pronvis_ has joined #rust-embedded
pronvis has quit [Ping timeout: 252 seconds]
pronvis has joined #rust-embedded
pronvis_ has quit [Ping timeout: 268 seconds]
pflanze_ has quit [Remote host closed the connection]
pflanze_ has joined #rust-embedded
<JamesMunns[m]1>
<PinballWIzard[m]> "Hi jamesmunns dropping a..." <- Yeah, the name is confusing, that's the "old" dispatcher, if you aren't using async it should work well, but won't work very well for async.