stm3210e_eval_fsmc_nand.c File Reference

This file provides a set of functions needed to drive the NAND512W3A2 memory mounted on STM3210E-EVAL board. More...

#include "stm3210e_eval_fsmc_nand.h"
#include "stm32f10x.h"

Go to the source code of this file.

Defines

#define Bank2_NAND_ADDR   ((uint32_t)0x70000000)
#define Bank_NAND_ADDR   Bank2_NAND_ADDR
#define FSMC_Bank_NAND   FSMC_Bank2_NAND
 FSMC Bank 2.
#define ROW_ADDRESS   (Address.Page + (Address.Block + (Address.Zone * NAND_ZONE_SIZE)) * NAND_BLOCK_SIZE)

Functions

uint32_t NAND_AddressIncrement (NAND_ADDRESS *Address)
 Increment the NAND memory address.
uint32_t NAND_EraseBlock (NAND_ADDRESS Address)
 This routine erase complete block from NAND FLASH.
uint32_t NAND_GetStatus (void)
 Get the NAND operation status.
void NAND_Init (void)
 Configures the FSMC and GPIOs to interface with the NAND memory.
void NAND_ReadID (NAND_IDTypeDef *NAND_ID)
 Reads NAND memory's ID.
uint32_t NAND_ReadSmallPage (uint8_t *pBuffer, NAND_ADDRESS Address, uint32_t NumPageToRead)
 This routine is for sequential read from one or several 512 Bytes Page size.
uint32_t NAND_ReadSpareArea (uint8_t *pBuffer, NAND_ADDRESS Address, uint32_t NumSpareAreaToRead)
 This routine read the spare area information from the specified pages addresses.
uint32_t NAND_ReadStatus (void)
 Reads the NAND memory status using the Read status command.
uint32_t NAND_Reset (void)
 This routine reset the NAND FLASH.
uint32_t NAND_WriteSmallPage (uint8_t *pBuffer, NAND_ADDRESS Address, uint32_t NumPageToWrite)
 This routine is for writing one or several 512 Bytes Page size.
uint32_t NAND_WriteSpareArea (uint8_t *pBuffer, NAND_ADDRESS Address, uint32_t NumSpareAreaTowrite)
 This routine write the spare area information for the specified pages addresses.

Detailed Description

This file provides a set of functions needed to drive the NAND512W3A2 memory mounted on STM3210E-EVAL board.

Author:
MCD Application Team
Version:
V4.3.0
Date:
10/15/2010

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2010 STMicroelectronics

Definition in file stm3210e_eval_fsmc_nand.c.

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32