下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、IAR使用Luminary驱动库的说明1生成Driverlib:“File”菜单中选择“New>Workspace”,新建一个工作区; “Project”菜单中选择“Add Existing Project”,将 C:PDL-LM3S-2752DriverLibsrc目录下的工程“driverlib.ewp”添加进来.“LM3S_DriverLib.eww”并保存在“C:PDL_LM3S_2752DriverLibsrc”文件夹下; “driverlib - Debug”,选择 Options,打开选项,对某些选项进行必要的配置; 选择“Category:”里的“C/C+”,在“Opti
2、mizations”选项卡里,建议选中优化级别Level为“None”,这可以更好地支持将来的在线仿真调试. 选择“Category:”里的“Library Builder(Linker的Config选项)”,勾中“Override default”.“Project”菜单中选择“Make”进行编译,将在 C:PDL_LM3S_2752DriversrcExe下自动生成一个“driverlib.a”文件。 2.Copy库文件“C:Program FilesIAR SystemsEmbedded Workbench 5.0 KickstartARMlib”,创建一个新文件夹,取名“Luminar
3、y” ,将“C:PDL-LM3S-2752DriverLibsrcewarmExe”目录下的“driverlib.a”文件复制过来.“C:PDL-LM3S-2752DriverLib”下所有的“*.h”文件复制到”C:Program FilesIARSystemsEmbedded Workbench 5.0 KickstartARMincLuminary”下; “C:PDL-LM3S-2752DriverLibsrc”下所有的“*.c”、“*.h”文件以及“CPU.S”复制到“C:Program FilesIAR SystemsEmbedded Workbench 5.0 KickstartA
4、RMincLuminary”下.2.4. 在“C:Program FilesIAR SystemsEmbedded Workbench 5.0 KickstartARMconfig”下,创建一个新文件夹,取名“Luminary” ,在“Luminary”文件夹下创建一个新文件,取名“LM3S.icf”,内容如下:/* / / LM3S.icf - Linker configuration file for timers. / / Copyright (c) 2005-2008 Luminary Micro, Inc. All rights reserved. / / Software Lice
5、nse Agreement / / Luminary Micro, Inc. (LMI) is supplying this software for use solely and / exclusively on LMI's microcontroller products. / / The software is owned by LMI and/or its suppliers, and is protected under / applicable copyright laws. All rights are reserved. You may not combine / th
6、is software with "viral" open-source software in order to form a larger / program. Any use in violation of the foregoing restrictions may subject / the user to criminal sanctions under applicable laws, as well as to civil / liability for the breach of the terms and conditions of this licen
7、se. / / THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED / OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF / MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. / LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIA
8、L, INCIDENTAL, OR / CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. / / This is part of revision 2752 of the Stellaris Peripheral Driver Library. / /* / / Define a memory region that covers the entire 4 GB addressible space of the / processor. / define memory mem with size = 4G; / / Define a regio
9、n for the on-chip flash. / define region FLASH = mem:from 0x00000000 to 0x0003ffff; / / Define a region for the on-chip SRAM. /define region SRAM = mem:from 0x20000000 to 0x2000ffff; / / Define a block for the heap. The size should be set to something other / than zero if things in the C library tha
10、t require the heap are used. / define block HEAP with alignment = 8, size = 0x00000000 ; / / Indicate that the read/write values should be initialized by copying from / flash. / initialize by copy readwrite ; / / Indicate that the noinit values should be left alone. This includes the / stack, which
11、if initialized will destroy the return address from the / initialization code, causing the processor to branch to zero and fault. / do not initialize section .noinit ; / / Place the interrupt vectors at the start of flash. / place at start of FLASH readonly section .intvec ; / / Place the remainder of the read-only items into flash. / place in FLASH readonly ; / / Place all read/write items into SRA
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026中国肿瘤免疫治疗伴随诊断标志物开发与临床价值评估报告
- 冀教版(新版)四年级下学期数学第3单元三位数乘两位数单元试卷(附答案)
- 分组实验教案
- 四川农村2025年新建房屋包工包料合同
- 新2025年新保安员资格完整题库(含标准答案)
- 2025年成与功阅读理解题及答案
- 蔚来营销方案
- 优步营销方案
- Unit1基础知识背诵默写外研版英语八年级上册
- 专题31空间向量基本定理(高效培优讲义)数学北师大版2019高二选择性
- 军事交通运输课件
- 2025电化学储能电站施工及验收规范
- 设备技术改造合同范本
- 预见性护理及早期风险识别
- 红楼梦大观园教学课件
- 苏教版(2024)三年级上册第五单元《平移、旋转和轴对称》单元测试卷(含解析)
- 人防工程安全培训内容课件
- 备选习题:导数在实际生活中的应用
- 加班及调休管理规范操作手册
- Unit4Helpinginthemunity(单元测试)-人教PEP版英语四年级上册原卷
- 医学实验室的发展规划
评论
0/150
提交评论