Shop OBEX P1 Docs P2 Docs Learn Events
Propeller Memory Card Not Retaining Flash Memory Stored Data — Parallax Forums

Propeller Memory Card Not Retaining Flash Memory Stored Data

SELSEL Posts: 80
edited 2013-10-02 11:02 in Propeller 1
Has anyone found that when storing Data to Flash Memory that is is lost when rebooting or removing power?

Stan

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2013-10-01 13:57
    When you "write" to flash memory, the data gets buffered in RAM, not written right away. If you do not explicitly close the file you're writing and provide sufficient time for the last bit of data to be sent to flash before a power-off or reset, the data will not get stored.

    -Phil
  • SELSEL Posts: 80
    edited 2013-10-02 11:02
    Phil,

    I am using the Object that Parallax provides and I did not notice a close file method. If there is no such method can you suggest a way to close the file within this object?

    Regards,
    Stan
Sign In or Register to comment.