Skip to main content

spiflash_write_encrypted

Function spiflash_write_encrypted 

Source
pub unsafe fn spiflash_write_encrypted(
    dest_addr: u32,
    data: *mut u32,
    len: u32,
) -> Result<(), i32>
Expand description

Low-level SPI NOR Flash encrypted write

ยงSafety

The dest_addr + len should not exceed the size of flash. Both dest_addr and len must be 32-byte aligned. The target flash region must already be erased. The data pointer must be word-aligned.