【Feedback】Reading and Writing FLASH

scargill
Posts: 70
Joined: Sun Nov 02, 2014 8:09 pm

【Feedback】Reading and Writing FLASH

Postby scargill » Tue Jul 26, 2016 3:49 am

In the SDK there are routines to ERASE a sector - but then to read and write absolute addresses.

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.

ESP_Rubin
Posts: 222
Joined: Wed Jun 29, 2016 11:59 am

Re: Reading and Writing FLASH

Postby ESP_Rubin » Tue Jul 26, 2016 4:08 pm

Hi,
SRAM read/write doesn't need on a 4-byte boundary

Who is online

Users browsing this forum: No registered users and 1 guest