当前位置:网站首页>[004] [stm32] MDK project configuration and commissioning
[004] [stm32] MDK project configuration and commissioning
2022-06-26 06:44:00 【Cauchy's hesitation】
This paper is about Baiwen & Weidong mountain 【 IOT smart home training camp 】 Course notes
1 Engineering configuration
1.1 Device
1.2 Target
Without using software simulation, you can ignore Xtal Parameters .
MrcroLIB Yes C Library has been optimized , quite a lot C Library functions cannot be used directly , The following code can be added without using the micro library , Normal use printf
and scanf
Redirect to serial port and other output devices :
#pragma import(__use_no_semihosting)
struct __FILE
{
int a;
};
FILE __stdout;
FILE __stdin;
void _sys_exit(int x)
{
}
1.3 Output
Don't check Browse Information
unable F12 Jump .
1.4 ListIng
.LST
:Listing file generated by the C Compiler or Assembler. C And the list file generated by the assembly compiler ..I
: C Preprocessor Output File. Preprocessed files ..map
: Store image files , More important , You can analyze the details of the generated code , Such as code size 、 Memory address occupied by variables, etc .
1.5 User
stay “After Build/Rebuild” add to fromelf --bin -o "[email protected]" "#L"
, Check... At the same time “Run #1”, Indicates that after compilation , perform fromelf Command to generate bin
file .
1.6 C/C++
Use cubemx Generate MDK engineering , You do not need to add a file path .
1.7 Asm
Asm The interface is generally configured with assembly code , Not commonly used .
1.8 Linker
Use Memory Layout from Target Dialog
: Use the distributed file load dialog Target pageMake RW Sections Position Independent
: send RW Segment independence (–rwpi)Make RO Sections Position Independent
: send RO Segment independence (–ropi)Don't Search Standard Libraries
: Disable scanning of the default compiler runtime library (–noscanlib)Report 'might fail' Conditions as Errors
: The reported condition may cause a failed error , Not a warning (–strict)xx BASE
:X/O、R/O、R/W Base address (–xo_base=address)disable Warnings
: Police warning (–diag_suppress)
1.9 Debug
Load Application at Startup
: Load application at startup .Run to main()
: When entering debug mode ,main(), That is, skip assembly code , Jump directly to main Function start simulation .- Reset debug session settings
Restore Debug Session Settings
: If you check , Click on it. “ Reset ” Will return to the previous state . Include : The breakpoint Breakpoints、 window Watch Windows、 Performance Analyzer Performance Analyzer、 Memory window Memory Window、 hold-all Toolbox、 System Finder System Viewer etc. . Dialog DLL - Parameter
: Conversation box DLL Documents and parameters ;CPU/Driver DLL - Parameter
:CPU Driver files and parameters .
Dialog DLL Respectively : DARMSTM.DLL and TARMSTM.DLL Parameter Are all :pSTM32F103RC
(p+ Specific chip signals ), Used to set the software and hardware simulation that supports the corresponding chip ( That is, it can be done through Peripherals Select the dialog box of corresponding peripherals and observe the simulation results ).Manage Component Viewer Description Files
: Manage component description files ( Generally do not use )
Hardware simulation download configuration :
2 Simulation debugging
2.1 General debugging window
2.2 Observation window
Look at the value of the variable :
Default 16 Base display , Modifiable .
View kernel and peripheral register values :
If you look at GPIOA register :
Check the kernel peripheral registers NCIC:
- E: Can make / Disability interruption
- P: Whether the interrupt is suspended
- A: Whether the interrupt is responding
You can also click Peripherals
Select the corresponding peripheral to view :
Look at the function call stack :
Be careful :
- Keil When software simulation occurs
no ‘write’ permission”,no ‘read’ permission
Error of : No settings debug Options DLL. - Logic analyzer shall also be set DLL, And can only be used under software simulation , Cannot be used for hardware emulation , Otherwise prompt
Unknown Signal.
, Or the following error occurs :
Keil Series of tutorial reference :
- Keil(MDK-ARM) Introduce 、 download 、 Installation and registration
- Keil(MDK-ARM) Series of tutorials ( One )_ New software engineering detailed process
- Keil(MDK-ARM) Series of tutorials ( Two )_ Detailed description of toolbar
- Keil(MDK-ARM) Series of tutorials ( 3、 ... and )_ Project target option configuration (Ⅰ)
- Keil(MDK-ARM) Series of tutorials ( Four )_ Project target option configuration (Ⅱ)
- Keil(MDK-ARM) Series of tutorials ( 5、 ... and )_Configuration(Ⅰ)
- Keil(MDK-ARM) Series of tutorials ( 6、 ... and )_Configuration(Ⅱ)
- Keil(MDK-ARM) Series of tutorials ( 7、 ... and )_ menu
END
边栏推荐
- MySQL 数据库的小白安装与登录
- 【golang】time相关
- Customer Stories | Netease spring breeze: the "spring breeze" of the fun industry, reaching out to all areas through in-depth interaction
- Reasons why MySQL indexes are not effective
- Spark3.3.0源码编译补充篇-抓狂的证书问题
- Marketing skills: compared with the advantages of the product, it is more effective to show the use effect to customers
- Go语言学习笔记 1.1
- Top down transformation method
- Introduction to the use of TS generics in functions, interfaces and classes
- API and encapsulation of cookies
猜你喜欢
Connexion et déconnexion TCP, détails du diagramme de migration de l'état
C nuget offline cache package installation
MySQL
Gof23 - builder mode
Guide to "avoid dismissal during probation period"
When vs code uses prettier to format JS, there is a space between the name of the function definition and the parentheses, and ESLIt does not allow this space
Pytorch uses multi GPU parallel training and its principle and precautions
营销技巧:相比较讲产品的优点,更有效的是要向客户展示使用效果
MySQL 数据库的小白安装与登录
How can an enterprise successfully complete cloud migration?
随机推荐
Research Report on market supply and demand and strategy of China's pallet scale industry
3.pyinstaller module introduction
01 golang and matlab code of knapsack problem
寶塔服務器搭建及數據庫遠程連接
数据湖架构之Hudi编译篇
Get the first and last days of the current month, and the first and last days of the previous month
Installing rainbow in various kubernetes with Helm
I have been testing at Tencent for several years
Web technology sharing | webrtc recording video stream
Simple use of typescript's class interface
Distribution operation of D
SecureCRT运行SparkShell 删除键出现乱码的解法
Typescript type
MYSQL索引不生效的原因
The sysdig 2022 cloud native security and usage report found that more than 75% of the running containers have serious vulnerabilities
C nuget offline cache package installation
LabVIEW Arduino TCP/IP遠程智能家居系統(項目篇—5)
My SQL(二)
100 cases of go language
Go language learning notes 1.1