/******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
* File Name : readme.txt
* Author : MCD Application Team
* Version : V2.0.1
* Date : 06/13/2008
* Description : Description of the USART Printf Example.
********************************************************************************
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
Example description
===================
This example shows how to retarget the C library printf function to the USART.
This implementation output the printf message on the Hyperterminal using USARTx.
USARTx can be USART1, USART2, USART3, UART4 or UART5; to select the USART
interface to be used uncomment the '#define USE_USARTx' line in 'platform_config.h'
file.
The USARTx is configured as follow:
- BaudRate = 115200 baud
- Word Length = 8 Bits
- One Stop Bit
- No parity
- Hardware flow control disabled (RTS and CTS signals)
- Receive and transmit enabled
Directory contents
==================
platform_config.h Evaluation board specific configuration file
stm32f10x_conf.h Library Configuration file
stm32f10x_it.h Interrupt handlers header file
stm32f10x_it.c Interrupt handlers
main.c Main program
Hardware environment
====================
This example runs on STMicroelectronics STM3210B-EVAL and STM3210E-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.
+ The USARTx signals (Rx, Tx) must be connected to a DB9 connector using a RS232
transceiver.
+ Connect a null-modem female/female RS232 cable between the DB9 connector
and PC serial port.
+ STM3210B-EVAL
- Connect a null-modem female/female RS232 cable between the DB9 connector
(CN6 for USART1, CN5 for USART2 in the STM3210B-EVAL board)
and PC serial port.
+ STM3210E-EVAL
- Connect a null-modem female/female RS232 cable between the DB9 connector
(CN12 for USART1, CN8 for USART2 in the STM3210E-EVAL board)
and PC serial port.
- Hyperterminal configuration:
- Word Length = 8 Bits
- One Stop Bit
- No parity
- BaudRate = 115200 baud
- flow control: None
How to use it
=============
In order to make the program work, you must do the following :
- Create a project and setup all your toolchain's start-up files
- Compile the directory content files and required Library files :
+ stm32f10x_lib.c
+ stm32f10x_usart.c
+ stm32f10x_gpio.c
+ stm32f10x_rcc.c
+ stm32f10x_nvic.c
+ stm32f10x_flash.c
- Link all compiled files and load your image into target memory
- Run the example
******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE******
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
STM32 CDC+HID demo 0.42.zip (311个子文件)
Project.uvguix.Administrator 172KB
Demo.axf 485KB
demo.Debug.cspy.bat 2KB
demo.BAT 2KB
keilkilll.bat 399B
demo.pbd.browse 1.1MB
stm32f10x_tim.c 107KB
stm32f10x_flash.c 61KB
stm32f10x_rcc.c 50KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 45KB
stm32f10x_can.c 44KB
stm32f10x_usart.c 37KB
system_stm32f10x.c 36KB
stm32f10x_fsmc.c 35KB
usb_core.c 31KB
stm32f10x_spi.c 30KB
stm32f10x_dma.c 29KB
usb_regs.c 29KB
stm32f10x_sdio.c 28KB
stm32f10x_gpio.c 23KB
usb_prop.c 20KB
stm32f10x_dac.c 19KB
core_cm3.c 17KB
bsp_uart.c 17KB
usb_desc.c 16KB
bsp_spi.c 16KB
stm32f10x_cec.c 11KB
stm32f10x_pwr.c 9KB
stm32f10x_rtc.c 8KB
main.c 8KB
stm32f10x_bkp.c 8KB
usb_pwr.c 8KB
delay.c 8KB
usb_istr.c 7KB
hw_config.c 7KB
misc.c 7KB
stm32f10x_exti.c 7KB
usb_int.c 6KB
stm32f10x_wwdg.c 6KB
bsp_timer.c 5KB
usb_endp.c 5KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_iwdg.c 5KB
usb_sil.c 4KB
tag_process.c 4KB
usb_mem.c 4KB
stm32f10x_crc.c 3KB
usb_init.c 3KB
bsp.c 3KB
bsp_exti.c 3KB
stm32f10x_it.c 2KB
dma.c 2KB
Project.uvguix.Calvin 167KB
usb_regs.pbi.cout 10KB
usb_core.pbi.cout 10KB
usb_init.pbi.cout 10KB
usb_sil.pbi.cout 10KB
usb_mem.pbi.cout 10KB
usb_int.pbi.cout 10KB
stm32f10x_usart.pbi.cout 10KB
stm32f10x_exti.pbi.cout 10KB
stm32f10x_gpio.pbi.cout 10KB
stm32f10x_rcc.pbi.cout 10KB
stm32f10x_tim.pbi.cout 10KB
misc.pbi.cout 10KB
system_stm32f10x.pbi.cout 10KB
hw_config.pbi.cout 10KB
usb_istr.pbi.cout 10KB
usb_endp.pbi.cout 10KB
usb_desc.pbi.cout 10KB
usb_prop.pbi.cout 10KB
usb_pwr.pbi.cout 10KB
cmt2300a_hal.pbi.cout 10KB
stm32f10x_it.pbi.cout 10KB
cmt2300a.pbi.cout 10KB
bsp_timer.pbi.cout 10KB
core_cm3.pbi.cout 10KB
sys_init.pbi.cout 10KB
radio.pbi.cout 10KB
bsp_spi.pbi.cout 10KB
Serial.pbi.cout 10KB
main.pbi.cout 10KB
delay.pbi.cout 10KB
main.crf 320KB
bsp.crf 319KB
bsp_uart.crf 306KB
bsp_spi.crf 305KB
hw_config.crf 303KB
usb_prop.crf 302KB
usb_endp.crf 299KB
usb_regs.crf 298KB
stm32f10x_it.crf 298KB
usb_core.crf 297KB
usb_istr.crf 294KB
usb_pwr.crf 292KB
stm32f10x_tim.crf 291KB
usb_int.crf 291KB
usb_desc.crf 291KB
usb_mem.crf 290KB
共 311 条
- 1
- 2
- 3
- 4
资源评论
- MorTree2020-06-03挺不错的,有用
- sust5042021-02-24例程使用的是STM32F103C8 MD的芯片,下载到blue pure中,usb无法识别。usb D+加控制,也无法正常识别。另外程序中做了大量的精简,不适合小白参考。
longor1991
- 粉丝: 10
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功