STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros
n25q128a.h File Reference

This file contains all the description of the N25Q128A QSPI memory. More...

Go to the source code of this file.

Macros

#define N25Q128A_FLASH_SIZE   0x1000000 /* 128 MBits => 16MBytes */
 N25Q128A Configuration. More...
 
#define N25Q128A_SECTOR_SIZE   0x10000 /* 256 sectors of 64KBytes */
 
#define N25Q128A_SUBSECTOR_SIZE   0x1000 /* 4096 subsectors of 4kBytes */
 
#define N25Q128A_PAGE_SIZE   0x100 /* 65536 pages of 256 bytes */
 
#define N25Q128A_DUMMY_CYCLES_READ   8
 
#define N25Q128A_DUMMY_CYCLES_READ_QUAD   10
 
#define N25Q128A_BULK_ERASE_MAX_TIME   250000
 
#define N25Q128A_SECTOR_ERASE_MAX_TIME   3000
 
#define N25Q128A_SUBSECTOR_ERASE_MAX_TIME   800
 
#define RESET_ENABLE_CMD   0x66
 N25Q128A Commands. More...
 
#define RESET_MEMORY_CMD   0x99
 
#define READ_ID_CMD   0x9E
 
#define READ_ID_CMD2   0x9F
 
#define MULTIPLE_IO_READ_ID_CMD   0xAF
 
#define READ_SERIAL_FLASH_DISCO_PARAM_CMD   0x5A
 
#define READ_CMD   0x03
 
#define FAST_READ_CMD   0x0B
 
#define DUAL_OUT_FAST_READ_CMD   0x3B
 
#define DUAL_INOUT_FAST_READ_CMD   0xBB
 
#define QUAD_OUT_FAST_READ_CMD   0x6B
 
#define QUAD_INOUT_FAST_READ_CMD   0xEB
 
#define WRITE_ENABLE_CMD   0x06
 
#define WRITE_DISABLE_CMD   0x04
 
#define READ_STATUS_REG_CMD   0x05
 
#define WRITE_STATUS_REG_CMD   0x01
 
#define READ_LOCK_REG_CMD   0xE8
 
#define WRITE_LOCK_REG_CMD   0xE5
 
#define READ_FLAG_STATUS_REG_CMD   0x70
 
#define CLEAR_FLAG_STATUS_REG_CMD   0x50
 
#define READ_NONVOL_CFG_REG_CMD   0xB5
 
#define WRITE_NONVOL_CFG_REG_CMD   0xB1
 
#define READ_VOL_CFG_REG_CMD   0x85
 
#define WRITE_VOL_CFG_REG_CMD   0x81
 
#define READ_ENHANCED_VOL_CFG_REG_CMD   0x65
 
#define WRITE_ENHANCED_VOL_CFG_REG_CMD   0x61
 
#define PAGE_PROG_CMD   0x02
 
#define DUAL_IN_FAST_PROG_CMD   0xA2
 
#define EXT_DUAL_IN_FAST_PROG_CMD   0xD2
 
#define QUAD_IN_FAST_PROG_CMD   0x32
 
#define EXT_QUAD_IN_FAST_PROG_CMD   0x12
 
#define SUBSECTOR_ERASE_CMD   0x20
 
#define SECTOR_ERASE_CMD   0xD8
 
#define BULK_ERASE_CMD   0xC7
 
#define PROG_ERASE_RESUME_CMD   0x7A
 
#define PROG_ERASE_SUSPEND_CMD   0x75
 
#define READ_OTP_ARRAY_CMD   0x4B
 
#define PROG_OTP_ARRAY_CMD   0x42
 
#define N25Q128A_SR_WIP   ((uint8_t)0x01)
 N25Q128A Registers. More...
 
#define N25Q128A_SR_WREN   ((uint8_t)0x02)
 
#define N25Q128A_SR_BLOCKPR   ((uint8_t)0x5C)
 
#define N25Q128A_SR_PRBOTTOM   ((uint8_t)0x20)
 
#define N25Q128A_SR_SRWREN   ((uint8_t)0x80)
 
#define N25Q128A_NVCR_LOCK   ((uint16_t)0x0001)
 
#define N25Q128A_NVCR_DUAL   ((uint16_t)0x0004)
 
#define N25Q128A_NVCR_QUAB   ((uint16_t)0x0008)
 
#define N25Q128A_NVCR_RH   ((uint16_t)0x0010)
 
#define N25Q128A_NVCR_ODS   ((uint16_t)0x01C0)
 
#define N25Q128A_NVCR_XIP   ((uint16_t)0x0E00)
 
#define N25Q128A_NVCR_NB_DUMMY   ((uint16_t)0xF000)
 
#define N25Q128A_VCR_WRAP   ((uint8_t)0x03)
 
#define N25Q128A_VCR_XIP   ((uint8_t)0x08)
 
#define N25Q128A_VCR_NB_DUMMY   ((uint8_t)0xF0)
 
#define N25Q128A_EVCR_ODS   ((uint8_t)0x07)
 
#define N25Q128A_EVCR_VPPA   ((uint8_t)0x08)
 
#define N25Q128A_EVCR_RH   ((uint8_t)0x10)
 
#define N25Q128A_EVCR_DUAL   ((uint8_t)0x40)
 
#define N25Q128A_EVCR_QUAD   ((uint8_t)0x80)
 
#define N25Q128A_FSR_PRERR   ((uint8_t)0x02)
 
#define N25Q128A_FSR_PGSUS   ((uint8_t)0x04)
 
#define N25Q128A_FSR_VPPERR   ((uint8_t)0x08)
 
#define N25Q128A_FSR_PGERR   ((uint8_t)0x10)
 
#define N25Q128A_FSR_ERERR   ((uint8_t)0x20)
 
#define N25Q128A_FSR_ERSUS   ((uint8_t)0x40)
 
#define N25Q128A_FSR_READY   ((uint8_t)0x80)
 

Detailed Description

This file contains all the description of the N25Q128A QSPI memory.

Author
MCD Application Team
Version
V1.0.0
Date
29-May-2015
Attention

© COPYRIGHT(c) 2015 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file n25q128a.h.