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
sroemer has joined #rust-embedded
sroemer has quit [Changing host]
sroemer has joined #rust-embedded
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
emmanuelsearch[m has quit [Quit: Idle timeout reached: 172800s]
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
<Ralph[m]> so, turns out i was chasing the wrong thing... Ctrl+C is handled correctly in tests (with both `cargo test` and `cargo nextest run`). i now wrote a small test to check this.... (full message at <https://catircservices.org/_irc/v1/media/download/AZjr5y5LOTnfoY_L_VxKbZJIp48mw8gOfhN56JxgO86BK26YxQ6j1r2hyx3vnS4PqfWsgGq9yAlFM-7xrSG51nG_8AAAAAAAAGNhdGlyY3NlcnZpY2VzLm9yZy9mWHB1VkNBSVlpVmpLRUNxU1lER2lFQlY>)
m5zs7k has quit [Ping timeout: 248 seconds]
m5zs7k has joined #rust-embedded
DominicFischer[m has joined #rust-embedded
<DominicFischer[m> I discovered this Mutex crate recently https://crates.io/crates/mutex , just in case you want something more standard/existing
diondokter[m] has quit [Quit: Idle timeout reached: 172800s]
SosthneGudon[m] has joined #rust-embedded
<SosthneGudon[m]> <DominicFischer[m> "I discovered this Mutex crate..." <- Oh, thanks for that. It doesn't look like it fully solves my issue it's probably the closest to what I want.
<JamesMunns[m]> <SosthneGudon[m]> "Oh, thanks for that. It doesn'..." <- I'm one of the writers of this, lmk if you have any questions.
<SosthneGudon[m]> Thanks!
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
jannic[m] has quit [Quit: Idle timeout reached: 172800s]
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
jason-kairos[m] has quit [Quit: Idle timeout reached: 172800s]
firefrommoonligh has joined #rust-embedded
<firefrommoonligh> I concur that RTIC isn't appropriate here. It works for most of the applications I've had, but it sounds like this is an exception. Regarding better mutexes: I will cheat. What I'm about to post is just a macro that does... (full message at
<firefrommoonligh> * I concur that RTIC isn't appropriate here. It works for most of the applications I've had, but it sounds like this is an exception. Regarding better mutexes: I will cheat. What I'm about to post is... (full message at <https://catircservices.org/_irc/v1/media/download/ASDCVpntqGdYtXRkZopffnVc5f1qPoVgif1l9BVsWDQUTEJWmW-ng3khpg9gUHMlyMNMkivIoSMomgc9mFWpZaO_8AAAAAAAAGNhdGlyY3NlcnZpY2VzLm9yZy90WFBORGJ2RmhFYWttdFhVUE1KQlFpQU4>)
<thejpster[m]> has anyone else observed that semihosting::process:exit(1) will cause probe-rs to quit, but also cause probe-rs to not print the final few messages in the defmt/RTT buffer (like, the reason why you're exiting the process...)?
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
diondokter[m] has joined #rust-embedded
<diondokter[m]> <thejpster[m]> "has anyone else observed that ..." <- I've not used semi hosting since 2020. I think a lot of people haven't. This could very well be a bug that's gone unnoticed
ouilemur has quit [Quit: WeeChat 4.6.3]
<thejpster[m]> panic-probe uses it
<thejpster[m]> And it’s been hiding my panic messages ;(
ouilemur has joined #rust-embedded
RockBoynton[m] has joined #rust-embedded
<RockBoynton[m]> by default yes, you have to enable a feature: https://docs.rs/panic-probe/1.0.0/panic_probe/#panic-messages
<thejpster[m]> I have the enabled
<thejpster[m]> * I have that enabled
<thejpster[m]> (I own that crate, btw)
<thejpster[m]> the issue is it prints a panic message over defmt, and then does a UDF instruction to trigger a UsageFault to trigger a HardFault to make probe-rs quit. And it does, but the panic message is still in the RTT buffer because the buffer is polled but a hardfault is an interrupt (AFAIU)
sroemer has quit [Quit: WeeChat 4.5.2]
ana_briated has quit [Ping timeout: 252 seconds]
KevinPFleming[m] has joined #rust-embedded
<KevinPFleming[m]> can it just wait until the panic message has been retrieved from the buffer before issuing the UDF?
<thejpster[m]> it could certainly wait for some period of time. I guess it could wait until the buffer was empty?
<thejpster[m]> or probe-rs could drain the defmt-buffer before printing the hardfault stack trace and quitting the program
<thejpster[m]> s/-//RTT /
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
ana_briated has joined #rust-embedded
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
<KevinPFleming[m]> yeah. waiting until empty seems right, there shouldn't be anything else in the application putting stuff into the buffer at that point.
<RockBoynton[m]> Is this why I sometimes don't actually see the panic message? I thought I was just holding it wrong lol
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded
<thejpster[m]> I think I’m going to patch panic-probe and just add a delay.
Hallo124 has quit [Remote host closed the connection]
Hallo124 has joined #rust-embedded