Jeremy Soller 657437e1ce
Faster flashing with SMFI (#32)
* WIP: support for new flashing API

* Add SPI flashing support to tool

* Add timeouts when flashing with ectool

* Test SPI reading

* Use chunks for SPI commands

* Sanity test of flash size

* Read rom in sectors

* Relocate memmap region, remove PMC3

* Use ectool to flash

* Remove debugging of spi command

* Fix flashing over smfi
2020-02-26 09:04:40 -07:00

12 lines
156 B
Rust

#[derive(Debug)]
pub enum Error {
Parameter,
Protocol(u8),
Signature((u8, u8)),
SuperIoId(u16),
Timeout,
Verify,
WouldBlock,
}