<re_irc>
<@korken89:matrix.org> The PAC is written a bit like the ChibiOS HAL, so it's one HAL for all MCUs
<re_irc>
<@korken89:matrix.org> * HAL
<re_irc>
<@korken89:matrix.org> Same for version as well
<re_irc>
<@azzentys:matrix.org> I like that design.
<re_irc>
<@azzentys:matrix.org> I'll place it on my list to study that.
<re_irc>
<@korken89:matrix.org> The design is the rest of the ecosystem is a bit weird tbh, I think what and is doing is the right direction
<re_irc>
<@azzentys:matrix.org> I've been trying to understand/read/design/think about HALs in Rust for a year. I feel a bit confident now to read them.
<re_irc>
<@korken89:matrix.org> STM32s in particular use the same peripherals in multiple chips, so no need to rewrite the same driver multiple times
<re_irc>
<@korken89:matrix.org> More or less, is the motivation
<re_irc>
<@korken89:matrix.org> :)
<re_irc>
<@korken89:matrix.org> For more details I'll let the authors answer :D
<re_irc>
<@azzentys:matrix.org> Thanks again! My study material just increased in size! :)
<re_irc>
<@korken89:matrix.org> No problem :)
<re_irc>
<@azzentys:matrix.org> At work, we have a small project - where I want to use Rust (just for fun). I hope I can make use of the great resources people have written!
<re_irc>
<@korken89:matrix.org> That should be no problem :)
<re_irc>
<@korken89:matrix.org> We use Rust in 5 different HW products now with 2 different MCU families
<re_irc>
<@azzentys:matrix.org> I also hope to get competent enough to help out if help is needed. Might need more experience overall.
<re_irc>
<@korken89:matrix.org> There is a lot of help to get here :)
<re_irc>
<@korken89:matrix.org> It's generally good to all in the right room though, so if you have RTIC questions ask in that room, if you have embassy questions, ask in that room, etc
<re_irc>
<@korken89:matrix.org> And here for general or if you don't know where to ask :)
<re_irc>
<@korken89:matrix.org> People will answer or point you in the right direction :)
<re_irc>
<@azzentys:matrix.org> Appreciate that!
<re_irc>
<@azzentys:matrix.org> RTIC seems like a mini RTOS, is that what it is? Looking at the features, it does seem to offer Tasks, IPC like features.
<re_irc>
<@diondokter:matrix.org> : Pretty much, but it uses interrupts instead of threads
<re_irc>
<@sourcebox:matrix.org> Yes, it's an RTOS. I haven't looked into it recently because it was initially closely tied to Cortex-M while I was looking for an RTOS that was more cross-platform.
<re_irc>
<@sourcebox:matrix.org> I don't know if there's something like FreeRTOS but purely Rust.
starblue3 has quit [Ping timeout: 250 seconds]
<re_irc>
<@azzentys:matrix.org> Rtic does deserve a place in my study material!
<re_irc>
<@azzentys:matrix.org> : A lot of that is written in C, even Zephyr.
<re_irc>
<@sourcebox:matrix.org> One of the advantages with Rust is that it guarantees to build your code in all future releases, as long as you use stable.
<re_irc>
<@sourcebox:matrix.org> As soon as C/C++ gets involved, this is not the case anymore. And I have spent enough time in the past just to get projects build again.
loki_val has quit []
<re_irc>
<@lambdafriend:matrix.org> I'm finding that just leaking some memory from SDRAM is corrupting my audio.
<re_irc>
Does anyone have an advice, or threads to pull on?
crabbedhaloablut has joined #rust-embedded
<re_irc>
<@lambdafriend:matrix.org> +I'm not even sure how to debug this.
<re_irc>
<@lambdafriend:matrix.org> +// even [0.0; 0] breaks it!
emerent has quit [Ping timeout: 245 seconds]
emerent has joined #rust-embedded
<re_irc>
<@lambdafriend:matrix.org> -// even [0.0; 0] breaks it!
crabbedhaloablut has quit []
crabbedhaloablut has joined #rust-embedded
<re_irc>
<@lambdafriend:matrix.org> Never did figure this out, but it turns out that the BSP I'm using already has an sdram abstraction so I just used that and everything seems to be working.
starblue3 has joined #rust-embedded
limpkin has quit [Quit: limpkin]
limpkin has joined #rust-embedded
starblue3 has quit [Ping timeout: 240 seconds]
dc740 has quit [Remote host closed the connection]
DisconSented has quit [Quit: No Ping reply in 180 seconds.]