(RTOS 1.4) Spiffs address alignment

scottlangendyk
Posts: 1
Joined: Thu Aug 11, 2016 1:30 am

(RTOS 1.4) Spiffs address alignment

Postby scottlangendyk » Thu Aug 11, 2016 1:33 am

I've been trying to figure out how to get spiffs working, and having a hard time. Looking through the source, I see that the SPI addresses are being aligned based on a FLASH_UNIT_SIZE declaration. Why is this?

pratik

Re: (RTOS 1.4) Spiffs address alignment

Postby pratik » Fri Aug 12, 2016 10:52 am

Hello,

Flash devices may only allow access to word-boundary aligned addresses only. For this reason, flash accesses are aligned.
As for access to primary flash memory of ESP8266 - that definitely needs word-boundary aligned access because of the architecture of the ESP8266.

Who is online

Users browsing this forum: No registered users and 13 guests