#flash #memory #no-std #sst25 #microship

no-std mc-sst25

Library for the Microship SST25* flash memory series

6 releases

new 0.3.1 Jan 13, 2025
0.3.0 Dec 20, 2024
0.2.0 Sep 18, 2024
0.1.3 Jan 30, 2023

#194 in Embedded development

Download history 169/week @ 2024-09-16 16/week @ 2024-09-23 9/week @ 2024-09-30 21/week @ 2024-12-09 106/week @ 2024-12-16 1/week @ 2024-12-23

128 downloads per month

MIT/Apache

49KB
969 lines

I/O library for Microchip SST25 flash memory series

License License Crates.io Actions Status

Non-blocking crate for interacting with Microchip SST25 flash memory devices like SST25VF080B.

Currently, the following features are implemented:

Example

For all details see monitor module.

use mc_sst25::device::Flash;
use mc_sst25::example::{MockBus, MockPin};

let bus = MockBus::default();
let pin_en = MockPin::default();
let pin_hold = MockPin::default();
let pin_wp = MockPin::default();

let mut device = Flash::new(bus, pin_en, pin_wp, pin_hold);

// Writing a single byte
device.erase_full().unwrap();
device.byte_program(0x0, 0x66).unwrap();

// Writing larger data
device.aai_program(0x1, &[0x1, 0x2, 0x3, 0x4]).unwrap();

// Reading data starting at address 0x0
let data = device.read::<5>(0x0).unwrap();
assert_eq!([0x66, 0x1, 0x2, 0x3, 0x4], data);

State

⚠️ The crate has only been tested for the SST25VF080B variant.

Development

Any form of support is greatly appreciated. Feel free to create issues and PRs. See DEVELOPMENT for more details.

License

Licensed under either of

Each contributor agrees that his/her contribution covers both licenses.

Dependencies

~56KB