当前位置:网站首页>New project template of punctual atom F103 based on firmware library
New project template of punctual atom F103 based on firmware library
2022-06-21 14:46:00 【Metro ghost gyro】
The compiler version should be selected correctly ,
1, The original MDK edition 5.15, The use of V5 compiler ; new MDK5.26 It uses V6 compiler ;
2, stay 5.26 Under the version ,ARM Compiler choice V5.06 update 6(build 750) When , Need to put “Run-Time Environment” Remove unnecessary references in , Otherwise, a large number of errors will be reported ;
3, If ARM Compiler Choose to use “Use default compiler version 6” Some references will be automatically checked , But because of the “CMSIS” Version is old , stay V6 Unable to compile under , Compile failed .

open stm32f10x_conf.h The file was found to contain stm32f10x Header files of peripherals on the chip . That is to say, they are using stm32f10x When a peripheral of the chip , It is not only necessary to add the driver file of this peripheral to the project , Also change the header file of the peripheral “ Include to ”stm32f10x_conf.h in .
system_stm32f10x.c Contained in the SystemInit()– System initialization , This function is run before startup .
stay startup_stm32f10x_hd.s
One 、 The function of the startup file
( About the role of the startup code , As mentioned earlier , Here's another word )
(1) Initialize stack pointer SP;
(2) Initializer counter pointer PC;
(3) Setup heap 、 The size of the stack ;
(4) Set the entry address of the exception vector table ;
(5) Configure external SRAM As data storage ( This is configured by the user , General development boards have no external SRAM);
(6) Set up C Branch entry of Library __main( Finally used to call main function );
(7) stay 3.5 Version of the startup file also calls in system_stm32f10x.c In the document SystemIni() Function to configure the system clock .
Reset_Handler PROC
EXPORT Reset_Handler [WEAK]
IMPORT __main
IMPORT SystemInit
LDR R0, =SystemInit
BLX R0
LDR R0, =__main
BX R0
ENDP
边栏推荐
- Viewing tcp/ip network communication from the sending of an email
- 阶乘求和
- Qt-2-signal and slot
- Imitation B station web, app, background
- kernel GDB
- Windows系统下C语言连接MySQL
- Invisible characters encountered \u200b
- Route add add route
- Timing method of MATLAB program running
- Kubeneters' CNI network plug-in installation Kube ovn
猜你喜欢

Win10 installation and configuration mongodb

Redis introduction and Practice (with source code)

Qt-7-multithreading

Promotion guide for large enterprises: material preparation, PPT writing and on-site defense

LINQ extension methods - any() vs. where() vs. exists() - LINQ extension methods - any() vs. where() vs. exists()

Chapter 6 - application layer

Tcp/ip Basics

Pyqt5 learning notes of orange_ Basic structure of pyqt5 GUI program

What fun things can a desk service do

Imitation B station web, app, background
随机推荐
Write a code hot deployment
Redis introduction and Practice (with source code)
Reverse generate the corresponding DTD constraint according to the XML file
Get the mobile number of QQ friends through exhaustive search
How is the network connected
For the first time in China, Tsinghua and other teams won the wsdm2022 only best paper award, and Hong Kong Chinese won the "time test Award"
Windows系统下C语言连接MySQL
Solution of difficult and miscellaneous problems in MVN packaging
Complete and detailed installation steps for kubeneter version 1.7
What fun things can a desk service do
Gensim error attributeerror: type object 'word2vec' has no attribute 'load_ word2vec_ format‘
So many statistical charts? This visualizer is great~~
Qt-6-file IO
Native JS implements login function, and local cookies save login information -- [call Netease cloud API interface] - super detailed explanation
模拟设计磁盘文件的链接存储结构
Alibaba cloud energy consumption treasure will be released soon to help SMEs' green upgrading and participate in the carbon neutral trillion market
Imitation B station web, app, background
Chapter 2 - physical layer (II) circuit switching, message switching and packet switching (datagram and virtual circuit)
Select everything between matching brackets in vs Code - select everything between matching brackets in vs Code
HSV color model and color component range in opencv