ARM DS-5初体检

来源:互联网 发布:java dbcp连接池 编辑:程序博客网 时间:2024/05/01 03:30

简介      

       ARM公司推出ARM®Compiler 5.0版及ARM®DS-5 专业版(Development Studio 5.0 Professional),后者取代ARM RVDS™系列工具包(RealView Development Suite),成为基于ARM处理器的SoC、ASIC和ASSP设备的参考软件开发工具链。

         ARM DS-5专业版以ARM Compiler的成功为基础,同时集成DS-5调试器和Streamline 性能分析器,组成基于Eclipse的软件开发工具的完整套件,从而形成一个集成的、强大的、直观的基于Eclipse IDE的开发环境,覆盖从平台构思(bring-up)和初级系统开发(bare metal development)到创建引人注目的基于RTOS、Linux和Android™ 的应用程序。

          自第一款ARM处理器发布以来,ARM Compiler一直旨在为ARM和Thumb®生成的代码提供代码大小和性能的最佳组合。作为DS-5专业版的一部分,全新ARM Compiler 5.0版将继续为开发内存占用更小、响应度更高、能耗最低的设备提供支持。
          ARM Compiler 5.0版加入了对ARM最新处理器(包括Cortex™-A15 MPCore™、Cortex-R5和Cortex-R7 处理器)的支持和特别优化。ARM Compiler的优化是与新指令和处理器流水线同时开发的。另外,ARM编译器5.0版增强了GCC兼容性,无需任何改动即可为开源项目进行现有配置编译环境操作。
          ARM已采用DS-5专业版作为新的ARM处理器和技术的软件开发工具链。DS-5支持Cortex-A9 MPCore处理器的代码生成、调试和性能分析,并为NEON SIMD 引擎提供增强性支持。DS-5还利用最新的ARM处理器上的性能监视单元Performance Monitoring Unit)进行系统级分析,并显示来自ARMEmbedded Trace Macrocell,(ARM嵌入式追踪宏,ETM™)和Program Trace Macrocell(程序追踪宏,PTM)的非侵入性追踪数据,实现对与时间相关的程序错误进行调试和分析。
         DS-5专业版扩展了调试功能,为Cortex-A15 MPCore处理器和近期推出的CoreSight SoC-400的调试和跟踪技术提供支持。DS-5同时为主流多核设备(如NVIDIA Tegra250、Samsung Exynos 4210、STMicroelectronics SPEAr600 和SPEAr1300以及Texas Instruments OMAP4)提供预配置调试设置。ARM DSTREAM调试和追踪单元提供高性能的目标连接和高达4GB的追踪缓冲,通过指令追踪实现长期软件调试和分析。
DS-5 包
  • DS-5 应用版: 经济实惠的专业解决方案,适用于以 C/C++ 开发 Linux 和 Android 应用程序和库的开发人员。 它利用诸如以太网和 USB 等标准连接进行应用程序调试和系统性能分析。
  • DS-5 Linux 版: 适用于基于 Linux 的系统的端对端软件开发工具。 它包括应用版中提供的所有功能,此外还提供裸机和内核级别的调试与跟踪功能。
    安装

    最小配置

    • 双核 2 GHz 处理器或同等处理器
    • 2 GB RAM(建议 4 GB)
    • 约 1 GB 硬盘空间。

    操作系统

    • Windows XP Professional Service Pack 3(32 位)
    • Windows 7 专业版和企业版(32/64 位)
    • Red Hat Enterprise Linux 5 桌面版和工作站选项、标准版(32/64 位)

    DS-5安装完成后启动Eclipse时的界面如下:

    Using the examples in Eclipse

    The zip file contains project files that you can import into the workbench. You must import all the project files otherwise you might find some examples do not work because of missing dependencies.
    To automatically import the examples into Eclipse using the cheat sheet:
    1. Start Eclipse
    2. Create a new workspace directory for the examples. There are two ways to do this:
      1. Create a new workspace directory during the startup of Eclipse
      2. Select FileSwitch WorkspaceOther in Eclipse
    3. Select HelpCheat Sheets... to open the Cheat Sheet Selection dialog box.
    4. Expand the ARM group and select Automatically Importing the DS-5 Example Projects into the Current Workspace.
    5. Click OK.
    6. Follow the steps in the cheat sheet to import all the DS-5 example projects into your workspace.

    例子导入eclipse后如下图所示:

    注意:

    1.Download the optional package, Linux_distribution_example.zip, containing the example Linux distribution project and the compatible headers and libraries from the ARM website or from the DS-5 installation media.Import distribution example projects from the relevant ZIP archive files into Eclipse.To build these examples, you must have imported the packageLinux_distribution_example.zip into Eclipse.Thedistribution project does not need to be built (actually, it cannot be built).(必须导入Linux_distribution_example,否则无法编译项目,Optional packages with source files, libraries, and prebuilt images for running the examples. )即,一定要将Linux_distribution_example导入到eclipse中,否则无法编译项目,Linux_distribution不用编译。

    2.ARM Linux Distribution Dependencies

    This project provides dependencies(依赖) for other example projects. It is composed of headers and libraries required to build application examples, and of a kernel suitable for building kernel-level examples. It is not a complete Linux distribution.
    This project is not required to work with the example Linux projects, as the projectsinclude pre-built images. Itis required if you wish to rebuild the example Linux projects.也就是说,Linux_distribution这个项目为其他项目提供了依赖关系,包含了编译其他应用程序例子所需要的头文件和库

    3.一定要有Licens,否则无法仿真。(在ARM网站上注册一个账号,然后申请一个Licens!!!)

    4.win7下找不到telnet.exe

    一般情况下win7 系统默认此项不被选中,只要我们在控制面板找到此项然后将前面的对勾点上就可以了。

    具体方法:控制面版->程序->程序和功能->打开或关闭Windows功能,勾选“Telnet客户端”“Telnet服务器”即可(调试仿真时需要telnet )。没有telnet也能仿真,不知telnet是否还有其他的作用,待研究。。。

    一个简单的例子 Loading the Gnometris application on a Real-Time System Model

    俄罗斯方块的仿真

    You can load the Gnometris application on to a Real-Time System Model (RTSM) that is running
    ARM Linux. An RTSM enables you to run and debug applications on your host workstation
    without using any hardware targets.
    A preconfigured RTSM connection is available that automatically boots Linux, launches
    gdbserver, and then launches the application.
    To load Gnometris:
    1. Launch Eclipse.
    2. Click on the Project Explorer view.
    3. Expand the gnometris project folder.
    4. Right-click on the launch file, gnometris-RTSM-example.launch.
    5. In the context menu, select Debug As.
    6. Select the gnometris-RTSM-example entry in the submenu.
    7. Debugging requires the DS-5 Debug perspective. If the Confirm Perspective Switch dialog box opens, click on Yes to switch perspective.

    完成后界面如下图所示:

    然后点击eclipse中Debug Control中的Run/Continue按钮运行程序。程序运行后的界面如下: