9Flash_EEPROM

所属分类:嵌入式/单片机/硬件编程
开发工具:Others
文件大小:507KB
下载次数:96
上传日期:2009-09-17 16:21:19
上 传 者linew
说明:  Flash_EEPROM STM32 FLASH 测试例程
(Flash_EEPROM STM32 FLASH test routine)

文件列表:
9 Flash_EEPROM\Flash EEPROM\main.c (6853, 2008-08-31)
9 Flash_EEPROM\Flash EEPROM\platform_config.h (2202, 2008-08-31)
9 Flash_EEPROM\Flash EEPROM\SetUsart.c (5430, 2008-08-31)
9 Flash_EEPROM\Flash EEPROM\stm32f10x_conf.h (6447, 2008-08-31)
9 Flash_EEPROM\Flash EEPROM\stm32f10x_it.c (29349, 2008-08-31)
9 Flash_EEPROM\Flash EEPROM\stm32f10x_it.h (3973, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\cortexm3_macro.s (10439, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\List\cortexm3_macro.lst (27104, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\List\STM3210E-EVAL.map (87930, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\List\stm32f10x_vector.lst (41988, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\cortexm3_macro.o (2504, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\main.crf (148648, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\main.d (1682, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\main.o (179392, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\setusart.crf (152303, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\setusart.d (1816, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\setusart.o (179416, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\setusart.__i (268, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\STM3210E-EVAL.axf (118696, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\STM3210E-EVAL.hex (10467, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\STM3210E-EVAL.htm (35140, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\STM3210E-EVAL.lnp (527, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\STM3210E-EVAL.plg (207, 2009-04-20)
9 Flash_EEPROM\project\RVMDK\Obj\STM3210E-EVAL.sct (479, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\STM3210E-EVAL.tra (1694, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\STM3210E-EVAL_sct.Bak (539, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\stm32f10x_flash.crf (38409, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\stm32f10x_flash.d (409, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\stm32f10x_flash.o (71800, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\stm32f10x_flash.__i (302, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\stm32f10x_gpio.crf (42650, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\stm32f10x_gpio.d (467, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\stm32f10x_gpio.o (69420, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\stm32f10x_gpio.__i (298, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\stm32f10x_it.crf (150363, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\stm32f10x_it.d (1927, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\stm32f10x_it.o (262688, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\stm32f10x_nvic.crf (36541, 2008-08-31)
9 Flash_EEPROM\project\RVMDK\Obj\stm32f10x_nvic.d (401, 2008-08-31)
... ...

连接好串口助手: 下载程序,按复位运行 在上位机会收到写到EEPROM的里数据 *******************************************************************************/ Example description =================== This example provides a description of how to program the STM32F10x FLASH. After Reset, the Flash memory Program/Erase Controller is locked. To unlock it, the FLASH_Unlock function is used. Before programming the desired addresses, an erase operation is performed using the flash erase page feature. The erase procedure starts with the calculation of the number of pages to be used. Then all these pages will be erased one by one by calling FLASH_ErasePage function. Once this operation is finished, the programming operation will be performed by using the FLASH_ProgramWord function. The written data is then checked and the result of the programming operation is stored into the MemoryProgramStatus variable.

近期下载者

相关文件


收藏者