N25Q128A is not EEPROM, it is FLASH SPI.
It is hard to make lecture from design rules in single post, but in general:
- SPI wires designed with SPI standard (e.g. pullups 4.7k - 10k, CS pin decoupled <100n, power supply decoupled etc.)
- WP and HOLD connected to VCC or with pull-up >10k to VCC or pull-down to GND
- master device for SPI bus should be in reset state during flash programming
- all other slaves should be in not active mode (CS high)
- short wires without any additional elements
- it may be also necessary to adjust impedance for SPI bus for higher freq.
- external power supply if current exceed >100mA
Hope it helps.