> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/adk-5.0-programmers-guide/readme/pg_system_diagnosis_and_troubleshooting/pg_flash_memory_using_guide.md).

# Flash Memory Using Guide

NAND memory is an industry-standard HW that has a limited number of write/erase cycles.

The need to erase flash should be reduced as much as possible. NAND flash devices we use in most cases have between 50,000 and 100,000 erase cycles.

During the boot, the number shown immediately above the serial number is a measure of flash wear (the MAX erase counter of Max erased/used flash block).

{% hint style="warning" %}
There is no workaround possible for a unit with excessive flash wear -- erasing a block is a physically destructive process and cannot be avoided or reversed.
{% endhint %}

User applications should use its flash (symlink to /mnt/flash/userdata/usrX) section for storing any permanent files.

Please refer to [V/OS Secure Installer](/adk-5.0-programmers-guide/readme/system_overview/pg_all_components/pg_vos_secins_guide.md) documentation for further details:

* "Introduction" and "Software Packaging" parts, for where the packages will and should be stored on the system in flash memory.
* "App packages" part for the directory explanation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/adk-5.0-programmers-guide/readme/pg_system_diagnosis_and_troubleshooting/pg_flash_memory_using_guide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
