# Problems using the NOR flash for storage

**URL:** <https://forum.arduino.cc/t/problems-using-the-nor-flash-for-storage/1135931>\
**Category:** GIGA R1 WiFi\
**Created:** [June 8, 2023, 3:57pm UTC](https://forum.arduino.cc/t/problems-using-the-nor-flash-for-storage/1135931 "2023-06-08T15:57:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnsondavies](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@johnsondavies](https://forum.arduino.cc/u/johnsondavies)\
**Post date:** [June 8, 2023, 3:57pm UTC](https://forum.arduino.cc/t/problems-using-the-nor-flash-for-storage/1135931/1 "2023-06-08T15:57:40Z")

</div>

I have some routines that work with Winbond flash chips, as used on Adafruit's Express microcontroller boards, and as far as I can see the flash on the GIGA is compatible with these. However, I can't seem to get my routines to work on the GIGA.

I'm using it in single-bit mode, with the pin assignments in `pins_arduino.h`:

```arduino
#define QSPI_SO0 PD_11
#define QSPI_SO1 PD_12
#define QSPI_SO2 PE_2
#define QSPI_SO3 PF_6
#define QSPI_SCK PF_10
#define QSPI_CS PG_6

```

However, when I issue a READID command (0x90) to read the device ID, I get 0xFF rather then the correct value 0x17. Any suggestions?

---

<div class="post-metadata">

**Author:** ![johnsondavies](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@johnsondavies](https://forum.arduino.cc/u/johnsondavies)\
**Post date:** [June 15, 2023, 9:31am UTC](https://forum.arduino.cc/t/problems-using-the-nor-flash-for-storage/1135931/2 "2023-06-15T09:31:39Z")

</div>

I think I've worked out what the problem is. It seems that these pins are blocked from being accessible to a user's program, such as via Arduino commands like `pinMode()` and `digitalWrite()`.

Would it be possible to make them accessible?

---

<div class="post-metadata">

**Author:** ![johnsondavies](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@johnsondavies](https://forum.arduino.cc/u/johnsondavies)\
**Post date:** [June 16, 2023, 1:52pm UTC](https://forum.arduino.cc/t/problems-using-the-nor-flash-for-storage/1135931/4 "2023-06-16T13:52:14Z")

</div>

I've realised that user access to the QSPI Flash is a bad idea, because it is required to store the Wi-Fi firmware.

---

<div class="post-metadata">

**Author:** ![JoeHuber](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/joehuber/32/1008872_2.png) [@JoeHuber](https://forum.arduino.cc/u/JoeHuber)\
**Post date:** [February 3, 2025, 4:02pm UTC](https://forum.arduino.cc/t/problems-using-the-nor-flash-for-storage/1135931/5 "2025-02-03T16:02:25Z")

</div>

It's worth mentioning that there are lots of good ways to partition the QSPI flash to safely allow for other uses without affecting the WiFi firmware. The GIGA platform comes with Examples for displaying the current flash partitioning and another to repartition it if necessary. Another Example allows restoring the WiFi firmware.
