资源简介

STM32F072使用USB功能升级应用代码,应用程序从0x08003000开始运行。同时还有对应上位机的安装包和使用说明。同样适用于042.

资源截图

代码片段和文件信息

/**********************************************************************
 *函数说明:STM32F072 DFU TEST @ APP1 : LD6闪烁闪烁速度更快
 *@author:Jeremy.he@foxmail.com
 *@date:2014-11-18
 *********************************************************************/


#include “LED.h“
#include “UART.h“
#include “stm32f0xx.h“

#define APPLICATION_ADDRESS     ((uint32_t)0x08003000)

void IAP_Set()
{
   uint32_t i = 0;

/* Relocate by software the vector table to the internal SRAM at 0x20000000 ***/  

  /* Copy the vector table from the Flash (mapped at the base of the application
     load address 0x08003000) to the base address of the SRAM at 0x20000000. */       
  for(i = 0; i < 48; i++)
  {
    *((uint32_t*)(0x20000000 + (i << 2)))=*(__IO uint32_t*)(APPLICATION_ADDRESS + (i<<2));
}
  /* Enable the SYSCFG peripheral clock*/ 
  RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG ENABLE); 

/* Remap SRAM at 0x00000000 */
  SYSCFG_MemoryRemapConfig(SYSCFG_MemoryRemap_SRAM);




}

int main()

IAP_Set();
  LED_PC7_Init(); 

while(1)
{
Toggle_LED6();
}
return 0;
}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     140252  2014-06-16 14:26  STM32F0x2_USB_DFU_Project\STM32F072_APP1\Current_Test_by_Stop_Mode.axf

     文件       1185  2014-06-16 14:33  STM32F0x2_USB_DFU_Project\STM32F072_APP1\Current_Test_by_Stop_Mode.build_log.htm

     文件      34249  2014-06-16 14:26  STM32F0x2_USB_DFU_Project\STM32F072_APP1\Current_Test_by_Stop_Mode.htm

     文件        478  2014-06-16 14:26  STM32F0x2_USB_DFU_Project\STM32F072_APP1\Current_Test_by_Stop_Mode.lnp

     文件      61969  2014-06-16 14:26  STM32F0x2_USB_DFU_Project\STM32F072_APP1\Current_Test_by_Stop_Mode.map

     文件        479  2014-06-12 17:09  STM32F0x2_USB_DFU_Project\STM32F072_APP1\Current_Test_by_Stop_Mode.sct

     文件      74086  2014-06-13 18:56  STM32F0x2_USB_DFU_Project\STM32F072_APP1\Current_Test_by_Stop_Mode.uvgui.lenovo

     文件      74087  2014-06-13 18:11  STM32F0x2_USB_DFU_Project\STM32F072_APP1\Current_Test_by_Stop_Mode.uvgui_lenovo.bak

     文件      12078  2014-06-13 18:56  STM32F0x2_USB_DFU_Project\STM32F072_APP1\Current_Test_by_Stop_Mode.uvopt

     文件      30769  2014-06-16 14:26  STM32F0x2_USB_DFU_Project\STM32F072_APP1\Current_Test_by_Stop_Mode_Target 1.dep

     文件      12078  2014-06-13 18:11  STM32F0x2_USB_DFU_Project\STM32F072_APP1\Current_Test_by_Stop_Mode_uvopt.bak

     文件      15133  2014-04-21 10:56  STM32F0x2_USB_DFU_Project\STM32F072_APP1\Current_Test_by_Stop_Mode_uvproj.bak

     文件         19  2014-06-25 14:53  STM32F0x2_USB_DFU_Project\STM32F072_APP1\ExtDll.iex

     文件     150904  2014-06-25 11:34  STM32F0x2_USB_DFU_Project\STM32F072_APP1\KEY_PC13_Test.axf

     文件       1067  2014-06-25 14:26  STM32F0x2_USB_DFU_Project\STM32F072_APP1\KEY_PC13_Test.build_log.htm

     文件      38822  2014-06-25 11:34  STM32F0x2_USB_DFU_Project\STM32F072_APP1\KEY_PC13_Test.htm

     文件        423  2014-06-25 11:34  STM32F0x2_USB_DFU_Project\STM32F072_APP1\KEY_PC13_Test.lnp

     文件      64472  2014-06-25 11:34  STM32F0x2_USB_DFU_Project\STM32F072_APP1\KEY_PC13_Test.map

     文件        479  2014-06-25 11:34  STM32F0x2_USB_DFU_Project\STM32F072_APP1\KEY_PC13_Test.sct

     文件     140538  2014-06-16 15:40  STM32F0x2_USB_DFU_Project\STM32F072_APP1\KEY_PC13_Test.uvgui.lenovo

     文件      13297  2014-06-23 15:57  STM32F0x2_USB_DFU_Project\STM32F072_APP1\KEY_PC13_Test.uvopt

     文件        479  2014-06-25 10:47  STM32F0x2_USB_DFU_Project\STM32F072_APP1\KEY_PC13_Test_sct.Bak

     文件      30757  2014-06-16 15:38  STM32F0x2_USB_DFU_Project\STM32F072_APP1\KEY_PC13_Test_Target 1.dep

     文件      13259  2014-06-16 15:40  STM32F0x2_USB_DFU_Project\STM32F072_APP1\KEY_PC13_Test_uvopt.bak

     文件      17735  2014-06-12 18:28  STM32F0x2_USB_DFU_Project\STM32F072_APP1\KEY_PC13_Test_uvproj.bak

     文件     277701  2014-11-19 11:42  STM32F0x2_USB_DFU_Project\STM32F072_APP1\led.crf

     文件       2641  2014-11-19 11:42  STM32F0x2_USB_DFU_Project\STM32F072_APP1\led.d

     文件     310236  2014-11-19 11:42  STM32F0x2_USB_DFU_Project\STM32F072_APP1\led.o

     文件       1127  2014-11-18 19:54  STM32F0x2_USB_DFU_Project\STM32F072_APP1\main.c

     文件     277744  2014-11-19 11:41  STM32F0x2_USB_DFU_Project\STM32F072_APP1\main.crf

............此处省略1250个文件信息

评论

共有 条评论