Skip to main content
ACHAB.1
Visitor II
April 6, 2021
Question

Write enable QSPI Macronix MX25L51245G

  • April 6, 2021
  • 0 replies
  • 1007 views

Hi ,

I come to you to ask for help with Macronix MX25L51245G interfaced with STM32L476RG. My QSPI is set to 32MHz.

Here what I do :

  • QSPI Reset (0x66 - 0x99)
  • SPI Reset (0x66 - 0x99)
  • Wait for WIP = 0 (SPI)
  • Enter in QPI (0x35) 1 line
  • Wait for QUADEN = 1 and WIP = 0 in QSPI
  • QSPI Read Status register (0x05)
  • Write enable in QSPI (0x06)
  • Wait for WEL = 1 and it never appends (register always return 0x64) in QSPI

If this has already happened to someone, I would like your feedback. Thanks in advance Axoul

My code : https://git.axoul.v6.navy/axoul/logger-stm32/src/master/Core/Src/qspi_drv.c

This topic has been closed for replies.