Skip to content

Does this actually compile with current rust version? #346

@planck-length

Description

@planck-length

I tried to fork and run cargo build --features stm32l476 but got like 5 similar errors

error: assigning to `&T` is undefined behavior, consider using an `UnsafeCell`
   --> src/spi.rs:271:34
    |
271 |                           unsafe { ptr::write_volatile(&self.spi.dr as *const _ as *mut u8, byte) }
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I'm new to embedded rust so maybe I'm missing some steps before building. Any help appreciated thank you!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions