




已阅读5页,还剩7页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
MICL Operating System Group目 录1 开发环境搭建11.1 Linux11.1.1 Ubuntu发行版11.1.2 Fedora发行版21.2 Windows21.2.1 使用Winavr21.2.2 使用Cygwin32 程序下载方法42.1 Linux平台下应用程序下载42.2 Window平台下的应用程序程序下载82.2.1 使用usip82.2.2 使用双龙USB下载器83 进程创建方法93.1 进程创建93.1.1 函数原型93.1.2 示例程序93.2 进程删除93.3 进程睡眠93.4 进程挂起与恢复10- 11 -1 开发环境搭建WeOS操作系统项目具有跨平台特性,支持Windows平台和Linux平台。使用WeOS需要按以下步骤搭建开发环境。【建议开发环境:Ubuntu 9.10 或 Fedora 12】1.1 Linux1.1.1 Ubuntu发行版修改更新源:在linux终端下一次输入: sudo vim /etc/apt/sources.list打开sources.list文件,将其中的内容更新为deb /ubuntu/ karmic main multiverse restricted universedeb /ubuntu/ karmic-backports main multiverse restricted universedeb /ubuntu/ karmic-proposed main multiverse restricted universedeb /ubuntu/ karmic-security main multiverse restricted universedeb /ubuntu/ karmic-updates main multiverse restricted universedeb-src /ubuntu/ karmic main multiverse restricted universedeb-src /ubuntu/ karmic-backports main multiverse restricted universedeb-src /ubuntu/ karmic-proposed main multiverse restricted universedeb-src /ubuntu/ karmic-security main multiverse restricted universedeb-src /ubuntu/ karmic-updates main multiverse restricted universe更新软件仓库: sudo apt-get update安装编译器:sudo apt-get install y gcc-avr安装调试器:sudo apt-get install y gdb-avr安装工具包:sudo apt-get install y binutils-avr安装C库:sudo apt-get install y avr-libc安装WeOS源码:cd tar xvf WeOS.tar.bz21.1.2 Fedora发行版修改更新源:建议采用USTB更新源,速度快。USTB更新源地址:/pub/fedora/12/updates/更新软件仓库: sudo yum update -y安装编译器:sudo yum install y avr-gcc安装调试器:sudo yum install y avr-gdb安装工具包:sudo yum install y avr-binutils安装C库:sudo yum install y avr-libc安装WeOS源码:cd tar xvf WeOS.tar.bz21.2 WindowsWindows既可以使用Winavr,也可以使用Cygwin开发环境。1.2.1 使用WinavrWinavr官方网址:/Winavr下载地址:/projects/winavr/files/【建议下载版本:WinAVR-20090313-install.exe】下载安装WinAVR后,解压WeOS.tar.bz2至工作目录。1.2.2 使用Cygwin(1)从 / 下载并安装Cygwin(2)从/dist-1.2.0/tools/windows/cygwin-1.2a.tgz下载Cygwin软件包(3)在cygwin shell下,在某目录中解压上述软件包。$cd 所选目录(如/cygdrive/c/newcygpkgs)$ tar zxvf cygwin-1.2a.tgz(4)在Windows资源管理器中找到所选目录(如/cygdrive/c/newcygpkgs),双击setup.exe。Setup.exe是Cygnus Solutions的发行版安装包(5)当 Cygwin 安装界面出现后,按以下步骤来: (6)Opt to disable the virus scanner (it will be enabled when youre finished). (7)选择 Install from Local Directory. (8)指定你当前Cygwin安装的根目录。就是那个有opt目录,usr目录的那个目录。比如c:tinyoscygwin。 (9)选择Install for All Users (10)选择Unix file type (非常重要!) (11)把Local Packages Directory指定为cygwin程序包解压出来的目录。 (The setup.exe 有可能选择正确的目录。) (12)下一个窗口允许你选择需要安装的软件包。你可以看到大部分的软件包之前都有个带叉子的方框,这些就是要安装的。 (13)点击 install。(14)使用rpm Uvh ignoreos *.rpm(*为文件名)安装所需软件,软件表如下:(图中文件名超链接为下载地址)软件名文件名avr-binutilsavr-binutils-2.15tinyos-3.cygwin.i386.rpm avr-gccavr-gcc-3.4.3-1.cygwin.i386.rpm avr-libcavr-libc-1.2.3-1.cygwin.i386.rpm avarice avarice-2.4-1.cygwin.i386.rpm insight(avr-gdb)avr-insight-6.3-1.cygwin.i386.rpm 2 程序下载方法2.1 Linux平台下应用程序下载uisp是Linux和TinyOS平台下的应用程序烧写工具。uisp的使用说明如下:uisp -helpuisp version 20050519tinyos(C) 1997-1999 Uros Platise, 2000-2003 Marek Michalkiewicz(c) 2003-2005 Philip Buonadonna, Intel Corporation(c) 2003 , Crossbow Technologyuisp is free software, covered by the GNU General Public License.You are welcome to change it and/or distribute copies of it underthe conditions of the GNU General Public License.Syntax: uisp -v=level -h -help -version -hash=perbytes -dprog=avr910|pavr|stk500|mib510|stargate -dprog=type -dlpt=address|/dev/parportX -dno-poll -dno-retry-dvoltage=. -dt_sck=time-dt_wd_flash|eeprom=time -dt_reset=time -dinvert=sck,mosi,miso,reset -dserial=device -dpart=name|no -dspeed=1200|2400|4800|9600|19200|38400|57600|115200 -upload -verify -erase if=input_file -download of=output_file -segment=flash|eeprom|fuse -terminal -rd_fuses -wr_fuse_l=byte -wr_fuse_h=byte -wr_fuse_e=byte -wr_lock=byteProgramming Methods: -dprog=avr910 Standard Atmel Serial Programmer/Atmel Low Cost Programmer pavr /pavr/pavr.html stk500 Atmel STK500 or Atmel ATAVRISP mib510 Crossbow MIB510 (for Atmega128, 115200 baud serial only) stargate PXA Based Stargate -dprog=dapa|stk200|abb|avrisp|bsd|fbprg|dt006|maxi|xil|dasa|dasa2 Programmer type: dapa Direct AVR Parallel Access stk200 Parallel Starter Kit STK200, STK300 abb Altera ByteBlasterMV Parallel Port Download Cable avrisp Atmel AVR ISP (?) bsd /avrdude/ (parallel) fbprg .ua/real/avreal/adapters.html (parallel) dt006 /dt006.html (parallel) maxi Investment Technologies Maxi (parallel) xil Xilinx HW-JTAG-PC Cable (parallel) ett ETT AVR Programmer V2.0 from Futurlec (parallel) dasa serial (RESET=RTS SCK=DTR MOSI=TXD MISO=CTS) dasa2 serial (RESET=!TXD SCK=RTS MOSI=DTR MISO=CTS)Target Device Selection:-dpart Set target abbreviated name or number. For some programmers, if -dpartis not given programmers supported devices are listed. set -dpart=auto for auto-select. Auto-select does not work with all programmers, so it is recommended to always specify a target device explicitly.Parallel Device Settings: -dlpt= specify device name (Linux ppdev, FreeBSD ppi, serial) or direct I/O parallel port address (0x378, 0x278, 0x3BC) -dno-poll Program without data polling (a little slower) -dno-retry Disable retries of program enable command -dvoltage Set timing specs according to the power supply voltage in V (default 3.0) -dt_sck Set minimum SCK high/low time in micro-seconds (default 5) -dt_wd_flash Set FLASH maximum write delay time in micro-seconds -dt_wd_eeprom Set EEPROM maximum write delay time in micro-seconds -dt_reset Set reset inactive (high) time in micro-seconds -dinvert=. Invert specified lines Use -v=3 option to see current settings.Atmel Low Cost Programmer Serial Device Settings: -dserial Set serial interface as /dev/ttyS* (default /dev/avr) -dspeed Set speed of the serial interface (default 19200) -dhost IP Address or hostname of serial server. This option overrides the -dserial option -dport Port number of the serial server (default 10001)Stk500 specific options: -dparallel Use Hi-V parallel programming instead of serial (default is serial) -rd_aref Read the ARef Voltage. Note that due to a bug in the stk500 firmware, the read value is sometimes off by 0.1 from the actual value measured with a volt meter. -rd_vtg Read the Vtarget Voltage. Note that due to a bug in the stk500 firmware, the read value is sometimes off by 0.1 from the actual value measured with a volt meter. -wr_aref Set the ARef Voltage. Valid values are 0.0 to 6.0 volts in 0.1 volt increments. Value can not be larger than the VTarget value. -wr_vtg Set the VTarget Voltage. Valid values are 0.0 to 6.0 volts in 0.1 volt increments. Value can not be smaller than the ARef value.Functions: -upload Upload input_file to the AVR memory. -verify Verify input_file (processed after the -upload opt.) -download Download AVR memory to output_file or stdout. -erase Erase device. -segment Set active segment (auto-select for AVA Motorola output)Fuse/Lock Bit Operations: -rd_fuses Read all fuses and print values to stdout -wr_fuse_l Write fuse low byte -wr_fuse_h Write fuse high byte -wr_fuse_e Write fuse extended byte -wr_lock Write lock bits. Argument is a byte where each bit is: Bit5 - blb12 Bit4 - blb11 Bit3 - blb02 Bit2 - blb01 Bit1 - lb2 Bit0 - lb1 -lock Write lock bits old method; deprecated.Files: if Input file for the -upload and -verify functions in Motorola S-records (S1 or S2) or 16 bit Intel format of Output file for the -download function in Motorola S-records format, default is standard outputOther Options: -v Set verbose level (-v equals -v=2, min/max: 0/4, default 1) -hash Print hash (default is 32 bytes) -help -h Help -version Print version information -terminal Invoke shell-like terminalReport bugs to: Maintainers Updates: /projects/uisp2.2 Window平台下的应用程序程序下载2.
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025届江苏省新沂市第四中学七下数学期末检测模拟试题含解析
- 内部控制与风险评估试题及答案
- 2025届江苏省苏州市新草桥中学八下数学期末教学质量检测试题含解析
- 计算机VB考试挑战突破试题及答案
- 课题研究与教学创新计划
- 领导力发展培训的重点方向计划
- 人才发展与继任计划
- 2024年云南省水利厅下属事业单位真题
- 保密排查报告
- 客户需求分析与市场定位总结计划
- 我的家乡陕西省安康市
- 八角茴香油教学课件
- 教学机房规划方案
- 国家文化安全教育课件
- 可行性研究报告编制服务投标方案
- 山东省汽车维修工时定额(T-SDAMTIA 0001-2023)
- 专业文献阅读技巧
- 控制吸烟的政策与法规案例分析
- 国企经理成员岗位聘任协议-(参考模版)
- 中国公民普通护照申请表(正面)
- 23J916-1:住宅排气道(一)
评论
0/150
提交评论