Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: RE: Using CC2540 flash instead of RAM

$
0
0

[quote user="Mark Hinds"]

 We were planning to send over data from the BLE central 20 bytes at a time, incrementally write it to flash, and then when done send it elsewhere. 

[/quote]

It is generally not a good idea to store temporary data to flash, due to several reasons:

  • Writing to flash takes very long, compared to RAM (milliseconds vs. nanoseconds), which is part of the "known issues": The realtime capabilities are very limited
  • Unlike with RAM, there is limited number of write/erase cycles (see datasheet)
  • Flash can only be erased in blocks bigger than 20 bytes; you need a rather complex algorithm to deal with that issue

If you have the chance to reduce the size of the buffered data block to, say, 4 kBytes, do so and use RAM for buffering.


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>