Re: Flashrom extension development
Reply #9 –
Pump is an alternate write method, instead of storing all the data in a buffer then flushing it out SPI, it just takes from UART and puts it in SPI. This is fine for 10MHZ spi, but at low speeds the SPI buffer (4) will fill and we start to loose data.
Yes, it will just be stuck waiting for the bytes to finish. A timeout could be added eventually.
It seems simple enough to just give you a single flashrom extension, it will take less than the long stuff maybe.
How about this:
command|write H | write L| read H | read L| write data... | read data....
I know we've had this discussion before, but I can't find it... The most common page size is 256bytes as I recall, but many chips can be continuously read from 0 to .... mbits. The OLS flash is 264bytes/page (or something), so it seems to make sense to have more than 256bytes as a write/read minimum, but then one-byte read/write will have a ton of overhead. Are all pages /8 or something? Then we could use a single byte to represent chunks of 256 bytes to read.
This function would have automatic CS. I'll implement it now.