EC_N76E003_GPIO_RW_SPI_Flash_V1.00.zip
(194.74 KB)
/* The procedure of SPI Flash at erase mode */
SPI_Flash_WriteEnable();
SPI_Flash_Chip_Erase();
SPI_Flash_Wait_Busy();
SPI_Flash_WriteDisable();
SPI_Flash_Erase_Verify();
/* The procedure of SPI Flash at program mode */
SPI_Flash_WriteEnable();
SPI_Flash_Program();
SPI_Flash_Wait_Busy();
SPI_Flash_WriteDisable();
/* Program verify */
SPI_Flash_Program_Verify();
printf("\nFinished the SPI Flash Demo Code and test pass!!!\n");
|