If you are working on an EB-A8 RTSM model the debugger automatically boots ARM Linux if required. Examples (examples of DS-5: Examples of non-operating systems and Linux platforms)
DS-5 provides a selection of examples to help you get started:
- Bare-metal software development examples that implements strate ARMCC managed builder, bare-metal debug, performance optimization, and measurement techniques. the code is located in the archive file, examples_directory \ Bare-metal_examples.zip (non-operating system example ).
- ARM Linux examples that implements strate build, debug, and Performance Analysis of simple C/C ++ console applications, shared libraries, and multi-threaded applications. these examples run on a real-time system model (RTSM) That is preconfigured
To Boot ARM Linux. The code is located in the archive file, examples_directory \ linux_examples.zip. (example in Linux ).
- Optional packages with source files, libraries, and prebuilt images for running the examples. these can be downloaded from the DS-5 Downloads page on the arm website or from the DS-5 installation media. (optional software packages include the source files, libraries, and compiled image files required for running the example)
-Linux distribution project with header files and libraries for the purpose of rebuilding the ARM Linux examples
-Linux SD card image for the beagleboard configured for DS-5
-Linux SD card image for the beagleboard-XM configured for DS-5.
You can extract these examples to a working directory and build them from the command-line, or you can import them into eclipse using the import wizard. all examples provided with DS-5 contain a preconfigured eclipse launch script
That enables you to easily load and debug example code on a target. (the examples of the DS-5 can be decompressed to the working directory, through the command line and eclipse two ways to compile, the specific can view the help documentation) each example provides instructions on how to build, run and debug the example code. you can access the instructions from the main index, examples_directory \ docs \ index.html.
This example can be built with either the GCC supplied with DS-5 (ARM-None-Linux-gnueabi-GCC) or the arm Compiler (ARMCC) by settingtoolchain = gcc
Or toolchain = ARMCC In The makefile. the makefile defaults to building withtoolchain = GCC. when building with the arm compiler, GCC's headers and library files must also be present. (compiler selection)
The BuildProduces both stripped and unstripped versionsOf the elf executablegnometris and a shared library
Libgames-support.so. the unstripped (undeprived, that is, contains debugging information) (Debug) versions contain debug information for loading into DS-5 debugger on the host. smaller stripped (no Debug) versions for downloading to the target are created by stripping off
The debug information (debugging information is removed ).
The example stripped executable
Gnometris and shared library libgames-support.so must be loaded onto the target, before the example can be run/debugged.
Real-Time System Model (RTSM) Real-Time System Module
Real-Time System Models (RTSM) enable development of software without the requirement for actual hardware. the functional behavior of the model is equivalent to real hardware from a programmers view. embedded can be implemented without hardware.
Absolute timing accuracy is sacrificed to achieve fast simulated execution speed. this means that you can use a model for confirming software functionality, but you must not rely on the accuracy of cycle counts, low-level component
Interactions, or other hardware-specific behavior. Real-Time System modules exchange time to quickly simulate the execution speed. That is, you can use this module to confirm the software functionality, but the software functionality must not rely on periodic counting, the interaction of low-level components, or the accuracy of specific behavior of other hardware.
Real-Time System Model of RTSM Simulator
By using DS-5 rtsm in the Cortex-A8 application version, you can develop Linux applications without hardware goals. RTSM is a real-time simulation model of the ARM hardware platform, including the processors, memory controllers, and peripherals required to run complex operating systems and applications.
With Cortex-A8 RTSM, you can develop Linux applications based on ARM processors without any hardware.
- Simulation speed exceeds 250 MHz on a typical desktop PC
- The resource simulation peripheral interfaces on the host PC will be used, including LCD controller, keyboard, mouse, touch screen, uart and Ethernet controller
The DS-5 includes an example of an ARM processor-based Linux release porting to the Cortex-A8 RTSM. When started from eclipse, this model automatically directs Linux to the state where applications can be loaded and debugged.
DS-5 ipvdes A Cortex-A8 RTSM that is preconfigured to boot ARM Linux.
Bare metal projects require a software license for the arm compiler to successfully build an elf image.
Project types (project type)
Different project types are provided with Eclipse, depending on the requirements of yourproject.
Note: bare metal projects require a software license for the arm compiler to successfully build anelf image.
Bare-metal executable non-OS executable files
Uses the arm compiler toolchain to build a bare-metal executable elf image.
Bare-metal static library non-operating system static library
Uses the arm compiler toolchain to build a library of ELF object format
Members for a bare-metal project.
Note: It is not possible to debug or run a stand-alone library file until it is linked into an image.
Executable File
Uses the GNU compilation tools to build a Linux executable elf image.
Shared Library
Uses the GNU compilation tools to build a dynamic library for a Linux application.
Static Library
Uses the GNU compilation tools to build a library of ELF object format members for a Linux application.
Note: It is not possible to debug or run a stand-alone library file until it is linked into an image.
Makefile Project
Creates a project that requires a makefile, that you can write yourself, to build the project.
Note: Eclipse does not modify makefile projects.
Build deployments: Debug and release.