FSMC_NAND
[STM32F10x_StdPeriph_Examples]

Defines

#define BUFFER_SIZE   0x400
#define NAND_ST_DeviceID   0x76
#define NAND_ST_MakerID   0x20

Functions

void BusFault_Handler (void)
 This function handles Bus Fault exception.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
void Fill_Buffer (uint8_t *pBuffer, uint16_t BufferLenght, uint32_t Offset)
 Function name : Fill_Buffer.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
int main (void)
 Main program.
void MemManage_Handler (void)
 This function handles Memory Manage exception.
void NMI_Handler (void)
 This function handles NMI exception.
void PendSV_Handler (void)
 This function handles PendSV_Handler exception.
void SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Handler (void)
 This function handles SysTick Handler.
void UsageFault_Handler (void)
 This function handles Usage Fault exception.

Variables

uint32_t j = 0
NAND_IDTypeDef NAND_ID
uint32_t PageNumber = 2
uint8_t RxBuffer [BUFFER_SIZE]
uint32_t status = 0
uint8_t TxBuffer [BUFFER_SIZE]
NAND_ADDRESS WriteReadAddr
uint32_t WriteReadStatus = 0

Define Documentation

#define BUFFER_SIZE   0x400
#define NAND_ST_DeviceID   0x76

Definition at line 37 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/main.c.

Referenced by main().

#define NAND_ST_MakerID   0x20

Definition at line 36 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/main.c.

Referenced by main().


Function Documentation

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 85 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/stm32f10x_it.c.

void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 120 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/stm32f10x_it.c.

void Fill_Buffer ( uint8_t *  pBuffer,
uint16_t  BufferLenght,
uint32_t  Offset 
)

Function name : Fill_Buffer.

Fill the buffer

Parameters:
pBuffer,: pointer on the Buffer to fill
BufferSize,: size of the buffer to fill
Offset,: first value to fill on the Buffer

Definition at line 141 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/main.c.

Referenced by main().

void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 59 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/stm32f10x_it.c.

int main ( void   ) 

Main program.

Parameters:
None 
Return values:
None 

< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f10x_xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f10x.c file

Definition at line 57 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/main.c.

References NAND_ADDRESS::Block, BUFFER_SIZE, NAND_IDTypeDef::Device_ID, ENABLE, Fill_Buffer(), j, LED1, LED2, LED3, NAND_IDTypeDef::Maker_ID, NAND_EraseBlock(), NAND_Init(), NAND_ReadID(), NAND_ReadSmallPage(), NAND_ST_DeviceID, NAND_ST_MakerID, NAND_WriteSmallPage(), NAND_ADDRESS::Page, PageNumber, RCC_AHBPeriph_FSMC, RCC_AHBPeriphClockCmd(), RxBuffer, status, STM_EVAL_LEDInit(), STM_EVAL_LEDOn(), TxBuffer, WriteReadStatus, and NAND_ADDRESS::Zone.

void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 72 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 50 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/stm32f10x_it.c.

void PendSV_Handler ( void   ) 

This function handles PendSV_Handler exception.

Parameters:
None 
Return values:
None 

Definition at line 129 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/stm32f10x_it.c.

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 111 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/stm32f10x_it.c.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 138 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/stm32f10x_it.c.

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 98 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/stm32f10x_it.c.


Variable Documentation

uint32_t j = 0
uint32_t PageNumber = 2

Definition at line 44 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/main.c.

Referenced by main().

uint8_t RxBuffer[BUFFER_SIZE]

Definition at line 43 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/main.c.

Referenced by main(), and USARTx_IRQHandler().

uint32_t status = 0
uint8_t TxBuffer[BUFFER_SIZE]

Definition at line 43 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/main.c.

Referenced by main(), and USARTx_IRQHandler().

uint32_t WriteReadStatus = 0

Definition at line 44 of file STM32F10x_StdPeriph_Examples/FSMC/NAND/main.c.

Referenced by main().

STM32F10x Standard Peripherals Library: Footer

 

 

 

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