union {
unsigned int wfcount;
unsigned char wfbuf[4];
}RD_FLASH;
unsigned char rdbuf[4096],wbuf[4096];
#define TEST_FLASH_ADDR 0x6A6000
/********************************************main function**************************************
**************************************************************************************
********************************************************************************************/
int main()
{
unsigned int i;
unsigned char rbuf[2]=" ";
NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x4000);
BSP_Init();
STM_EVAL_LEDOff(LED3);
printf("\r\n Test flash start... \r\n" );
SPI_FLASH_BufferRead(rdbuf,TEST_FLASH_ADDR, 4096);
if((rdbuf[0] == 0xff)&&(rdbuf[1] == 0xff)
&&(rdbuf[2] == 0xff)&