没有合适的资源?快使用搜索试试~ 我知道了~
首页IAR FOR 8051
资源详情
资源推荐
![](https://csdnimg.cn/release/download_crawler_static/1820932/bg1.jpg)
UEW-3
IAR Embedded Workbench®
IDE
User Guide
![](https://csdnimg.cn/release/download_crawler_static/1820932/bg2.jpg)
UEW-3
COPYRIGHT NOTICE
© Copyright 1996–2004 IAR Systems. All rights reserved.
No part of this document may be reproduced without the prior written consent of IAR
Systems. The software described in this document is furnished under a license and may
only be used or copied in accordance with the terms of such a license.
DISCLAIMER
The information in this document is subject to change without notice and does not
represent a commitment on any part of IAR Systems. While the information contained
herein is assumed to be accurate, IAR Systems assumes no responsibility for any errors
or omissions.
In no event shall IAR Systems, its employees, its contractors, or the authors of this
document be liable for special, direct, indirect, or consequential damage, losses, costs,
charges, claims, demands, claim for lost profits, fees, or expenses of any nature or kind.
TRADEMARKS
IAR Embedded Workbench, IAR visualSTATE, and IAR MakeApp are registered
trademarks owned by IAR Systems. C-SPY is a trademark registered in the European
Union and Japan by IAR Systems. IAR, IAR XLINK Linker, IAR XAR Library Builder,
and IAR XLIB Librarian are trademarks owned by IAR Systems.
Microsoft and Windows are registered trademarks of Microsoft Corporation. Adobe and
Acrobat Reader are registered trademarks of Adobe Systems Incorporated. CodeWright
is a registered trademark of Starbase Corporation.
All other product names are trademarks or registered trademarks of their respective
owners.
EDITION NOTICE
Third edition: December 2004
Part number: UEW-3
Internal reference: 4.4.0
![](https://csdnimg.cn/release/download_crawler_static/1820932/bg3.jpg)
UEW-3
iii
Contents
Tables .................................................................................................................... xvii
Figures ................................................................................................................... xxi
Preface ................................................................................................................ xxvii
Who should read this guide ...........................................................xxvii
How to use this guide .......................................................................xxvii
What this guide contains ................................................................xxviii
Other documentation ........................................................................ xxxi
Document conventions ..................................................................... xxxi
Part 1. Product overview ............................................................. 1
Product introduction ........................................................................................ 3
The IAR Embedded Workbench IDE .............................................. 3
An extensible and modular environment ............................................. 4
Features ................................................................................................ 4
Documentation ..................................................................................... 5
IAR C-SPY Debugger .............................................................................. 5
General C-SPY Debugger features ...................................................... 6
RTOS awareness .................................................................................. 8
IAR C-SPY Simulator .......................................................................... 8
Documentation ..................................................................................... 9
IAR C/C++ Compiler ............................................................................... 9
Features ................................................................................................ 9
Runtime environment ......................................................................... 10
Documentation ................................................................................... 10
IAR Assembler ......................................................................................... 10
Features .............................................................................................. 11
Documentation ................................................................................... 11
IAR XLINK Linker .................................................................................. 11
Features .............................................................................................. 11
![](https://csdnimg.cn/release/download_crawler_static/1820932/bg4.jpg)
UEW-3
iv
IAR Embedded Workbench® IDE
User Guide
Documentation ................................................................................... 12
IAR XAR Library Builder and IAR XLIB Librarian .................. 12
Features .............................................................................................. 12
Documentation ................................................................................... 12
Installed files ........................................................................................................ 13
Directory structure ................................................................................ 13
Root directory .................................................................................... 13
The common directory ....................................................................... 13
The CPUNAME directory ................................................................. 14
File types ..................................................................................................... 15
Documentation ........................................................................................ 17
The user and reference guides ............................................................ 18
Online help ......................................................................................... 19
IAR on the web .................................................................................. 19
Part 2. Tutorials .................................................................................... 21
Creating an application project ................................................................. 23
Setting up a new project ..................................................................... 23
Creating a workspace ........................................................................ 23
Creating the new project .................................................................... 24
Adding files to the project .................................................................. 26
Setting project options ....................................................................... 27
Compiling and linking the application ........................................... 28
Compiling the source files ................................................................. 28
Viewing the list file ............................................................................ 29
Linking the application ...................................................................... 31
Viewing the map file .......................................................................... 32
Debugging using the IAR C-SPY™ Debugger ................................... 33
Debugging the application .................................................................. 33
Starting the debugger ......................................................................... 33
Organizing the windows .................................................................... 33
Inspecting source statements .............................................................. 34
![](https://csdnimg.cn/release/download_crawler_static/1820932/bg5.jpg)
UEW-3
Contents
v
Inspecting variables ........................................................................... 36
Setting and monitoring breakpoints ................................................... 38
Monitoring registers ........................................................................... 40
Monitoring memory ........................................................................... 40
Viewing terminal I/O ......................................................................... 41
Reaching program exit ....................................................................... 41
Mixing C and assembler modules ............................................................ 43
Examining the calling convention .................................................... 43
Adding an assembler module to the project .............................. 44
Setting up the project ......................................................................... 45
Using C++ ............................................................................................................ 47
Creating a C++ application ................................................................. 47
Compiling and linking the C++ application ....................................... 47
Setting a breakpoint and executing to it ............................................. 48
Printing the Fibonacci numbers ......................................................... 50
Simulating an interrupt .................................................................................. 53
Adding an interrupt handler .............................................................. 53
The application—a brief description .................................................. 53
Writing an interrupt handler ............................................................... 53
Setting up the project ......................................................................... 54
Setting up the simulation environment ........................................ 54
Defining a C-SPY setup macro file .................................................... 55
Specifying C-SPY options ................................................................. 56
Building the project ............................................................................ 57
Starting the simulator ......................................................................... 57
Specifying a simulated interrupt ....................................................... 57
Setting an immediate breakpoint ........................................................ 58
Simulating the interrupt ...................................................................... 59
Executing the application ................................................................... 59
Using macros for interrupts and breakpoints ............................ 60
剩余400页未读,继续阅读
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://profile-avatar.csdnimg.cn/default.jpg!1)
wangshuyou_2003
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![](https://csdnimg.cn/release/wenkucmsfe/public/img/voice.245cc511.png)
会员权益专享
最新资源
- VMP技术解析:Handle块优化与壳模板初始化
- C++ Primer 第四版更新:现代编程风格与标准库
- 计算机系统基础实验:缓冲区溢出攻击(Lab3)
- 中国结算网上业务平台:证券登记操作详解与常见问题
- FPGA驱动的五子棋博弈系统:加速与创新娱乐体验
- 多旋翼飞行器定点位置控制器设计实验
- 基于流量预测与潮汐效应的动态载频优化策略
- SQL练习:查询分析与高级操作
- 海底数据中心散热优化:从MATLAB到动态模拟
- 移动应用作业:MyDiaryBook - Google Material Design 日记APP
- Linux提权技术详解:从内核漏洞到Sudo配置错误
- 93分钟快速入门 LaTeX:从入门到实践
- 5G测试新挑战与罗德与施瓦茨解决方案
- EAS系统性能优化与故障诊断指南
- Java并发编程:JUC核心概念解析与应用
- 数据结构实验报告:基于不同存储结构的线性表和树实现
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![](https://img-home.csdnimg.cn/images/20220527035711.png)
![](https://img-home.csdnimg.cn/images/20220527035711.png)
![](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![](https://csdnimg.cn/release/wenkucmsfe/public/img/green-success.6a4acb44.png)