---
title: P2 Edge 16 MB Flash Reader and Explorer Utility
description: "[![](/qbi/P2 Edge 16 MB Flash Reader And Explorer Utility - Parallax_files/Flash-Reader-Spin.jpg)](/qbi/P2 Edge 16 MB Flash Reader And Explorer Utility - Parallax_files/Flash-Reader-Spin.jpg)![](/qbi/P2 Edge 16 MB Flash Reader And Explorer Utility - Parallax_files/Flash-Reader-P2EC-1.jpg) ##### Description The P2 Edge (#P2-EC) has a 16MB…"
url: "https://obex.parallax.com/docs/quick-bytes/propeller-2/p2-edge-16-mb-flash-reader-and-explorer-utility/"
updated: "2026-09-29"
category: Propeller 2
---

# P2 Edge 16 MB Flash Reader and Explorer Utility

[![](/qbi/P2 Edge 16 MB Flash Reader And Explorer Utility - Parallax_files/Flash-Reader-Spin.jpg)](/qbi/P2 Edge 16 MB Flash Reader And Explorer Utility - Parallax_files/Flash-Reader-Spin.jpg)![](/qbi/P2 Edge 16 MB Flash Reader And Explorer Utility - Parallax_files/Flash-Reader-P2EC-1.jpg)

##### Description

The P2 Edge (#P2-EC) has a 16MB Flash memory (Winbond part W25Q128JV) with a Serial Peripheral Interface (SPI) to the Propeller 2. The first 512K bytes is used for the user’s bootable application and the remaining ~15.5MB may be used for data. The timing with the SPI Flash is fast and deterministic, unlike SD cards.

This Quick Byte is supported by a “Spin2 for Beginners” video from JonnyMac, linked below under Additional Resources.

Three example programs demonstrate reading the contents of the 16MB Flash:

- 02a_jm_flash_reader-Archive (Spin2)
- 02b_jm_flash_reader-Archive (PASM)
- 02c_jm_flash_reader-Archive (smart pins)

The 16MB Flash array is organized into 65,536 programmable pages of 256 bytes each. Up to 256 bytes can be programmed at a time. Pages can be erased in blocks of 16 (4KB) or 256 (64KB). Flash blocks must be erased before they can be programmed.

Load any of the reader programs to the P2 Edge’s Flash and open Parallax Serial Terminal. Each Flash has an internal 64-bit serial number which may be used to identify products designed with the P2 Edge Module.

![](/qbi/P2 Edge 16 MB Flash Reader And Explorer Utility - Parallax_files/Flash-Reader-768x655.jpg)

The Flash Explorer program (03_jm_flash_explorer-Archive) can write to the Flash starting at $10_0000. This code example has no write-leveling to spread the erase/write cycles across all blocks. Erasure resets bytes to FF. Modifications can be made on this program as desired, but be aware of the ability to overwrite the bootable application in the first 512KB.

![](/qbi/P2 Edge 16 MB Flash Reader And Explorer Utility - Parallax_files/Flash-Explorer-768x655.jpg)

##### Parts Used

- [P2 Edge Module](https://www.parallax.com/product/p2-edge-module/)
- [P2 Edge Breadboard](https://www.parallax.com/product/p2-edge-module-breadboard/)

##### Source Code

- [02a_jm_flash_reader-Archive (Spin2)](/qbi/downloads/02a_jm_flash_reader-Archive-Date-2022.05.23-Time-05.44.zip)
- [02b_jm_flash_reader-Archive (PASM)](/qbi/downloads/02b_jm_flash_reader-Archive-Date-2022.05.23-Time-05.45.zip)
- [02c_jm_flash_reader-Archive (smart pins)](/qbi/downloads/02c_jm_flash_reader-Archive-Date-2022.05.23-Time-05.45.zip)
- [03_jm_flash_explorer-Archive](/qbi/downloads/03_jm_flash_explorer-Archive-Date-2022.05.23-Time-05.45.zip)
- [03_jm_flash_explorer-Archive v2](/qbi/downloads/03_jm_flash_explorer-Archive.zip)
- [03_jm_flash_explorer-Archive v3](/qbi/downloads/03_jm_flash_explorer-Archive.zip-13744.zip)

##### Programming Language

- [Spin 2](https://www.parallax.com/propeller-2/get-started/spin2/)
- [PASM2](https://docs.google.com/spreadsheets/d/1_vJk-Ad569UMwgXTKTdfJkHYHpc1rZwxB-DcIiAZNdk/edit?usp=sharing)

##### Tools and Operating System

- [Propeller Tool for Windows](https://www.parallax.com/propeller-2/programming-tools/)

##### Additional Resources

- [Propeller 2 Spin Documentation](https://docs.google.com/document/d/16qVkmA6Co5fUNKJHF6pBfGfDupuRwDtf-wyieh_fbqw/edit)
- [Spin2 for Beginners with JonnyMac (YouTube Video)](https://youtu.be/OsyOLoyODKI?t=5307)
- [Windbond W25Q128JV Datasheet](/qbi/P2 Edge 16 MB Flash Reader And Explorer Utility - Parallax_files/w25q128jv revf 03272018 plus.pdf)

##### Document Author

- Ken Gracey

##### Source Code Author

- Jon McPhalen
