esp8266web icon indicating copy to clipboard operation
esp8266web copied to clipboard

Write to SPI memory locations ...

Open hdrut opened this issue 10 years ago • 1 comments

Hi pvvx

I want to say thank you for this great piece of work. It's awesome! ... but also it's complicated. Perhaps you can give me a hand, i want to write to SPI to save some data. I use spi_flash_erase and spi_flash_write but nothing gets written... Is there some protection in place?

Thks in advance,

Horacio

hdrut avatar Jun 27 '15 16:06 hdrut

No protection. spi_flash_write uses addresses from 0 to 16777216. spi_flash_erase_sector uses addresses in sectors. Sector = 4096 bytes. spi_flash_erase_block uses addresses in blocks. Blocks = 65536 bytes.

flashchip->chip_size - describes the max work address limit.

pvvx avatar Aug 29 '15 04:08 pvvx