在好例子网,分享、交流、成长!
您当前所在位置:首页C/C++ 开发实例Android手机应用开发 → STM32在线升级IAP功能-全部软件_OK

STM32在线升级IAP功能-全部软件_OK

Android手机应用开发

下载此实例
  • 开发语言:C/C++
  • 实例大小:9.54M
  • 下载次数:24
  • 浏览次数:92
  • 发布时间:2022-01-01
  • 实例类别:Android手机应用开发
  • 发 布 人:irisie008
  • 文件格式:.rar
  • 所需积分:2
 相关标签: STM32 STM3 IAP stm 软件

实例介绍

【实例简介】STM32在线升级IAP功能-全部软件_OK
【实例截图】from clipboard
【核心代码】

.
├── STM32在线升级IAP功能-全部软件_OK
│   ├── keilkill.bat
│   └── 在线升级IAP功能
│       ├── IAP
│       │   ├── HARDWARE
│       │   │   └── KEY
│       │   │       ├── key.c
│       │   │       └── key.h
│       │   ├── app
│       │   │   ├── command
│       │   │   │   ├── CommandCore.c
│       │   │   │   ├── commandConfig.h
│       │   │   │   ├── commandCore.h
│       │   │   │   ├── commandFunc.c
│       │   │   │   ├── commandFunc.h
│       │   │   │   ├── commandInclude.h
│       │   │   │   ├── commandList.c
│       │   │   │   ├── commandList.h
│       │   │   │   ├── commandUtil.c
│       │   │   │   ├── commandUtil.h
│       │   │   │   └── 使用说明.txt
│       │   │   ├── iap.c
│       │   │   └── iap.h
│       │   ├── cmsis
│       │   │   ├── core_cm3.c
│       │   │   ├── core_cm3.h
│       │   │   ├── stm32f10x.h
│       │   │   ├── system_stm32f10x.c
│       │   │   └── system_stm32f10x.h
│       │   ├── driver
│       │   │   ├── debugSerial.c
│       │   │   ├── debugSerial.h
│       │   │   ├── delay.c
│       │   │   ├── delay.h
│       │   │   ├── flash.c
│       │   │   ├── flash.h
│       │   │   ├── sys.c
│       │   │   └── sys.h
│       │   ├── fwlib
│       │   │   ├── inc
│       │   │   │   ├── misc.h
│       │   │   │   ├── stm32f10x_adc.h
│       │   │   │   ├── stm32f10x_bkp.h
│       │   │   │   ├── stm32f10x_can.h
│       │   │   │   ├── stm32f10x_cec.h
│       │   │   │   ├── stm32f10x_crc.h
│       │   │   │   ├── stm32f10x_dac.h
│       │   │   │   ├── stm32f10x_dbgmcu.h
│       │   │   │   ├── stm32f10x_dma.h
│       │   │   │   ├── stm32f10x_exti.h
│       │   │   │   ├── stm32f10x_flash.h
│       │   │   │   ├── stm32f10x_fsmc.h
│       │   │   │   ├── stm32f10x_gpio.h
│       │   │   │   ├── stm32f10x_i2c.h
│       │   │   │   ├── stm32f10x_iwdg.h
│       │   │   │   ├── stm32f10x_pwr.h
│       │   │   │   ├── stm32f10x_rcc.h
│       │   │   │   ├── stm32f10x_rtc.h
│       │   │   │   ├── stm32f10x_sdio.h
│       │   │   │   ├── stm32f10x_spi.h
│       │   │   │   ├── stm32f10x_tim.h
│       │   │   │   ├── stm32f10x_usart.h
│       │   │   │   └── stm32f10x_wwdg.h
│       │   │   └── src
│       │   │       ├── misc.c
│       │   │       ├── stm32f10x_adc.c
│       │   │       ├── stm32f10x_bkp.c
│       │   │       ├── stm32f10x_can.c
│       │   │       ├── stm32f10x_cec.c
│       │   │       ├── stm32f10x_crc.c
│       │   │       ├── stm32f10x_dac.c
│       │   │       ├── stm32f10x_dbgmcu.c
│       │   │       ├── stm32f10x_dma.c
│       │   │       ├── stm32f10x_exti.c
│       │   │       ├── stm32f10x_flash.c
│       │   │       ├── stm32f10x_fsmc.c
│       │   │       ├── stm32f10x_gpio.c
│       │   │       ├── stm32f10x_i2c.c
│       │   │       ├── stm32f10x_iwdg.c
│       │   │       ├── stm32f10x_pwr.c
│       │   │       ├── stm32f10x_rcc.c
│       │   │       ├── stm32f10x_rtc.c
│       │   │       ├── stm32f10x_sdio.c
│       │   │       ├── stm32f10x_spi.c
│       │   │       ├── stm32f10x_tim.c
│       │   │       ├── stm32f10x_usart.c
│       │   │       └── stm32f10x_wwdg.c
│       │   ├── main
│       │   │   ├── main.c
│       │   │   ├── mainInclude.h
│       │   │   ├── stm32f10x_conf.h
│       │   │   ├── stm32f10x_it.c
│       │   │   └── stm32f10x_it.h
│       │   ├── project
│       │   │   ├── IAP.uvgui.36367
│       │   │   ├── IAP.uvgui.cw3746
│       │   │   ├── IAP.uvopt
│       │   │   ├── IAP.uvproj
│       │   │   ├── JLinkSettings.ini
│       │   │   ├── list
│       │   │   │   ├── IAP.map
│       │   │   │   └── startup_stm32f10x_hd.lst
│       │   │   └── output
│       │   │       ├── IAP.axf
│       │   │       ├── IAP.build_log.htm
│       │   │       ├── IAP.hex
│       │   │       ├── IAP.htm
│       │   │       ├── IAP.lnp
│       │   │       ├── IAP.sct
│       │   │       ├── IAP_iap.dep
│       │   │       ├── commandcore.crf
│       │   │       ├── commandcore.d
│       │   │       ├── commandcore.o
│       │   │       ├── commandfunc.crf
│       │   │       ├── commandfunc.d
│       │   │       ├── commandfunc.o
│       │   │       ├── commandlist.crf
│       │   │       ├── commandlist.d
│       │   │       ├── commandlist.o
│       │   │       ├── commandutil.crf
│       │   │       ├── commandutil.d
│       │   │       ├── commandutil.o
│       │   │       ├── core_cm3.crf
│       │   │       ├── core_cm3.d
│       │   │       ├── core_cm3.o
│       │   │       ├── debugserial.crf
│       │   │       ├── debugserial.d
│       │   │       ├── debugserial.o
│       │   │       ├── delay.crf
│       │   │       ├── delay.d
│       │   │       ├── delay.o
│       │   │       ├── flash.crf
│       │   │       ├── flash.d
│       │   │       ├── flash.o
│       │   │       ├── iap.crf
│       │   │       ├── iap.d
│       │   │       ├── iap.o
│       │   │       ├── key.crf
│       │   │       ├── key.d
│       │   │       ├── key.o
│       │   │       ├── main.crf
│       │   │       ├── main.d
│       │   │       ├── main.o
│       │   │       ├── misc.crf
│       │   │       ├── misc.d
│       │   │       ├── misc.o
│       │   │       ├── startup_stm32f10x_hd.d
│       │   │       ├── startup_stm32f10x_hd.o
│       │   │       ├── stm32f10x_bkp.crf
│       │   │       ├── stm32f10x_bkp.d
│       │   │       ├── stm32f10x_bkp.o
│       │   │       ├── stm32f10x_flash.crf
│       │   │       ├── stm32f10x_flash.d
│       │   │       ├── stm32f10x_flash.o
│       │   │       ├── stm32f10x_gpio.crf
│       │   │       ├── stm32f10x_gpio.d
│       │   │       ├── stm32f10x_gpio.o
│       │   │       ├── stm32f10x_it.crf
│       │   │       ├── stm32f10x_it.d
│       │   │       ├── stm32f10x_it.o
│       │   │       ├── stm32f10x_pwr.crf
│       │   │       ├── stm32f10x_pwr.d
│       │   │       ├── stm32f10x_pwr.o
│       │   │       ├── stm32f10x_rcc.crf
│       │   │       ├── stm32f10x_rcc.d
│       │   │       ├── stm32f10x_rcc.o
│       │   │       ├── stm32f10x_usart.crf
│       │   │       ├── stm32f10x_usart.d
│       │   │       ├── stm32f10x_usart.o
│       │   │       ├── sys.crf
│       │   │       ├── sys.d
│       │   │       ├── sys.o
│       │   │       ├── system_stm32f10x.crf
│       │   │       ├── system_stm32f10x.d
│       │   │       └── system_stm32f10x.o
│       │   └── startup
│       │       └── startup_stm32f10x_hd.s
│       ├── Template_Lib_LED_APP
│       │   ├── CORE
│       │   │   ├── core_cm3.c
│       │   │   ├── core_cm3.h
│       │   │   └── startup_stm32f10x_hd.s
│       │   ├── HARDWARE
│       │   │   └── LED
│       │   │       ├── led.c
│       │   │       └── led.h
│       │   ├── OBJ
│       │   │   ├── ExtDll.iex
│       │   │   ├── Template.axf
│       │   │   ├── Template.bin
│       │   │   ├── Template.build_log.htm
│       │   │   ├── Template.hex
│       │   │   ├── Template.htm
│       │   │   ├── Template.lnp
│       │   │   ├── Template.sct
│       │   │   ├── Template_Template.dep
│       │   │   ├── Template_sct.Bak
│       │   │   ├── core_cm3.crf
│       │   │   ├── core_cm3.d
│       │   │   ├── core_cm3.o
│       │   │   ├── delay.crf
│       │   │   ├── delay.d
│       │   │   ├── delay.o
│       │   │   ├── led.crf
│       │   │   ├── led.d
│       │   │   ├── led.o
│       │   │   ├── main.crf
│       │   │   ├── main.d
│       │   │   ├── main.o
│       │   │   ├── misc.crf
│       │   │   ├── misc.d
│       │   │   ├── misc.o
│       │   │   ├── startup_stm32f10x_hd.d
│       │   │   ├── startup_stm32f10x_hd.o
│       │   │   ├── stm32f10x_adc.crf
│       │   │   ├── stm32f10x_adc.d
│       │   │   ├── stm32f10x_adc.o
│       │   │   ├── stm32f10x_bkp.crf
│       │   │   ├── stm32f10x_bkp.d
│       │   │   ├── stm32f10x_bkp.o
│       │   │   ├── stm32f10x_can.crf
│       │   │   ├── stm32f10x_can.d
│       │   │   ├── stm32f10x_can.o
│       │   │   ├── stm32f10x_cec.crf
│       │   │   ├── stm32f10x_cec.d
│       │   │   ├── stm32f10x_cec.o
│       │   │   ├── stm32f10x_crc.crf
│       │   │   ├── stm32f10x_crc.d
│       │   │   ├── stm32f10x_crc.o
│       │   │   ├── stm32f10x_dac.crf
│       │   │   ├── stm32f10x_dac.d
│       │   │   ├── stm32f10x_dac.o
│       │   │   ├── stm32f10x_dbgmcu.crf
│       │   │   ├── stm32f10x_dbgmcu.d
│       │   │   ├── stm32f10x_dbgmcu.o
│       │   │   ├── stm32f10x_dma.crf
│       │   │   ├── stm32f10x_dma.d
│       │   │   ├── stm32f10x_dma.o
│       │   │   ├── stm32f10x_exti.crf
│       │   │   ├── stm32f10x_exti.d
│       │   │   ├── stm32f10x_exti.o
│       │   │   ├── stm32f10x_flash.crf
│       │   │   ├── stm32f10x_flash.d
│       │   │   ├── stm32f10x_flash.o
│       │   │   ├── stm32f10x_fsmc.crf
│       │   │   ├── stm32f10x_fsmc.d
│       │   │   ├── stm32f10x_fsmc.o
│       │   │   ├── stm32f10x_gpio.crf
│       │   │   ├── stm32f10x_gpio.d
│       │   │   ├── stm32f10x_gpio.o
│       │   │   ├── stm32f10x_i2c.crf
│       │   │   ├── stm32f10x_i2c.d
│       │   │   ├── stm32f10x_i2c.o
│       │   │   ├── stm32f10x_it.crf
│       │   │   ├── stm32f10x_it.d
│       │   │   ├── stm32f10x_it.o
│       │   │   ├── stm32f10x_iwdg.crf
│       │   │   ├── stm32f10x_iwdg.d
│       │   │   ├── stm32f10x_iwdg.o
│       │   │   ├── stm32f10x_pwr.crf
│       │   │   ├── stm32f10x_pwr.d
│       │   │   ├── stm32f10x_pwr.o
│       │   │   ├── stm32f10x_rcc.crf
│       │   │   ├── stm32f10x_rcc.d
│       │   │   ├── stm32f10x_rcc.o
│       │   │   ├── stm32f10x_rtc.crf
│       │   │   ├── stm32f10x_rtc.d
│       │   │   ├── stm32f10x_rtc.o
│       │   │   ├── stm32f10x_sdio.crf
│       │   │   ├── stm32f10x_sdio.d
│       │   │   ├── stm32f10x_sdio.o
│       │   │   ├── stm32f10x_spi.crf
│       │   │   ├── stm32f10x_spi.d
│       │   │   ├── stm32f10x_spi.o
│       │   │   ├── stm32f10x_tim.crf
│       │   │   ├── stm32f10x_tim.d
│       │   │   ├── stm32f10x_tim.o
│       │   │   ├── stm32f10x_usart.crf
│       │   │   ├── stm32f10x_usart.d
│       │   │   ├── stm32f10x_usart.o
│       │   │   ├── stm32f10x_wwdg.crf
│       │   │   ├── stm32f10x_wwdg.d
│       │   │   ├── stm32f10x_wwdg.o
│       │   │   ├── sys.crf
│       │   │   ├── sys.d
│       │   │   ├── sys.o
│       │   │   ├── system_stm32f10x.crf
│       │   │   ├── system_stm32f10x.d
│       │   │   ├── system_stm32f10x.o
│       │   │   ├── usart.crf
│       │   │   ├── usart.d
│       │   │   └── usart.o
│       │   ├── STM32F10x_FWLIB
│       │   │   ├── inc
│       │   │   │   ├── misc.h
│       │   │   │   ├── stm32f10x_adc.h
│       │   │   │   ├── stm32f10x_bkp.h
│       │   │   │   ├── stm32f10x_can.h
│       │   │   │   ├── stm32f10x_cec.h
│       │   │   │   ├── stm32f10x_crc.h
│       │   │   │   ├── stm32f10x_dac.h
│       │   │   │   ├── stm32f10x_dbgmcu.h
│       │   │   │   ├── stm32f10x_dma.h
│       │   │   │   ├── stm32f10x_exti.h
│       │   │   │   ├── stm32f10x_flash.h
│       │   │   │   ├── stm32f10x_fsmc.h
│       │   │   │   ├── stm32f10x_gpio.h
│       │   │   │   ├── stm32f10x_i2c.h
│       │   │   │   ├── stm32f10x_iwdg.h
│       │   │   │   ├── stm32f10x_pwr.h
│       │   │   │   ├── stm32f10x_rcc.h
│       │   │   │   ├── stm32f10x_rtc.h
│       │   │   │   ├── stm32f10x_sdio.h
│       │   │   │   ├── stm32f10x_spi.h
│       │   │   │   ├── stm32f10x_tim.h
│       │   │   │   ├── stm32f10x_usart.h
│       │   │   │   └── stm32f10x_wwdg.h
│       │   │   └── src
│       │   │       ├── misc.c
│       │   │       ├── stm32f10x_adc.c
│       │   │       ├── stm32f10x_bkp.c
│       │   │       ├── stm32f10x_can.c
│       │   │       ├── stm32f10x_cec.c
│       │   │       ├── stm32f10x_crc.c
│       │   │       ├── stm32f10x_dac.c
│       │   │       ├── stm32f10x_dbgmcu.c
│       │   │       ├── stm32f10x_dma.c
│       │   │       ├── stm32f10x_exti.c
│       │   │       ├── stm32f10x_flash.c
│       │   │       ├── stm32f10x_fsmc.c
│       │   │       ├── stm32f10x_gpio.c
│       │   │       ├── stm32f10x_i2c.c
│       │   │       ├── stm32f10x_iwdg.c
│       │   │       ├── stm32f10x_pwr.c
│       │   │       ├── stm32f10x_rcc.c
│       │   │       ├── stm32f10x_rtc.c
│       │   │       ├── stm32f10x_sdio.c
│       │   │       ├── stm32f10x_spi.c
│       │   │       ├── stm32f10x_tim.c
│       │   │       ├── stm32f10x_usart.c
│       │   │       └── stm32f10x_wwdg.c
│       │   ├── SYSTEM
│       │   │   ├── delay
│       │   │   │   ├── delay.c
│       │   │   │   └── delay.h
│       │   │   ├── sys
│       │   │   │   ├── sys.c
│       │   │   │   └── sys.h
│       │   │   └── usart
│       │   │       ├── usart.c
│       │   │       └── usart.h
│       │   └── USER
│       │       ├── DebugConfig
│       │       │   └── Template_STM32F103ZE_1.0.0.dbgconf
│       │       ├── Listings
│       │       │   ├── Template.map
│       │       │   └── startup_stm32f10x_hd.lst
│       │       ├── Objects
│       │       ├── Template.uvguix.36367
│       │       ├── Template.uvguix.Administrator
│       │       ├── Template.uvguix.JACK
│       │       ├── Template.uvoptx
│       │       ├── Template.uvprojx
│       │       ├── main.c
│       │       ├── stm32f10x.h
│       │       ├── stm32f10x_conf.h
│       │       ├── stm32f10x_it.c
│       │       ├── stm32f10x_it.h
│       │       ├── system_stm32f10x.c
│       │       └── system_stm32f10x.h
│       ├── app
│       │   ├── app
│       │   │   ├── command
│       │   │   │   ├── CommandCore.c
│       │   │   │   ├── commandConfig.h
│       │   │   │   ├── commandCore.h
│       │   │   │   ├── commandFunc.c
│       │   │   │   ├── commandFunc.h
│       │   │   │   ├── commandInclude.h
│       │   │   │   ├── commandList.c
│       │   │   │   ├── commandList.h
│       │   │   │   ├── commandUtil.c
│       │   │   │   ├── commandUtil.h
│       │   │   │   └── 使用说明.txt
│       │   │   ├── iap.c
│       │   │   └── iap.h
│       │   ├── cmsis
│       │   │   ├── core_cm3.c
│       │   │   ├── core_cm3.h
│       │   │   ├── stm32f10x.h
│       │   │   ├── system_stm32f10x.c
│       │   │   └── system_stm32f10x.h
│       │   ├── device
│       │   │   ├── led.c
│       │   │   └── led.h
│       │   ├── driver
│       │   │   ├── debugSerial.c
│       │   │   ├── debugSerial.h
│       │   │   ├── delay.c
│       │   │   ├── delay.h
│       │   │   ├── flash.c
│       │   │   ├── flash.h
│       │   │   ├── sys.c
│       │   │   └── sys.h
│       │   ├── fwlib
│       │   │   ├── inc
│       │   │   │   ├── misc.h
│       │   │   │   ├── stm32f10x_adc.h
│       │   │   │   ├── stm32f10x_bkp.h
│       │   │   │   ├── stm32f10x_can.h
│       │   │   │   ├── stm32f10x_cec.h
│       │   │   │   ├── stm32f10x_crc.h
│       │   │   │   ├── stm32f10x_dac.h
│       │   │   │   ├── stm32f10x_dbgmcu.h
│       │   │   │   ├── stm32f10x_dma.h
│       │   │   │   ├── stm32f10x_exti.h
│       │   │   │   ├── stm32f10x_flash.h
│       │   │   │   ├── stm32f10x_fsmc.h
│       │   │   │   ├── stm32f10x_gpio.h
│       │   │   │   ├── stm32f10x_i2c.h
│       │   │   │   ├── stm32f10x_iwdg.h
│       │   │   │   ├── stm32f10x_pwr.h
│       │   │   │   ├── stm32f10x_rcc.h
│       │   │   │   ├── stm32f10x_rtc.h
│       │   │   │   ├── stm32f10x_sdio.h
│       │   │   │   ├── stm32f10x_spi.h
│       │   │   │   ├── stm32f10x_tim.h
│       │   │   │   ├── stm32f10x_usart.h
│       │   │   │   └── stm32f10x_wwdg.h
│       │   │   └── src
│       │   │       ├── misc.c
│       │   │       ├── stm32f10x_adc.c
│       │   │       ├── stm32f10x_bkp.c
│       │   │       ├── stm32f10x_can.c
│       │   │       ├── stm32f10x_cec.c
│       │   │       ├── stm32f10x_crc.c
│       │   │       ├── stm32f10x_dac.c
│       │   │       ├── stm32f10x_dbgmcu.c
│       │   │       ├── stm32f10x_dma.c
│       │   │       ├── stm32f10x_exti.c
│       │   │       ├── stm32f10x_flash.c
│       │   │       ├── stm32f10x_fsmc.c
│       │   │       ├── stm32f10x_gpio.c
│       │   │       ├── stm32f10x_i2c.c
│       │   │       ├── stm32f10x_iwdg.c
│       │   │       ├── stm32f10x_pwr.c
│       │   │       ├── stm32f10x_rcc.c
│       │   │       ├── stm32f10x_rtc.c
│       │   │       ├── stm32f10x_sdio.c
│       │   │       ├── stm32f10x_spi.c
│       │   │       ├── stm32f10x_tim.c
│       │   │       ├── stm32f10x_usart.c
│       │   │       └── stm32f10x_wwdg.c
│       │   ├── main
│       │   │   ├── main.c
│       │   │   ├── mainInclude.h
│       │   │   ├── stm32f10x_conf.h
│       │   │   ├── stm32f10x_it.c
│       │   │   └── stm32f10x_it.h
│       │   ├── project
│       │   │   ├── APP.bin
│       │   │   ├── APP.uvgui.36367
│       │   │   ├── APP.uvgui.cw3746
│       │   │   ├── APP.uvopt
│       │   │   ├── APP.uvproj
│       │   │   ├── JLinkSettings.ini
│       │   │   ├── list
│       │   │   │   ├── APP.map
│       │   │   │   └── startup_stm32f10x_hd.lst
│       │   │   └── output
│       │   │       ├── APP.axf
│       │   │       ├── APP.build_log.htm
│       │   │       ├── APP.htm
│       │   │       ├── APP.lnp
│       │   │       ├── APP.sct
│       │   │       ├── APP_app.dep
│       │   │       ├── commandcore.crf
│       │   │       ├── commandcore.d
│       │   │       ├── commandcore.o
│       │   │       ├── commandfunc.crf
│       │   │       ├── commandfunc.d
│       │   │       ├── commandfunc.o
│       │   │       ├── commandlist.crf
│       │   │       ├── commandlist.d
│       │   │       ├── commandlist.o
│       │   │       ├── commandutil.crf
│       │   │       ├── commandutil.d
│       │   │       ├── commandutil.o
│       │   │       ├── core_cm3.crf
│       │   │       ├── core_cm3.d
│       │   │       ├── core_cm3.o
│       │   │       ├── debugserial.crf
│       │   │       ├── debugserial.d
│       │   │       ├── debugserial.o
│       │   │       ├── delay.crf
│       │   │       ├── delay.d
│       │   │       ├── delay.o
│       │   │       ├── flash.crf
│       │   │       ├── flash.d
│       │   │       ├── flash.o
│       │   │       ├── iap.crf
│       │   │       ├── iap.d
│       │   │       ├── iap.o
│       │   │       ├── led.crf
│       │   │       ├── led.d
│       │   │       ├── led.o
│       │   │       ├── main.crf
│       │   │       ├── main.d
│       │   │       ├── main.o
│       │   │       ├── misc.crf
│       │   │       ├── misc.d
│       │   │       ├── misc.o
│       │   │       ├── startup_stm32f10x_hd.d
│       │   │       ├── startup_stm32f10x_hd.o
│       │   │       ├── stm32f10x_flash.crf
│       │   │       ├── stm32f10x_flash.d
│       │   │       ├── stm32f10x_flash.o
│       │   │       ├── stm32f10x_gpio.crf
│       │   │       ├── stm32f10x_gpio.d
│       │   │       ├── stm32f10x_gpio.o
│       │   │       ├── stm32f10x_it.crf
│       │   │       ├── stm32f10x_it.d
│       │   │       ├── stm32f10x_it.o
│       │   │       ├── stm32f10x_pwr.crf
│       │   │       ├── stm32f10x_pwr.d
│       │   │       ├── stm32f10x_pwr.o
│       │   │       ├── stm32f10x_rcc.crf
│       │   │       ├── stm32f10x_rcc.d
│       │   │       ├── stm32f10x_rcc.o
│       │   │       ├── stm32f10x_usart.crf
│       │   │       ├── stm32f10x_usart.d
│       │   │       ├── stm32f10x_usart.o
│       │   │       ├── sys.crf
│       │   │       ├── sys.d
│       │   │       ├── sys.o
│       │   │       ├── system_stm32f10x.crf
│       │   │       ├── system_stm32f10x.d
│       │   │       └── system_stm32f10x.o
│       │   └── startup
│       │       └── startup_stm32f10x_hd.s
│       └── result
│           ├── IAP-WIN7.exe
│           ├── IAP-XP.exe
│           ├── MSN.she
│           ├── PCOMM.DLL
│           └── SkinH.dll
└── 好例子网_STM32在线升级IAP功能-全部软件_OK.rar

48 directories, 499 files



#include "iap.h"


#define FLASH_APP1_ADDR 0x08002000  //µÚÒ»¸öÓ¦ÓóÌÐòÆðʼµØÖ·(´æ·ÅÔÚFLASH)
//±£ÁôµÄ¿Õ¼äΪIAPʹÓÃ

u16 iapbuf[1024] = {0}; //ÓÃÓÚ»º´æÊý¾ÝµÄÊý×é
u16 receiveDataCur = 0; //µ±Ç°iapbufferÖÐÒѾ­Ìî³äµÄÊý¾Ý³¤¶È,Ò»´ÎÌî³äÂúÁËÖ®ºóдÈëflash²¢ÇåÁã
u32 addrCur = FLASH_APP1_ADDR; //µ±Ç°ÏµÍ³Ð´ÈëµØÖ·,ÿ´ÎдÈëÖ®ºóµØÖ·Ôö¼Ó2048

//¿ªÊ¼ÏÂÔØ
void iap_down_s(void)
{
u16 i = 0;
u16 temp = 0;
u16 receiveCount;
printf("begin,wait data download\r\n");
receiveMode = 1;//´®¿Ú½øÈëÏÂÔؽÓÊÕÊý¾Ýģʽ
while(1)
{
//Ñ­»·½ÓÊÕÊý¾Ý,ÿ´Î±ØÐëÒª·¢128¸öÊý¾ÝÏÂÀ´,Èç¹ûûÓÐ128,˵Ã÷ÕâÊÇ×îºóÒ»°üÊý¾Ý
//½ÓÊÕµ½Ò»°üÊý¾ÝÖ®ºó,·µ»ØÒ»¸öСÊýµã,·¢ËÍÍê³É,ϵͳ±à³ÌÍê³ÉÖ®ºó·µ»ØÒ»¸öiap_over
if(serial_Buffer_Length & 0x8000)
{
receiveCount = (u8)(serial_Buffer_Length&0x00ff);
if(receiveCount == 128)//Âú×ãÒ»°ü,Ìî³ä²¢²é¿´ÊÇ·ñÓÐÁË1024×Ö½Ú,ÓÐÁËдÈëÉÁ´æ
{
for(i = 0; i < receiveCount; i =2)
{
//Êý¾Ý°ËλÈÚºÏΪ16λ
temp = (((u16)serial_Buffer[i 1])<<8) ((u16)serial_Buffer[i]);
iapbuf[receiveDataCur] = temp;
receiveDataCur ;//Íê³ÉÖ®ºóreceiveDataCur ;
}
receiveExpectCount = 0;//Çå³ýÆÚÍû½ÓÊÕģʽ
serial_Buffer_Length = 0;//Çå³ý´®¿ÚÂú±êÖ¾
printf(".");//ÿ´Î½ÓÊÜÒ»´ÎÊý¾Ý´òÒ»¸öµã 
//´ËʱÐèÒª¼ì²âreceiveDataCurµÄÖµ,ÒªÊÇ·ÅÂúÁË,¾ÍÐèҪдÈë
if(receiveDataCur == 1024)
{
//дÈëflashÖÐ
STMFLASH_Write(addrCur,iapbuf,1024);
//printf("\r\nwrite addr %x,length 1024\r\n",addrCur);
addrCur = 2048;//µØÖ· 2048
//дÍêÖ®ºóreceiveDataCurÒªÇåÁãµÈ´ýÏÂÒ»´Î´«Êä
receiveDataCur = 0;
}
else //ÓпÉÄÜ×îºóÒ»°üÓÐ128¸öÊý¾Ýµ«ÊÇ×îÖÕûÓÐ2048¸öÊý¾Ý,´ËʱÀ©Õ¹Ò»¸öÖ¸ÁîÓÃÓÚÍê³É×îºóÒ»¸öµÄдÈë
{

}
//»¹Ã»·ÅÂú,µÈ´ýÏÂÒ»´ÎÊý¾Ý¹ýÀ´
}
else //²»Âú×ãÒ»°ü,˵Ã÷Êý¾Ý´«ËÍÕâÊÇ×îºóÒ»°ü,дÈëÉÁ´æ
{
//ûÓÐÒ»°üÒ²Òª´«Ë͵½»º´æÖÐ
for(i = 0; i < receiveCount; i =2)
{
//Êý¾Ý°ËλÈÚºÏΪ16λ
temp = (((u16)serial_Buffer[i 1])<<8) ((u16)serial_Buffer[i]);
iapbuf[receiveDataCur] = temp;
receiveDataCur ;//Íê³ÉÖ®ºóreceiveDataCur ;
}
receiveExpectCount = 0;//Çå³ýÆÚÍû½ÓÊÕģʽ
serial_Buffer_Length = 0;//Çå³ý´®¿ÚÂú±êÖ¾
printf(".");//ÿ´Î½ÓÊÜÒ»´ÎÊý¾Ý´òÒ»¸öµã 
//Ö®ºó¾ÍÒª½«ÕâÊý¾ÝдÈëµ½ÉÁ´æÖÐ
STMFLASH_Write(addrCur,iapbuf,receiveDataCur);//½«×îºóµÄһЩÄÚÈÝ×Ö½Úд½øÈ¥.
//printf("\r\nwrite addr %x,length %d\r\n",addrCur,receiveDataCur);
//дÍêÖ®ºóÒª°ÑµØÖ·»Ö¸´µ½Ô­À´µÄλÖÃ
addrCur = FLASH_APP1_ADDR;
receiveDataCur = 0;
//дÍêÖ®ºóÒªÍ˳öÏÂÔØÑ­»·²¢¸æËßÉÏλ»ú,ÒѾ­ÏÂÔØÍêÁË
printf("download over\r\n");
//ͬʱ,Ò²ÒªÍ˳öÏÂÔØÑ­»·Ä£Ê½
receiveMode = 0;
return;
}
}
}
}
//×îºóÒ»°üÓÐ128¸öÊý¾Ýµ«ÊÇ×îÖÕûÓÐ2048¸öÊý¾Ý
//ÊÕµ½Õâ¸öÖ¸Áî¼ì²âreceiveDataCurºÍaddrCurµÄÖµ,
//Íê³É×îºóµÄдÈë
void iap_over_s(void)
{
//Õâ¸öʱºò,ÒÀÈ»ÔÚ´®¿ÚÏÂÔØģʽ
if(receiveDataCur != 0)
{
STMFLASH_Write(addrCur,iapbuf,receiveDataCur);//½«×îºóµÄһЩÄÚÈÝ×Ö½Úд½øÈ¥.
//printf("write addr %x,length %d",addrCur,receiveDataCur);
addrCur = FLASH_APP1_ADDR;
receiveDataCur = 0;
//ͬʱ,Ò²ÒªÍ˳öÏÂÔØģʽ
receiveMode = 0;
}
printf("ok\r\n");
}


typedef  void (*iapfun)(void); //¶¨ÒåÒ»¸öº¯ÊýÀàÐ͵IJÎÊý.
iapfun jump2app;

//ÉèÖÃÕ»¶¥µØÖ·
//addr:Õ»¶¥µØÖ·
__asm void MSR_MSP(u32 addr) 
{
    MSR MSP, r0 //set Main Stack value
    BX r14
}

//Ìøתµ½Ó¦ÓóÌÐò¶Î
//appxaddr:Óû§´úÂëÆðʼµØÖ·.
void iap_load_app(u32 appxaddr)
{
if(((*(vu32*)appxaddr)&0x2FFE0000)==0x20000000) //¼ì²éÕ»¶¥µØÖ·ÊÇ·ñºÏ·¨.0x20000000ÊÇsramµÄÆðʼµØÖ·,Ò²ÊdzÌÐòµÄÕ»¶¥µØÖ·

printf("ok\r\n");
Delay_Ms(10);
jump2app=(iapfun)*(vu32*)(appxaddr 4); //Óû§´úÂëÇøµÚ¶þ¸ö×ÖΪ³ÌÐò¿ªÊ¼µØÖ·(¸´Î»µØÖ·)
MSR_MSP(*(vu32*)appxaddr); //³õʼ»¯APP¶ÑÕ»Ö¸Õë(Óû§´úÂëÇøµÄµÚÒ»¸ö×ÖÓÃÓÚ´æ·ÅÕ»¶¥µØÖ·)
jump2app(); //Ìøתµ½APP.
}
else
{
printf("program in flash is error\r\n");
}
}

//Ìøתµ½appÇøÓòÔËÐÐ
void iap_jump_app_s(void)
{
iap_load_app(FLASH_APP1_ADDR);//Ìøתµ½appµÄ¸´Î»ÏòÁ¿µØÖ·
}



//ÉèÖÃapp¹Ì»¯ÅäÖÃ
void iap_set_flag_s(void)
{
Test_Write(APP_CONFIG_ADDR,APP_CONFIG_SET_VALUE);
printf("ok\r\n");
}

//Çå³ýapp¹Ì»¯ÅäÖÃ
void iap_clear_flag(void)
{
Test_Write(APP_CONFIG_ADDR,APP_CONFIG_CLEAR_VALUE);
printf("ok\r\n");
}

标签: STM32 STM3 IAP stm 软件

实例下载地址

STM32在线升级IAP功能-全部软件_OK

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警