/**
@page CRC_usage example
@verbatim
******************** (C) COPYRIGHT 2013 STMicroelectronics *******************
* @file CRC_usage/readme.txt
* @author MCD Application Team
* @version V1.0.1
* @date 21-October-2013
* @brief Description of the CRC usage example.
******************************************************************************
*
* 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 Licens
*
******************************************************************************
@endverbatim
@par Example Description
This example shows how to use CRC (cyclic redundancy check) calculation unit to
get a CRC code of a given buffer of data, the data buffer type depends on
STM32 family support capability of 16 and 8 bits data.
@par Directory contents
- src/ : source file directory
- inc/ : header file directory
- MDK-ARM/ : Keil toolchain project directory
- EWARM/ : IAR toolchain project directory
- TrueSTUDIO/ : TrueSTUDIO toolchain project directory
- TASKING/ : TASKING toolchain project directory
- RIDE/ : RIDE toolchain project directory
@par Hardware and Software environment
- This example runs on STM32F10x Connectivity line, High-Density, Medium-Density,
High-Density Value line, XL-Density, Medium-Density Value line, Low-Density
and Low-Density Value line Devices, on STM32L1xx Ultra Low Power High-,
Medium-Density and Medium-Density Plus Devices, on STM32F2xx Devices,
on STM32F4xx Devices, on STM32F0xx Devices, on STM32F37x Devices and
on STM32F30x Devices
- This example has been tested with STMicroelectronics STM3210D-EVAL(High-Density
connectivity line), STM32L152D-EVAL(Ultra Low Power Medium-Density),
STM3220G-EVAL(STM32F2xx), STM3240G-EVAL(STM32F4xx), STM32373C-EVAL(STM32F37x)
and STM32303C-EVAL(STM32F30x) evaluation boards, MB913B(Low-Density Value line)
and MB1034B(STM32F0xx) discovery kits and can be easily tailored
to any other supported device and development board.
@par How to use it ?
In order to make the program work, you must do the following :
- EWARM
- Open the Project.eww project
- Choose your desired workspace
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Debug
- Run program: Debug->Go(F5)
- MDK-ARM
- Open the Project.uvproj project
- Choose your desired workspace
- Rebuild all files: Project->Rebuild all target files
- Load project image: Debug->Start/Stop Debug Session
- Run program: Debug->Run (F5)
- RIDE:
- Open the Project.rprj project
- In the configuration toolbar(Project->properties) select the desired
project config
- Rebuild all files: Project->build project
- Load project image: Debug->start(ctrl+D)
- Run program: Debug->Run(ctrl+F9)
- TASKING:
- Open TASKING toolchain.
- Click on File->Switch Workspace->Other and browse to TASKING
workspace directory.
- Click on File->Import, select General->'Existing Projects into Workspace'
and then click "Next".
- Browse to the TASKING workspace directory, select the desired project
- Rebuild all project files: Select the project in the "Project explorer"
window then click on Project->build project menu.
- Run program: Run->Debug (F11)
- TrueSTUDO:
- Open the TrueSTUDIO toolchain.
- Click on File->Switch Workspace->Other and browse to TrueSTUDIO
workspace directory.
- Click on File->Import, select General->'Existing Projects into Workspace'
and then click "Next".
- Browse to the TrueSTUDIO workspace directory, select the desired project
- Under Windows->Preferences->General->Workspace->Linked Resources, add
a variable path named "CurPath" which points to the folder containing
"Libraries", "Project" and "Utilities" folders.
- Rebuild all project files: Select the project in the "Project explorer"
window then click on Project->build project menu.
- Run program: Run->Debug (F11)
@note
- The STM32F3xx devices support the use of 32-bits, 16-bits and 8-bits
CRC input data. The support of the 16-bits or 8-bits data is related
to the support of the 16 or 8 polynomial degree. When selecting the
STM32F37X or STM32F30x workspace, you will be able to define from the
C/C++ preprocessor CONFIGPOLYNOME variable the polynomial degree
and from POLYNOME variable the polynomial coefficients in hexadecimal
transcription format.
- Make sure that you use the same external oscillator as in system_stm32fxxx.c
file else you have to regenerate the correspendant file using the clock
generator tool
- After entring debug mode, add the following variables Software_ComputedCRC,
ProcessTimeSoft, CRCValue and ProcessTimeHard to watch window
- The needed define symbols for each of the supported devices are already declared
in the preprocessor section, a comman preprocessor variable: USE_STDPERIPH_DRIVER
and a specific preprocessor variable for each of these supported devices:
STM32F10x_CL, STM32F10x_LD, STM32F10x_LD_VL, STM32F10x_MD, STM32F10x_MD_VL,
STM32F10x_HD, STM32F10x_HD_VL, STM32F10x_XL, STM32L1xx_HD, STM32L1xx_MD,
STM32L1xx_MDP, STM32F2xx, STM32F4xx, STM32F0xx, STM32F30x or STM32F37x
* <h3><center>© COPYRIGHT STMicroelectronics</center></h3>
*/
没有合适的资源?快使用搜索试试~ 我知道了~
Using CRC peripheral in STM32 family (AN4187).zip
共1072个文件
h:303个
c:293个
s:66个
需积分: 7 2 下载量 123 浏览量
2014-09-19
16:50:51
上传
评论
收藏 4.4MB ZIP 举报
温馨提示
Using CRC peripheral in STM32 family (AN4187).zip
资源详情
资源评论
资源推荐
收起资源包目录
Using CRC peripheral in STM32 family (AN4187).zip (1072个子文件)
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
logo.bmp 7KB
stm32f30x_tim.c 145KB
stm32f0xx_tim.c 123KB
stm32f2xx_tim.c 123KB
stm32f4xx_tim.c 123KB
stm32f37x_tim.c 121KB
stm32l1xx_tim.c 108KB
stm32f10x_tim.c 107KB
stm32f4xx_rtc.c 102KB
stm32l1xx_rtc.c 96KB
stm32f30x_adc.c 96KB
stm32f37x_rtc.c 96KB
stm32f30x_rtc.c 95KB
stm32f0xx_rtc.c 88KB
stm324xg_eval_sdio_sd.c 87KB
stm322xg_eval_sdio_sd.c 87KB
stm3210e_eval_sdio_sd.c 87KB
stm32f30x_usart.c 85KB
stm32f2xx_rtc.c 82KB
stm32f37x_usart.c 81KB
stm32f0xx_usart.c 80KB
stm32l1xx_adc.c 73KB
stm32f4xx_rcc.c 73KB
stm32f2xx_rcc.c 73KB
stm32f4xx_adc.c 67KB
stm32f2xx_adc.c 67KB
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
stm32f2xx_can.c 59KB
stm32f4xx_can.c 59KB
stm32f37x_sdadc.c 59KB
stm32f0xx_rcc.c 58KB
stm320518_eval_cec.c 58KB
stm32f37x_can.c 57KB
stm32f30x_can.c 57KB
stm32f37x_adc.c 57KB
stm32l1xx_usart.c 57KB
stm320518_eval_lcd.c 57KB
stm32373c_eval_cec.c 56KB
stm32f30x_spi.c 56KB
stm32f2xx_usart.c 55KB
stm32f4xx_usart.c 55KB
stm32f37x_i2c.c 55KB
stm32f0xx_i2c.c 55KB
stm32f30x_i2c.c 55KB
stm32100b_eval_lcd.c 54KB
stm3210b_eval_lcd.c 54KB
stm322xg_eval_audio_codec.c 53KB
stm324xg_eval_audio_codec.c 53KB
stm32f2xx_i2c.c 52KB
stm32f4xx_i2c.c 52KB
stm32f4xx_dma.c 51KB
stm32f2xx_dma.c 51KB
stm32373c_eval_audio_codec.c 51KB
stm32f4xx_spi.c 51KB
stm32f10x_rcc.c 50KB
stm32f37x_spi.c 50KB
stm32f0xx_spi.c 50KB
stm32l1xx_i2c.c 49KB
stm322xg_eval_ioe.c 49KB
stm324xg_eval_ioe.c 49KB
stm32100b_eval_cec.c 49KB
stm32100e_eval_cec.c 49KB
stm3210c_eval_ioe.c 49KB
stm32303c_eval_lcd.c 48KB
stm32373c_eval_lcd.c 48KB
fonts.c 46KB
stm32f10x_adc.c 46KB
stm32f2xx_spi.c 45KB
stm32f0xx_adc.c 45KB
stm32f10x_i2c.c 45KB
stm32100e_eval_lcd.c 45KB
stm322xg_eval_lcd.c 45KB
stm324xg_eval_lcd.c 44KB
stm32f10x_can.c 44KB
stm3210c_eval_lcd.c 43KB
stm32100e_eval_ioe.c 42KB
stm32f37x_flash.c 41KB
stm32l1xx_spi.c 41KB
stm32f2xx_fsmc.c 41KB
stm32f4xx_fsmc.c 41KB
stm3210e_eval_lcd.c 41KB
stm32f37x_dma.c 39KB
stm32f2xx_sdio.c 39KB
stm32f4xx_sdio.c 39KB
stm32f30x_flash.c 39KB
stm32f0xx_flash.c 39KB
stm32l1xx_dma.c 38KB
stm32f30x_dma.c 38KB
stm32f10x_usart.c 38KB
stm32f4xx_flash.c 37KB
stm32f2xx_flash.c 37KB
共 1072 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
jerryw8708
- 粉丝: 0
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0