<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!
<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]