/**
******************************************************************************
* @file readme.txt
* @author MCD Application Team
* @version V4.0.0
* @date 21-January-2013
* @brief Description of the binary directory.
******************************************************************************
* @attention
*
* <h2><center>© COPYRIGHT 2013 STMicroelectronics</center></h2>
*
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.st.com/software_license_agreement_liberty_v2
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************
*/
Description
===================
This directory contains a set of sources files that build the application to be
loaded into Flash memory using device firmware upgrade (DFU).
To build such application, some special configuration has to be preformed:
1. Set the program load address at 0x08003000, using your toolchain linker file
2. Relocate the vector table at address 0x08003000, using the "NVIC_SetVectorTable"
function.
The SysTick example provided within the STM32F10xxx,STM32L152xxx, STM32F30xxx and STM32F37xxx Standard
Peripheral examples is used as illustration.
This example configures the SysTick to generate a time base equal to 1 ms.
The system clock is set to 72 MHz for STM32F10xxx, STM32F30xxx and STM32F37xxx devices and to 32MHz for
STM32L15xxx devices, the SysTick is clocked by the AHB clock (HCLK)
A "Delay" function is implemented based on the SysTick end-of-count event.
Four LEDs are toggled with a timing defined by the Delay function.
Directory contents
==================
+ binary_template\EWARM: This folder contains a preconfigured project file
that produces a binary image of SysTick example to be
loaded with DFU.
+ binary_template\RIDE: This folder contains a preconfigured project file
that produces a binary image of SysTick example to be
loaded with DFU.
+ binary_template\MDK-ARM: This folder contains a preconfigured project file
that produces a binary image of SysTick example to be
loaded with DFU.
+ binary_template\TASKING: This folder contains a preconfigured project file
that produces a binary image of SysTick example to be
loaded with DFU.
+ \TrueSTUDIO: This folder contains a preconfigured project file
that produces a binary image of SysTick example to be
loaded with DFU.
+ binary_template\inc: contains the binary_template firmware header files
- stm32f10x_conf.h Library Configuration file for STM32F10xxx devices
- stm32_it.h Header for stm32_it.c
- stm32l15xx_conf.h Library Configuration file for STM32L15xxx devices
- stm32f37x_conf.h Library Configuration file for STM32F37xxx devices
- stm32f30x_conf.h Library Configuration file for STM32F30xxx devices
- main.h Header for main.c
+ binary_template\src: contains the binary_template firmware source files
- main.c Main program
- stm32_it.c Interrupt handlers for STM32F10xxx,STM32L15xxx, STM32F30xxx and STM32F37xxx devices
Hardware environment
====================
This example runs on STMicroelectronics STM3210B-EVAL, STM3210E-EVAL, STM32L152-EVAL,STM32F303C_EVAL
,STM32F373C_EVAL and STM32L152D-EVAL evaluation boards and can be easily tailored to any other hardware.
To select the STMicroelectronics evaluation board used to run the example, uncomment
the corresponding line in platform_config.h file.
+ STM3210B-EVAL
- Use LD1, LD2, LD3 and LD4 leds connected respectively to PC.06, PC.07, PC.08
and PC.09 pins
+ STM3210E-EVAL
- Use LD1, LD2, LD3 and LD4 leds connected respectively to PF.06, PF.07, PF.08
and PF.09 pins
+ STM32L152-EVAL
- Use LD1, LD2, LD3 and LD4 leds connected respectively to PD.00, PD.01, PD.02
and PC.12 pins
+ STM32L152D-EVAL
- Use LD1, LD2, LD3 and LD4 leds connected respectively to PD.03, PD.07, PG.14
and PG.15 pins
+ STM32F373C_EVAL
- Use LD1, LD2, LD3 and LD4 leds connected respectively to PC.0, PC.01, PC.02
and PC.03 pins
+ STM32F303C_EVAL
- Use LD1, LD2, LD3 and LD4 leds connected respectively to PE.08, PE.09, PE.10
and PE.11 pins
How to use it
=============
In order to load the SysTick example with the DFU, you must do the following:
+ EWARM
- Open the SysTick.eww workspace
- In the workspace toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 Medium-density devices
- STM3210E-EVAL: to configure the project for STM32 High-density devices
- STM3210E-EVAL_XL: to configure the project for STM32 XL-density devices
- STM3210E-EVAL_XL: to configure the project for STM32 Medium-Density Low-Power devices
- STM32L152-EVAL: to configure the project for STM32 Low Power Medium-density devices
- STM32L152D-EVAL: to configure the project for STM32 High-Density Low-Power devices
- STM32373C-EVAL: to configure the project for STM32F37xxx devices
- STM32303C-EVAL: to configure the project for STM32F30xxx devices
- Rebuild all files: Project->Rebuild all
- Go to "Utilities\Binary" and run "hextobin.bat"
- A binary file "SysTick.bin" will be generated under "STM3210E-EVAL\Exe" or
"STM3210B-EVAL\Exe" or "STM32L152-EVAL\Exe" or "STM32L152D-EVAL\Exe" or "STM32373C-EVAL\Exe" or "STM32373C-EVAL\Exe" folder depending
on configuration you selected.
+ MDK-ARM
- Open the SysTick.Uv2 project
- In the build toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 Medium-density devices
- STM3210E-EVAL: to configure the project for STM32 High-density devices
- STM3210E-EVAL_XL: to configure the project for STM32 XL-density devices
- STM32L152-EVAL: to configure the project for STM32 Low Power Medium-density devices
- STM32L152D-EVAL: to configure the project for STM32 High-Density Low-Power devices
- STM32373C-EVAL: to configure the project for STM32F37xxx devices
- STM32303C-EVAL: to configure the project for STM32F30xxx devices
- Rebuild all files: Project->Rebuild all target files
- Go to "Utilities\Binary" and run "axftobin.bat"
- A binary file "STM3210B-EVAL_SysTick.bin" or "STM3210E-EVAL_SysTick.bin"
or "STM32L152-EVAL_SysTick.bin" or "STM32L152D-EVAL_SysTick.bin" or "STM32373C-EVAL_SysTick.bin"
or "STM32303C-EVAL_SysTick.bin" will be generated under "\Obj" folder.
+ RIDE
- Open the SysTick.rprj project
- In the configuration toolbar(Project->properties) select the project config:
- STM3210B-EVAL: to configure the project for STM32 Medium-density devices
- STM3210E-EVAL: to configure the project for STM32 High-density devices
- STM3210E-EVAL_XL: to configure the project for STM32 XL-density devices
- STM32L152-EVAL: to configure the project for STM32 Medium-Density Low-Power devices
- STM32L152D-EVAL: to configure the project for STM
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
STSW-STM32121.zip_Audio_Speaker_hope8ds_stm32_usb (1745个子文件)
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
hextobin.bat 2KB
TrueSTUDIO_elf2bin.bat 2KB
axftobin.bat 2KB
logo.bmp 7KB
stm32f30x_tim.c 145KB
stm32f37x_tim.c 121KB
stm32l152d_eval_glass_lcd.c 109KB
stm32l1xx_tim.c 108KB
stm32f10x_tim.c 107KB
stm32l1xx_rtc.c 96KB
stm32f37x_rtc.c 96KB
stm32f30x_rtc.c 95KB
stm32f30x_adc.c 91KB
stm32l152d_eval_sdio_sd.c 87KB
stm3210e_eval_sdio_sd.c 87KB
stm32f30x_usart.c 85KB
stm32f37x_usart.c 81KB
stm32l1xx_adc.c 73KB
stm32l1xx_rcc.c 66KB
stm32f30x_rcc.c 65KB
stm32f37x_rcc.c 64KB
stm32f10x_flash.c 61KB
stm32l1xx_flash.c 60KB
stm32303c_eval_audio_codec.c 59KB
stm32f37x_sdadc.c 59KB
stm32f37x_can.c 57KB
stm32f30x_can.c 57KB
stm32f37x_adc.c 57KB
stm32l1xx_usart.c 57KB
stm32373c_eval_cec.c 56KB
stm32f30x_spi.c 56KB
stm32f37x_i2c.c 55KB
i2s_codec.c 55KB
stm32f30x_i2c.c 55KB
stm32l152d_eval_lcd.c 54KB
stm3210b_eval_lcd.c 54KB
stm32l152d_eval_audio_codec.c 51KB
stm32373c_eval_audio_codec.c 51KB
stm32f10x_rcc.c 50KB
stm32f37x_spi.c 50KB
stm32303c_eval_lcd.c 50KB
stm32l1xx_i2c.c 49KB
stm32373c_eval_lcd.c 48KB
stm32l152_eval_lcd.c 48KB
stm3210e_eval_lcd.c 47KB
fonts.c 46KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 45KB
stm32f10x_can.c 44KB
stm32f37x_flash.c 41KB
stm32l1xx_spi.c 41KB
stm32f37x_dma.c 39KB
stm32f30x_flash.c 39KB
stm32l1xx_dma.c 38KB
stm32f30x_dma.c 38KB
stm32f10x_usart.c 38KB
stm32l1xx_sdio.c 37KB
system_stm32f10x.c 36KB
system_stm32f10x.c 36KB
stm32f10x_fsmc.c 35KB
stm32l1xx_pwr.c 33KB
stm32l152d_eval.c 31KB
usb_core.c 31KB
stm32f10x_spi.c 30KB
stm32f10x_dma.c 29KB
system_stm32f10x.c 29KB
system_stm32f10x.c 29KB
system_stm32f10x.c 29KB
system_stm32f10x.c 29KB
system_stm32f10x.c 29KB
system_stm32f10x.c 29KB
system_stm32f10x.c 29KB
system_stm32f10x.c 29KB
stm32l152d_eval_i2c_tsensor.c 29KB
stm32l152_eval_i2c_tsensor.c 29KB
stm3210e_eval_i2c_tsensor.c 29KB
stm3210b_eval_i2c_tsensor.c 29KB
usb_regs.c 29KB
stm32f10x_sdio.c 28KB
stm32l152_eval_glass_lcd.c 28KB
stm32f37x_dac.c 28KB
stm32l152d_eval_i2c_ee.c 28KB
stm32l152_eval_i2c_ee.c 28KB
hw_config.c 26KB
stm32l152_eval.c 26KB
stm32l152_eval_spi_sd.c 25KB
stm32f30x_dac.c 25KB
stm3210b_eval_spi_sd.c 25KB
stm32303c_eval.c 25KB
stm32f37x_cec.c 25KB
stm32373c_eval_spi_sd.c 25KB
stm32303c_eval_spi_sd.c 25KB
hw_config.c 25KB
stm32l1xx_dac.c 25KB
stm32303c_eval_i2c_tsensor.c 24KB
stm32f30x_comp.c 24KB
stm32l1xx_lcd.c 24KB
stm32373c_eval_i2c_ee.c 23KB
共 1745 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18
资源评论
朱moyimi
- 粉丝: 65
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功