ARM series STM32F103RCT6 development

Publisher:星光小狐狸Latest update time:2020-01-13 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

A brief introduction to the STM32F1XX series. It can have RTOS, a real-time operating system, or it can be used directly as a single-chip microcomputer.

  • Functions include adc, dac, bkp, can, cec, crc, dbgmcu, dma, exti, flash, fsmc, gpio, i2c, iwdg, pwr, rcc, rtc, sdio, spi, tim, usart, wwdg, misc

  • The functions of each interface of a specific chip vary little from board to board, after all, they must comply with chip specifications.

  • The development environment is basically WINDOWS (unix-like gcc), and the development tools are MDK-ARM (keil), EWARM (IAR), HiTOP, GCC (RIDE), TrueSTUDIO..

    The development IDE integrates the startup file, and gcc also integrates the startup file, which can be found in the library.
    Release_Notes.html
    ..STM32F10x_StdPeriph_Lib_V3.5.0LibrariesCMSISCM3DeviceSupportSTSTM32F10xstartup

  • Debugging jlink It should be noted that sometimes, jlink debugging will pop up an error and cannot download debug. Restart it and it will work.



1. Peripheral library functions

Contents..STM32F10x_StdPeriph_Lib_V3.5.0LibrariesSTM32F10x_StdPeriph_DriverDownloadwww.st.com
Product->Microcontrollers


 You can see a picture on the web page, select the model of your chip, for example, mine is STM32 F1 -> then select the specific model, STM32 F103RCT6

 http://www.st.com/web/en/catalog/mmc/SC1169/SS1031/LN1565/PF164486

 There are a lot of things, just search the firmware library to find them

 More to discover on your own


 Found this

 How to migrate from the STM32F10xxx firmware library V2.0.3 to the STM32F10xxx standard peripheral library V3.0.0 (AN2953)

 http://www.st.com/web/en/catalog/tools/PF257859


 Download http://www.st.com/st-web-ui/static/active/en/st_prod_software_internet/resource/technical/software/firmware/stsw-stm32023.zip

    

 Different products have slightly different versions. The above version is V3.3


The following is a brief introduction to the differences between the CAN function libraries of V2.0 and v3.x.

STM32F10x_StdPeriph_Driver Libraries stm32f10x_rcc.h
CAN on APB1_peripheral peripheral bus

  • v2.0 has only one CAN bus (different naming from v3.x) This project uses the V2.0 library and uses this naming. There is no CAN_TypeDef* CANx in the stm32f10x_can.h parameter
    #define RCC_APB1Periph_CAN ((uint32_t)0x02000000)

  • v3.0 has only one CAN bus (stm32f10x_can.h parameter contains CAN_TypeDef* CANx).
    This version and later use the CMSIS standard
    #define RCC_APB1Periph_CAN1 ((uint32_t)0x02000000)

  • v3.3, v3.5 have two CAN buses (stm32f10x_can.h parameter with CAN_TypeDef* CANx)
    #define RCC_APB1Periph_CAN1 ((uint32_t)0x02000000)

#define RCC_APB1Periph_CAN2 ((uint32_t)0x04000000)

  • In addition, some implementations in stm32f10x_can.c have been added, deleted, and modified. You have to discover them slowly by yourself (beyondCompare)

Detailed version changes are in (STM32F10x_StdPeriph_Lib_V3.5.0.zip, stm32f10x_stdperiph_lib_v3.0.0.zip)

..Release_Notes.html
..LibrariesSTM32F10x_StdPeriph_DriverRelease_Notes.html

Introduction


It is worth noting that the new version uses the CMSIS standard and has document management doxygen, which allows you to view the API through html files.

http://www.arm.com/zh/products/processors/cortex-m/cortex-microcontroller-software-interface-standard.php


Reference address:ARM series STM32F103RCT6 development

Previous article:ARM register analysis
Next article:Using Valgrind on ARM Linux

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号