没有合适的资源?快使用搜索试试~ 我知道了~
IAR FOR C51
4星 · 超过85%的资源 需积分: 14 37 下载量 68 浏览量
2012-07-21
09:42:24
上传
评论 1
收藏 3.7MB PDF 举报
温馨提示
试读
401页
很不错的一个资料,主要针对IAR系统下的8051用户,可以使8051单片机等等
资源推荐
资源详情
资源评论
UEW-3
IAR Embedded Workbench®
IDE
User Guide
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
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
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
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页未读,继续阅读
on_call
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页