FSMC_OneNAND
[STM32F10x_StdPeriph_Examples]

Defines

#define BUFFER_SIZE   0x200
#define WRITE_READ_ADDR   0x800

Functions

void BusFault_Handler (void)
 This function handles Bus Fault exception.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
void Fill_Buffer (uint16_t *pBuffer, uint16_t BufferLenght, uint32_t Offset)
 Fill the 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 index = 0
OneNAND_IDTypeDef OneNand_ID
uint16_t OneNand_SAMSUNG_ID [2] = {0x00EC, 0x0025}
uint16_t RxBuffer [BUFFER_SIZE]
uint16_t TxBuffer [BUFFER_SIZE]
uint16_t WriteReadStatus = 0

Define Documentation

#define BUFFER_SIZE   0x200
#define WRITE_READ_ADDR   0x800

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/OneNAND/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/OneNAND/stm32f10x_it.c.

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

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
Return values:
None 

Definition at line 128 of file STM32F10x_StdPeriph_Examples/FSMC/OneNAND/main.c.

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/OneNAND/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 55 of file STM32F10x_StdPeriph_Examples/FSMC/OneNAND/main.c.

References BUFFER_SIZE, OneNAND_IDTypeDef::Device_ID, Fill_Buffer(), index, LED1, LED2, LED3, OneNAND_IDTypeDef::Manufacturer_ID, OneNAND_AsynchronousRead(), OneNAND_EraseBlock(), OneNAND_Init(), OneNAND_ReadID(), OneNand_SAMSUNG_ID, OneNAND_WriteBuffer(), RxBuffer, STM_EVAL_LEDInit(), STM_EVAL_LEDToggle(), TxBuffer, WRITE_READ_ADDR, and WriteReadStatus.

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/OneNAND/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/OneNAND/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/OneNAND/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/OneNAND/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/OneNAND/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/OneNAND/stm32f10x_it.c.


Variable Documentation

uint32_t index = 0
uint16_t OneNand_SAMSUNG_ID[2] = {0x00EC, 0x0025}

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

Referenced by main().

uint16_t RxBuffer[BUFFER_SIZE]
uint16_t TxBuffer[BUFFER_SIZE]
uint16_t WriteReadStatus = 0
STM32F10x Standard Peripherals Library: Footer

 

 

 

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