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
starblue has quit [Ping timeout: 264 seconds]
starblue has joined #rust-embedded
<dirbaio[m]> dj2v65fnvh: fixed the USB issue on the f429zi-disc1 board from monday! https://github.com/embassy-rs/embassy/pull/2805
cybernaut has quit [Quit: Leaving]
cybernaut has joined #rust-embedded
cybernaut has quit [Remote host closed the connection]
GenTooMan has joined #rust-embedded
starblue has quit [Ping timeout: 252 seconds]
starblue has joined #rust-embedded
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
pbsds has joined #rust-embedded
juliand[m] has quit [Quit: Idle timeout reached: 172800s]
M9names[m] has quit [Quit: Idle timeout reached: 172800s]
IlPalazzo-ojiisa has joined #rust-embedded
SimonJohansson[m has quit [Quit: Idle timeout reached: 172800s]
starblue has quit [Ping timeout: 240 seconds]
starblue has joined #rust-embedded
<JamesMunns[m]> Btw, anyone here going to be at Hackaday Berlin this weekend? I probably won't be at the con, but might go to the pre-party tonight
crabbedhaloablut has quit []
crabbedhaloablut has joined #rust-embedded
cesnel[m] has joined #rust-embedded
sourcebox[m] has quit [Quit: Idle timeout reached: 172800s]
barnabyw[m] has quit [Quit: Idle timeout reached: 172800s]
<JamesMunns[m]> <cesnel[m]> "Hello there,..." <- > <@cesnel:matrix.org> Hello there,... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/KUJcmgYJAMqdCBnXdpCzzCHs>)
<cesnel[m]> I just checked the asm code, so I think the logical way would be to use #[pre_init] to initialise it.
<cesnel[m]> JamesMunns[m]: Thanks!
RobertJrdens[m] has joined #rust-embedded
<RobertJrdens[m]> depends. either custom init procedure, runtime init with MaybeUninit/cortex_m::singleton() (soon), or piggy back on the existing mechanisms by placing your new sections such that they fall into the .data load mechanism or .bss zeroing.
<JamesMunns[m]> cesnel[m]: Yeah, depends when you need it! You could initialize it in Rust if you don't need it until runtime, it gets a little harder if it needs to be a `static` or something, like Robert said.
<JamesMunns[m]> https://docs.rs/grounded/latest/grounded/uninit/struct.GroundedCell.html is a type I'm working on that could be placed in those sections with `#[link_section = ".your.custom.section"]`, I don't have great docs for it yet
<JamesMunns[m]> but since it's considered uninit at boot, you can do the initialization in main, then (unsafely) make a `&'static` or `&'mut static` out of it.
<JamesMunns[m]> * https://docs.rs/grounded/latest/grounded/uninit/struct.GroundedCell.html is a type I'm working on that could be placed in those sections with `#[link_section = ".your.custom.section"]`, I don't have great docs for it yet... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/YydWyHDDDEetdEUunqmkMFrE>)
<cesnel[m]> Oki, thanks for the help!
badyjoke[m] has quit [Quit: Idle timeout reached: 172800s]
MichaelMaitland[ has quit [Quit: Idle timeout reached: 172800s]
paumanok[m] has quit [Quit: Idle timeout reached: 172800s]
bpye has quit [Quit: Ping timeout (120 seconds)]
bpye has joined #rust-embedded
ingo[m] has joined #rust-embedded
<ingo[m]> Hey, i'm working on some code for a stm32f103 which requires a division and modulo operation. I'm wondering if a simple division and subsequent modulo operation translates to arms `udiv` operation or if it results in some expensive code. Is there anything special i have to watch out for?
<dirbaio[m]> seems it generates one udiv and one multiply-subtract
<ingo[m]> thanks a lot! that looks like a useful site.
AtleoS has quit [Ping timeout: 252 seconds]
AtleoS has joined #rust-embedded
AdinAck[m] has joined #rust-embedded
<AdinAck[m]> does anyone know of any STM32 HALs that use embedded-hal v1 traits? (specifically SPI) i'm trying to convert the G4 HAL to v1
<dirbaio[m]> embassy-stm32
<AdinAck[m]> hah!
<AdinAck[m]> of course, thanks :)
<dirbaio[m]> and it supports stm32g4, btw
<AdinAck[m]> yes i know, i'm trying to use not embassy for a bit to further my learning
<AdinAck[m]> uh oh, unless i am not understanding it looks to me like embassy-stm32's SPI implementation is with embedded-hal v0.2
<dirbaio[m]> it supports both at the same time
<dirbaio[m]> there's two sets of impls
<dirbaio[m]> for max comapt
<dirbaio[m]> * for max compat
<AdinAck[m]> ah whoops yes, had to scroll about a thousand lines more :)
<AdinAck[m]> sweet!
<AdinAck[m]> wait... embassy-stm32 has SDMMC built in?
<AdinAck[m]> embassy is too cool
WSalmon_ has quit [Ping timeout: 255 seconds]
WSalmon has joined #rust-embedded