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 quit [Ping timeout: 272 seconds]
dne has quit [Remote host closed the connection]
dne has joined #rust-embedded
jistr_ has quit [Ping timeout: 244 seconds]
jistr has joined #rust-embedded
Noah[m] has joined #rust-embedded
<Noah[m]> I probably should have paid attention on the last few meetings but is there any plans to update embedded-hal in cortex-m?
_whitelogger has joined #rust-embedded
<DavidBrown[m]> Yes, but then the API becomes pretty much unusable.
<DavidBrown[m]> The goal is to keep it safe, but also make the interface usable.
crabbedhaloablut has quit [Quit: bye]
crabbedhaloablut has joined #rust-embedded
pcs38 has joined #rust-embedded
sroemer has joined #rust-embedded
sroemer has quit [Changing host]
sroemer has joined #rust-embedded
AlexandrosLiarok has quit [Quit: Idle timeout reached: 172800s]
<thejpster[m]> Just wanted to ping https://github.com/rust-embedded/wg/pull/818 again. I think there’s consensus but we’re stuck on procedure.
AlexandrosLiarok has joined #rust-embedded
<AlexandrosLiarok> What's a good way to prevent the M4 core from running when using a dual core bootloader running from M7 ?
<AlexandrosLiarok> (stm32h745)
<AlexandrosLiarok> Because the m7 core will be overwriting the m4 flash region.
<thejpster[m]> That should be explained in the chips data sheet
<AlexandrosLiarok> I guess I can keep the M4 option byte to off and enable on bootloader jump.
<AlexandrosLiarok> * and enable the SYSCFG boot bit on bootloader
<RobinMueller[m]> Hey, does anyone know an elegant way to initialize very large arrays? I have to define a L1 table with 4096 u32 entries, but all the values are known at compile time. This was solved with assembler... (full message at <https://catircservices.org/_irc/v1/media/download/AU976XQteaWqBBOX1hmmBgwI9HnOYtIOuyR23646WGVdokCiE24mhr7fJfltwDHCKTbXyOK7AVG02sGcJ3VNXU-_8AAAAAAAAGNhdGlyY3NlcnZpY2VzLm9yZy9KY3BjTGV1RGtIWXdLc3VOZ2ZSVURpaW4>)
<RobinMueller[m]> Ah, the code is not public yet..
rmsyn[m] has joined #rust-embedded
<rmsyn[m]> <RobinMueller[m]> "Hey, does anyone know an elegant..." <- there's a couple ways to achieve what you're trying to do.... (full message at <https://catircservices.org/_irc/v1/media/download/AdmmeQR5cehVVrKgL3OjBBp93IPDPhynIM4ZP0n4MYJ20hinuzpw0DokHBjl5V3OUHFvGLCvxISHWMHyuf2gDBa_8AAAAAAAAGNhdGlyY3NlcnZpY2VzLm9yZy9URkhQaFJJZURTaVVpTGNzbllJRmVyU3I>)
<rmsyn[m]> s/`/`./, s/for//, s/you.//
<thejpster[m]> I’d make a static slice of slices and flatten the iterator to set them all at run time
adamgreig[m] has quit [Quit: Idle timeout reached: 172800s]
<rmsyn[m]> right, but they were asking about how to achieve a compile-time solution ...
<thejpster[m]> Compile time what though? You can’t get data into the MMU at compile time.
<thejpster[m]> And it’s unlikely that MMU set up is performance critical.
<thejpster[m]> So to me it’s just a question of “code size” vs “data size”.
<rmsyn[m]> alright, yeah I guess that's answering a different question of "why do you want a compile-time solution".
jasperw has joined #rust-embedded
jasperw has quit [Client Quit]
<rmsyn[m]> I think the general case is still interesting, though. like there are entire crates dedicated to how to const-initialize an array programmatically using macros that take function arguments for how to initialize the elements
<thejpster[m]> Yeah but we have const blocks now so initialising a bunch of slices is now fairly easy
<rmsyn[m]> sure, I guess you also move the initiializer into a `const fn do_init<const N: usize>(..args) -> [T; N]` type function
jasperw has joined #rust-embedded
pcs38 has quit [Quit: leaving]
jasperw has quit [Changing host]
jasperw has joined #rust-embedded
jasperw has quit [Quit: Byeeeeeeeeeeeeeeee!]
jasperw has joined #rust-embedded
jasperw has quit [Changing host]
jasperw has joined #rust-embedded