ArcBareMetal
ARC Bare Metal Platform
What is a bare Metal Platform?
A "Bare Metal" Platform consists of a single processor with memory available over its complete address range.
This is ideal for execution of a user application that has been compiled for the target processor core using cross-compilation.
Obtaining the ARC Bare Metal Platform
 | DOWNLOAD ARC Bare Metal Platform installer for Windows 32-bit host BareMetalArc.Windows32.exe / 1.54 MB |
 | DOWNLOAD ARC Bare Metal Platform installer for Linux 32-bit host BareMetalArc.Linux32.exe / 1.71 MB |
Running the Bare Metal Platform
- Run the installer to install into a local directory on your PC. We recommend you use a path without spaces, for example your home directory.
- Enter the Demo Directory <IMPERAS_HOME>/Demo/BareMetalArc
- On Windows, double-click on the batch file hello.bat and on Linux run the script hello.sh to run a simple 'Hello World' application on the PowerPc32 Bare Metal Platform
You will see output that includes:
Info (ARC_MAIN_ANS1) Attribute 'end-on-halt' not specified; defaulting to '0'
Info (ARC_MAIN_ANS1) Attribute 'endian' not specified; defaulting to 'little'
Info (ARC_MAIN_ANS1) Attribute 'format' not specified; defaulting to 'gdb'
Info (ARC_MAIN_ANS1) Attribute 'dump-bcrs' not specified; defaulting to '0'
Info (ARC_MAIN_ANS2) Attribute 'opt-interrupts' not specified; defaulting to '8'
Info (ARC_MAIN_ANS1) Attribute 'variant' not specified; defaulting to '600'
Info (ARC_MAIN_ANS1) Attribute 'opt-swap' not specified; defaulting to '1'
Info (ARC_MAIN_ANS1) Attribute 'opt-norm' not specified; defaulting to '1'
Info (ARC_MAIN_ANS1) Attribute 'opt-extended-arith' not specified; defaulting to '0'
Info (ARC_MAIN_ANS1) Attribute 'opt-multiply' not specified; defaulting to '0'
Hello
Info
Info ---------------------------------------------------
Info CPU 'CPU1' STATISTICS
Info Type : ARC
Info Nominal MIPS : 100
Info Final program counter : 0xf0
Info Simulated instructions: 3,359
Info Simulated MIPS : 0.1
Info ---------------------------------------------------
Info
Info ---------------------------------------------------
Info SIMULATION TIME STATISTICS
Info Simulated time : 0.00 seconds
Info User time : 0.02 seconds
Info System time : 0.00 seconds
Info Elapsed time : 0.04 seconds
Info ---------------------------------------------------
Setting Up for Re-building the ARC Application
To rebuild the ARC application and platform you will need the
- ARC Cross-Compiler toolchain
- An OVP installation
- MSYS / MINGW environment (Windows Users Only)
Obtaining OVP
 | [for Windows] Main OVP Download including OVPsim Simulator (49.78 MB) Binary of the simulator, headers, examples of creating processors, peripherals and platforms, and running. Includes full documentation. Includes many models as source code. |
 | [for Linux] Main OVP Download including OVPsim Simulator (57.7 MB) Binary of the simulator, headers, examples of creating processors, peripherals and platforms, and running. Includes full documentation. Includes many models as source code. |
Once downloaded run the installer
*.Windows32.exe for Windows and *.Linux32.exe for Linux to install on your PC.
Download and Installing ARC Cross-Compiler Toolchain
As part of the OVPsim installation default Makefiles are supplied to allow applications to be built using the Codito toolchains for ARC for the ARC600 and ARC700 family processors.
WARNING: The toolchain from Codito is no longer available.
There are no Makefiles currently compatible with free GNU toolchains that are available. We will add new Makefiles in the future that will support other Cross Compilers for ARC, such as that provided at
http://sourceforge.net/projects/arc-linux/files/ARC%20GNU%20Toolchain/∞
In the meantime, please download available Cross Compiler toolchains and follow the instructions provided to compile and link code for the ARC600 and ARC700 processors.
Installing MSYS / MINGW Environment (Windows Users Only)
Obtaining and installing the MSYS and MINGW environment is described in
Imperas_Installation_and_Getting_Started.pdf
Rebuilding
You will need to be in the BareMetalArc directory using an MSYS shell for Windows or a Linux shell.
Re-building the ARC Application
>
make application
Re-building the Bare Metal Platform
>
make platform
Executing the application on the platform
You can just double click on the .bat file as done previously, or you can run from the msys command line:
>
./BareMetalArc.<OS>.exe hello.<CROSS>.elf
CategoryPlatform ImperasPage ARCInternationalPage