ESP8266 Developer Zone The Official ESP8266 Forum 2016-07-26T16:08:57+08:00 https://bbs.espressif.com:443/feed.php?f=65&t=2475 2016-07-26T16:08:57+08:00 2016-07-26T16:08:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2475&p=8131#p8131 <![CDATA[Re: Reading and Writing FLASH]]> SRAM read/write doesn't need on a 4-byte boundary

Statistics: Posted by ESP_Rubin — Tue Jul 26, 2016 4:08 pm


]]>
2016-07-26T03:49:52+08:00 2016-07-26T03:49:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2475&p=8119#p8119 <![CDATA[【Feedback】Reading and Writing FLASH]]>
So my questions are - given that in an OTA situation, an array in normal memory may be in one or two places..

So you ERASE a sector and start writing to it - that's easy enough.

When you write - the destination address is clearly an absolute address with in the (say) 4MBYTES space).

The destination address is clearly an absolute address which I understand has to be on 4 byte boundaries...

But the RAM source address of say, my array of characters - does THAT have to be on a 4-byte boundary ? How would I know?

And when I write - what is the smallest number of bytes I can actually write?

Or am I better off just working in a 4096 RAM buffer and just writing the entire block?

Pete.

Statistics: Posted by scargill — Tue Jul 26, 2016 3:49 am


]]>