香港中文大学:Arm board tutorial Part 1 Using the ARM board And start working with C Tutorial 5 and 6

Arm board tutorial Part 1 Using the ARM board And start working with C Tutorial 5 and 6 CES arm board v 14.7
Arm board tutorial Part 1 Using the ARM board And start working with C Tutorial 5 and 6 CES arm board v.14.7 1

Outline Software · Hardware Download the program to the board The aRM7 board test program CES arm board v 14.7
Outline • Software • Hardware • Download the program to the board • The ARM7 board test program CES arm board v.14.7 2

Materials distributed Materials will be distributed NXP LPC2131x 1 FT232BLX 1 Power adapter x 1 USB cable x 1 Please use them Carefully You must return all the materials at the end of this semester 30 marks will be deduced if you lose or don t return anyone of them CES arm board v 14.7
Materials distributed • Materials will be distributed: – NXP LPC2131 x 1 – FT232BL x 1 – Power adapter x 1 – USB cable x 1 • Please use them CAREFULLY • You MUST return all the materials at the end of this semester – 30 marks will be deduced if you lose or don’t return anyone of them CES arm board v.14.7 3

Hints for the exercises The User manual(UM10120. pdf) and the Schematic of the board are VERY usefully You may need to check the lecture notes CES arm board v 14.7
Hints for the exercises • The User manual (UM10120.pdf) and the Schematic of the board are VERY usefully • You may need to check the lecture notes CES arm board v.14.7 4

Setup the uvision project Software CES arm board v 14.7
Software Setup the uVision project … CES arm board v.14.7 5

Start working with C New project Project New Vision Project Find somewhere to save you project choose nXF→LPC2131 with Startup.S Edit Startup.s comment the line 430 CES arm board v 14.7
Start working with C • New Project – Project → New μVision Project… – Find somewhere to save you project – choose NXP → LPC2131 – with Startup.s – Edit Startup.s • comment the line 430 CES arm board v.14.7 6

Start working with c Project> Options for target 1 At linker" tab select "Use Memory Layout from Target Dialog At"Output" tab select"Create HEX File ptions for Target Target 1 Device Target output Listing User I C/C++| Asm I Linker Debug Utilties I Select Adder for Objects Name of Executable:lab4_ex c Create Electable: Mlab4_ex 厂 Create Batch File v Create HEX File C Create Library: \ab4 ex LIB CES arm board v 14.7
Start working with C • Project → Options for target1 – At "Linker" tab • select “Use Memory Layout from Target Dialog” – At "Output" tab • select “Create HEX File” CES arm board v.14.7 7

Start working with c · Create a c file Fi|e→NeW. File→Save Find a good place to save your code e.g. same folder as the project file End the file name with c Some examples: main. C, test Cc Bad examples: a c, asd. c CES arm board v 14.7
Start working with C • Create a C file – File → New… – File → Save – Find a good place to save your code • e.g. same folder as the project file – End the file name with ".c" • Some examples : main.c, test_c.c • Bad examples: a.c, asd.c CES arm board v.14.7 8

Start working with c Add the code into your project Project Manage Components Environment and books Add files Locate the c file you just saved Your project should look like this E: Target 1 A Source Group 1 面$p nam. c CES arm board v 14.7
Start working with C • Add the code into your project – Project → Manage → Components, Environment and Books → Add files – Locate the C file you just saved – Your project should look like this: CES arm board v.14.7 9

Start working with c Paste the following template to your code #include int main(t While (1) return 0 CES arm board v 14.7
Start working with C • Paste the following template to your code: 10 #include int main(){ while(1); return 0; } CES arm board v.14.7
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 同济大学:《大数据分析与数据挖掘 Big Data Analysis and Mining》课程教学资源(PPT课件讲稿)Evaluation & other classifiers.pptx
- 面积对象编程(PPT讲稿)Object-Oriented Programming and Classes.ppt
- 《计算机网络概述》教学资源(PPT课件讲稿).ppt
- 《计算机组成原理》课程PPT教学课件(讲稿)第三章 计算机核心部件及其工作原理.ppt
- 《大型机系统管理技术》课程教学资源(PPT课件讲稿)第2章 大型服务器外存管理.ppt
- 《ARM嵌入式软件开发》课程教学资源(PPT课件讲稿)第三章 ARM体系结构及编程模型.ppt
- 北京大学:基于信息利用的烟花算法研究(PPT讲稿)Research on Fireworks Algorithms from the Perspective of Information Utilization.pptx
- 系统编程工具REXX和CLIST.ppt
- 《软件测试 Software Testing》教学资源(PPT讲稿)Part 1 The Big Picture.ppt
- 西南民族大学:软件需求分析与总体设计(PPT讲稿,主讲:殷锋).ppt
- 中国地质大学(武汉):R语言入门教程(PPT讲稿).ppt
- 对外经济贸易大学:《大学计算机基础》课程电子教案(PPT课件)第5章 PowerPoint幻灯片制作(PowerPoint 2010).pptx
- 西安培华学院:《计算机网络工程》课程教学资源(PPT课件讲稿)第1章 网络工程知识(主讲:张伟).ppt
- 《计算机网络安全》课程教学资源(PPT课件讲稿)第四章 数据加密技术.ppt
- 计算机应用专业《计算机网络》教学大纲.doc
- 《计算机网络 COMPUTER NETWORKS》课程教学资源(PPT课件讲稿)Chapter 18 互联网协议 Internet Protocols(IP).ppt
- 淮阴工学院:《数据库原理》课程教学资源(PPT课件讲稿)第4章 结构化查询语言SQL.ppt
- 《C++语言程序设计》课程教学资源(PPT课件)第14讲 运算符重载.ppt
- 东南大学:《C++语言程序设计》课程教学资源(PPT课件讲稿)Chapter 13 Object-Oriented Programming - Polymorphism.ppt
- 山东大学:《微机原理及单片机接口技术》课程教学资源(PPT课件讲稿)第四章 指令系统及汇编语言程序设计(4.1-4.4).ppt
- 清华大学出版社:《JAVA程序设计实例教程》课程教材电子教案(PPT课件讲稿,共七章,主编:关忠).ppt
- 香港浸会大学:Community Search over Big Graphs:Models, Algorithms, and Opportunities.ppt
- 《数字图像处理》课程教学资源(PPT课件讲稿)第5章 图像编码与压缩.ppt
- 厦门理工学院:《网页设计》培训课件教学资源(PPT课件).ppt
- 西安电子科技大学:《计算机操作系统》课程PPT教学课件(讲稿)第六章 文件管理.ppt
- 机器翻译研讨会(PPT讲稿)神经机器翻译前沿进展(PPT讲稿).pptx
- 山东大学:《微机原理及单片机接口技术》课程教学资源(PPT课件讲稿)第三章 计算机系统的组成与工作原理 3.1 理解模型机的结构及工作过程 3.2 掌握单片机的结构.ppt
- 清华大学出版社:《计算机导论 Introduction to Computer Science》课程配套教材教学资源(PPT课件讲稿,第3版)第4章 操作系统与网络知识.ppt
- 《数据库系统原理》课程PPT教学课件(SQLServer)第7章 Transact-SQL程序设计.ppt
- 《Chemdraw 软件教程》教学资源(PPT讲稿)第一部分 ChemDraw简介.ppt
- 北京大学:计算智能实验室(PPT讲稿)烟花算法算子分析.pptx
- 上饶师范学院:《数据库系统原理 An Introduction to Database System》课程教学资源(PPT课件讲稿,共九章).ppt
- 清华大学:《数据中心网络 Data Center Networking》课程教学资源(PPT课件讲稿).pptx
- 人工神经网络(ANN)方法简介(PPT课件讲稿).ppt
- 合肥工业大学:使用大数据进行计算建模(PPT讲稿)Computing/Modeling with Big Data(主讲:吴信东).pptx
- 《模式识别》课程教学资源(PPT讲稿)Learning with information of features.ppt
- 烟台大学:《C语言程序设计》课程电子教案(PPT课件讲稿)第五章 数组、字符串、指针(主讲:荆蕾).ppt
- 《数据结构》课程教学资源(PPT课件讲稿)第六章 树与二叉树.ppt
- 南京大学:《计算机图形学》课程教学资源(PPT课件讲稿)第6讲 图形观察与几何变换.pptx
- 《高级软件工程》课程教学大纲 Advanced Software Engineering.doc