Cypress Perform

Home > Support & Community
support.cypress.com     Bookmark and Share
Support & Community

Knowledge Base Article



Efficient Memory Use

Last Updated: 02/26/2011

How to efficiently use RAM and Flash resources while writing data into flash?

There are certain guidelines which should be followed while routing data into flash to maximize the efficiency of both Flash and RAM resources.

Plenty of Flash - Efficient usage of RAM

  • Write data in blocks of 64 bytes even if data to be stored is less.
  • Always read data in with the correct byte amount.

Efficient usage of Flash

  • Always write exact amount of data.
  • Always read exact amount of data.

For e.g. if 20 bytes of data has to be written in flash and plenty of flash is available, then while writing these data bytes pass byte count as 64 but while reading read only 20 bytes of data.


Related Categories: PSoC® 1


Provide feedback on this article

Did this article help you solve your problem?

Yes

No

Maybe

Additional comments:

To protect your privacy, do not include contact information in your feedback.

 Help us improve by taking a brief survey
Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 06/15/20
Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 06/15/20