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
GuineaWheek[m] has joined #rust-embedded
<GuineaWheek[m]> just spent way too long trying to figure out why my device's usb wouldn't enumerate only to find out that the fix was in a PR branch that has been left open for 8 months: https://github.com/stm32-rs/synopsys-usb-otg/pull/25
fooker has quit [Ping timeout: 272 seconds]
fooker has joined #rust-embedded
nadja has quit [Ping timeout: 268 seconds]
dequbed has joined #rust-embedded
dequbed has quit [Ping timeout: 268 seconds]
dequbed has joined #rust-embedded
Rustnoob[m] has joined #rust-embedded
<Rustnoob[m]> seems enabled...will check at home anyway
pronvis has joined #rust-embedded
<Rustnoob[m]> Hi guys, I think that this topi has been already treated, but i need a refresh. I have to verify a bootloader with signature and I need to read it from the flash memory as a slice of u8 (&[u8]) so coming from C i know that I can point to an address of flash with a pointer and get the value, which is a good method ( safe or unsafe too ) to obtain the same result in embedded Rust? Thanks!
<Rustnoob[m]> * Hi guys, I think that this topic has been already treated, but i need a refresh. I have to verify a bootloader with signature and I need to read it from the flash memory as a slice of u8 (&\[u8\]) so coming from C i know that I can point to an address of flash with a pointer and get the value, which is a good method ( safe or unsafe too ) to obtain the same result in embedded Rust? Thanks!
IlPalazzo-ojiisa has joined #rust-embedded
<ryan-summers[m]> Hmm, you could generate a [slice::from_raw_parts](https://doc.rust-lang.org/core/slice/fn.from_raw_parts.html), but perhaps that might violate pointer aliasing rules
<ryan-summers[m]> But pointer aliasing rules are weird and its not entirely clear to me if this is a violation of them
<ryan-summers[m]> s/aliasing/provenance/
<ryan-summers[m]> s/from_raw_parts/from\_raw\_parts/, s/aliasing/provenance/
<JamesMunns[m]> If you're in the bootloader, and reading the app section, it's pretty clearly fine. Reading read-only flash is proooooobably fine, less so than aliasing RAM which might be mutable.
<whitequark[cis]> there is always the option for an assembly blob
<M9names[m]> you're unlikely to have a ref mut into flash
<JamesMunns[m]> If your flash is memory mapped, it's probably fine to do from_raw_parts, as long as it isn't live if you ever later erase/write the flash.
cyrozap has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
cyrozap has joined #rust-embedded
andresovela[m] has quit [Quit: Idle timeout reached: 172800s]
<Rustnoob[m]> <JamesMunns[m]> "If you're in the bootloader, and..." <- Exactly what i need! Read bootloader flash in a slice flavour!
psukys has joined #rust-embedded
haobogu[m] has joined #rust-embedded
<haobogu[m]> Hello everyone, is there any existing driver of FT3168 touch controller in the community?
<haobogu[m]> If there's no, I'd like to implement one.
mkj[m] has quit [Quit: Idle timeout reached: 172800s]
<JamesMunns[m]> Looking at https://github.com/rust-embedded/awesome-embedded-rust?tab=readme-ov-file, there's one for the Ft6x36, not sure how similar they are across families
<haobogu[m]> Okay, thanks James!
<haobogu[m]> I'm checking it out
Ralph[m] has quit [Quit: Idle timeout reached: 172800s]
sigmaris has quit [Quit: ZNC - https://znc.in]
sigmaris has joined #rust-embedded
Makarov has joined #rust-embedded
SergioGasquez[m] has quit [Quit: Idle timeout reached: 172800s]
Makarov98 has joined #rust-embedded
Makarov has quit [Ping timeout: 250 seconds]
Makarov98 has quit [Quit: Client closed]
newam[m] has quit [Quit: Idle timeout reached: 172800s]
bartmassey[m] has quit [Quit: Idle timeout reached: 172800s]
eldruin[m] has quit [Quit: Idle timeout reached: 172800s]
vollbrecht[m] has quit [Quit: Idle timeout reached: 172800s]
GrantM11235[m] has quit [Quit: Idle timeout reached: 172800s]
therealprof[m] has quit [Quit: Idle timeout reached: 172800s]
zagura has quit [Quit: Reconnecting]
zagura has joined #rust-embedded
zagura has quit [Changing host]
zagura has joined #rust-embedded
Makarov has joined #rust-embedded
adamgreig[m] has quit [Quit: Idle timeout reached: 172800s]
Makarov46 has joined #rust-embedded
Makarov has quit [Ping timeout: 250 seconds]
Makarov55 has joined #rust-embedded
Makarov46 has quit [Ping timeout: 250 seconds]
zagura has quit [Quit: Reconnecting]
zagura has joined #rust-embedded
zagura has quit [Changing host]
zagura has joined #rust-embedded
zagura has quit [Quit: Reconnecting]
zagura has joined #rust-embedded
zagura has quit [Changing host]
zagura has joined #rust-embedded
zagura has quit [Quit: Reconnecting]
zagura has joined #rust-embedded
zagura has quit [Quit: Reconnecting]
zagura has joined #rust-embedded
zagura has quit [Client Quit]
zagura has joined #rust-embedded
zagura has quit [Client Quit]
zagura has joined #rust-embedded
Makarov55 has quit [Ping timeout: 250 seconds]