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
crabbedhaloablut has quit []
IlPalazzo-ojiisa has quit [Quit: Leaving.]
Guest7221 has left #rust-embedded [Error from remote client]
emerent has quit [Ping timeout: 260 seconds]
emerent has joined #rust-embedded
starblue has quit [Ping timeout: 260 seconds]
starblue has joined #rust-embedded
GenTooMan has quit [Ping timeout: 248 seconds]
GenTooMan has joined #rust-embedded
GenTooMan has quit [Ping timeout: 248 seconds]
GenTooMan has joined #rust-embedded
crabbedhaloablut has joined #rust-embedded
<yruama_lairba[m]> GrantM11235: using atomic generate a lot of DSB and DMB memory barrier instruction, i read in embedednomicon it tells that is not required under some circumstance
<yruama_lairba[m]> * i read the embedednomicon again, it's no so clear https://docs.rust-embedded.org/embedonomicon/dma.html#dont-we-need-a-memory-barrier
thejpster[m] has quit [Quit: Idle timeout reached: 172800s]
<yruama_lairba[m]> anyway, i think you can greatly reduce the number of memory barrier when you read a chunk of memory
<yruama_lairba[m]> if i understand correctly, i only need one "Acquire" or DSB before reading the chunk, and one "Release" or DMB after the write
Guest7221 has joined #rust-embedded
andres[m] has quit [Quit: Idle timeout reached: 172800s]
IlPalazzo-ojiisa has joined #rust-embedded
<yruama_lairba[m]> i don't know what i did before, but Atomic tyep don't generate DSB/DMB instruction anymore with relaxed oredring
Shell is now known as Shellhound
hifi has quit [Ping timeout: 264 seconds]
esden[cis] has quit [Ping timeout: 260 seconds]
diondokter[m] has quit [Ping timeout: 260 seconds]
_catircservices has quit [Ping timeout: 260 seconds]
hifi has joined #rust-embedded
diondokter[m] has joined #rust-embedded
_catircservices has joined #rust-embedded
esden[cis] has joined #rust-embedded
Guest7221 has left #rust-embedded [Error from remote client]
dirbaio[m] has quit [Quit: Bridge terminating on SIGTERM]
therealprof[m] has quit [Quit: Bridge terminating on SIGTERM]
K900 has quit [Quit: Bridge terminating on SIGTERM]
mabez[m] has quit [Quit: Bridge terminating on SIGTERM]
adamgreig[m] has quit [Quit: Bridge terminating on SIGTERM]
JamesMunns[m] has quit [Quit: Bridge terminating on SIGTERM]
_catircservices has quit [Quit: Bridge terminating on SIGTERM]
yruama_lairba[m] has quit [Quit: Bridge terminating on SIGTERM]
korken89[m] has quit [Quit: Bridge terminating on SIGTERM]
Jonas[m]1 has quit [Quit: Bridge terminating on SIGTERM]
Charles[m] has quit [Quit: Bridge terminating on SIGTERM]
sjm42[m] has quit [Quit: Bridge terminating on SIGTERM]
FreeKill[m] has quit [Quit: Bridge terminating on SIGTERM]
M9names[m] has quit [Quit: Bridge terminating on SIGTERM]
gmarull[m] has quit [Quit: Bridge terminating on SIGTERM]
xiretza[cis] has quit [Quit: Bridge terminating on SIGTERM]
firefrommoonligh has quit [Quit: Bridge terminating on SIGTERM]
Farooq has quit [Quit: Bridge terminating on SIGTERM]
GrantM11235[m] has quit [Quit: Bridge terminating on SIGTERM]
adinack[m] has quit [Quit: Bridge terminating on SIGTERM]
burrbull[m] has quit [Quit: Bridge terminating on SIGTERM]
almindor[m] has quit [Quit: Bridge terminating on SIGTERM]
diondokter[m] has quit [Quit: Bridge terminating on SIGTERM]
esden[cis] has quit [Quit: Bridge terminating on SIGTERM]
_catircservices has joined #rust-embedded
Guest7221 has joined #rust-embedded
GenTooMan has quit [Ping timeout: 260 seconds]
GenTooMan has joined #rust-embedded
GenTooMan has quit [Ping timeout: 272 seconds]
cyrozap has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
cyrozap has joined #rust-embedded
GenTooMan has joined #rust-embedded
askrodney[m] has joined #rust-embedded
<askrodney[m]> Hi, I'm running into an unexpected SIGINT following the rust-embedded/discovery micro:bit book. OK to describe the issue, and ask for help here?
firefrommoonligh has joined #rust-embedded
<firefrommoonligh> I am guessing that is a different definition of the word from the typical one
<firefrommoonligh> s/word/acronym/
brazuca has joined #rust-embedded
GenTooMan has quit [Ping timeout: 248 seconds]
therealprof[m] has joined #rust-embedded
<therealprof[m]> <askrodney[m]> "Hi, I'm running into an unexpect..." <- 👋 Sure, ask away.
<askrodney[m]> therealprof[m]: thanks...
<askrodney[m]> askrodney[m]: Hi, I'm running through the discovery micro:bit book. I am getting an unexpected SIGINT on [Chapter 5.3](https://docs.rust-embedded.org/discovery/microbit/05-led-roulette/debug-it.html), when I try to debug. I am running an Intel Mac with micro:bit v2, and earlier test (from the book) runs fine... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/GwXJDUpfpCMpGssLNuilqEnW>)
GenTooMan has joined #rust-embedded
GenTooMan has quit [Ping timeout: 248 seconds]
Guest7221 has left #rust-embedded [Error from remote client]
Guest7221 has joined #rust-embedded
JamesMunns[m] has joined #rust-embedded
<JamesMunns[m]> askrodney what happens if you put one of these in the body of the loop?... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/JhfqWOUnASnIqVjRgDUicUnH>)
<JamesMunns[m]> there used to be an issue that empty loops would get miscompiled away (it's not allowed in C++ I think, but is in Rust, sometimes LLVM gets confused)
<JamesMunns[m]> The other thing I would suggest is setting `lto = "off"` here: https://github.com/rust-embedded/discovery/blob/master/microbit/Cargo.toml#L11-L14
<JamesMunns[m]> The other thing that goes wrong some times is that LTO breaks the debug information that GDB uses, and it's possible that GDB is just getting confused and crashing (not the program).
dirbaio[m] has joined #rust-embedded
<dirbaio[m]> they're building with debug, so no lto already
<JamesMunns[m]> I would actually try the LTO thing first, I think that's more likely than loop {} being an issues with a modern compiler.
<JamesMunns[m]> ah, good catch
<JamesMunns[m]> then yeah, maaaaybe the loop thing? But that also usually doesn't get miscompiled without optimizations...
crabbedhaloablut has quit []
brazuca has quit [Ping timeout: 245 seconds]
GenTooMan has joined #rust-embedded
brazuca has joined #rust-embedded
Guest7221 has left #rust-embedded [Error from remote client]