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
emerent has quit [Ping timeout: 250 seconds]
emerent has joined #rust-embedded
starblue has quit [Ping timeout: 255 seconds]
starblue has joined #rust-embedded
causal has joined #rust-embedded
GenTooMan has quit [Ping timeout: 244 seconds]
GenTooMan has joined #rust-embedded
rardiol has quit [Ping timeout: 250 seconds]
<re_irc> <Mehmet Ali> Trevor Gross: I use the structure in the blog post of ferrous systems, for host and target.
<re_irc> <Mehmet Ali> It seems to me that it can be utilized for qemu as well
rardiol has joined #rust-embedded
GenTooMan has quit [Ping timeout: 265 seconds]
GenTooMan has joined #rust-embedded
GenTooMan has quit [Excess Flood]
GenTooMan has joined #rust-embedded
GenTooMan has quit [Ping timeout: 250 seconds]
GenTooMan has joined #rust-embedded
rardiol has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
GenTooMan has quit [Ping timeout: 264 seconds]
starblue has quit [Ping timeout: 265 seconds]
GenTooMan has joined #rust-embedded
starblue has joined #rust-embedded
<re_irc> <gauteh> Hi. I think I'm experiencing a deadlock in my panic handler. It's custom, but does some defmt printing (https://github.com/gauteh/sfy/blob/main/sfy-buoy/sfy-artemis/src/main.rs#L437). Seems like defmt-rtt is using critical-section 0.2.7. Is there anything that can cause critical-section vs defmt-rtt to deadlock on cortex-m? defmt has to work inside a critical section (cortex-m interrupt free).. and from interrupts.. Or is...
<re_irc> ... it maybe more likely that there's another panic triggered that causes a panic loop?
<re_irc> <gauteh> This is a backtrace from a gdb session I attached to a locked up device:
<re_irc> (gdb) where
<re_irc> #0 critical_section::_critical_section_acquire () at src/lib.rs:111
<re_irc> #1 0x0003bcb0 in critical_section::acquire () at src/lib.rs:46
<re_irc> <gauteh> Maybe related to: https://docs.rs/cortex-m/latest/cortex_m/interrupt/fn.enable.html, this means I cannot call critical_section::acquire inside a free(|cs| ..) closure. And thus cannot call defmt::* from within free, since defmt-rtt does acquire ?
<re_irc> <Leandro Marceddu> What would be a way to make a ping every minute?
<re_irc> <Leandro Marceddu> Would I best use a timer for this, set it to a minute, capture the trigger and reset it again? Or would I rather use a now() < 1minute_in_future sort of thing?
<re_irc> <Leandro Marceddu> * "now() < 1minute_in_future"
<re_irc> <gauteh> that should be fine, because of the token stuff. I think my issue is a panic inside the panic
starblue has quit [Ping timeout: 250 seconds]
<re_irc> <firefrommoonlight> Leandro Marceddu: It depends. If you have a dedicated timer avail, that may be the easiest
<re_irc> <firefrommoonlight> You could also use an RTC, or a software counter
starblue has joined #rust-embedded
causal has quit [Quit: WeeChat 3.6]
explore has joined #rust-embedded