
83
Bare-Metal Package
DesignWare ARC AXC003 CPU Card User Guide
Version 6323-018
Synopsys, Inc.
May 2017
Building Bare-Metal Applications Using gmake
The batch script
build.bat
can be used to build the applications. This script is based on
gmake
. It executes
gmake
, passing variables according to the command line options provided.
and Table 37 explain the available options of this script.
Build Script Options
Table 37
Command Line Options for build.bat
Option
Value
Description
-app
The name of the subdirectory of the
/software/
baremetal/apps
directory, which contains the makefile
for the selected application
-core
archs36
Select ARC HS36 core
archs38
Select ARC HS38 core
-console uart0
Debug console is connected to the
UART0
interface at the
DB9 connector
1)
or at the Pmod connector
1) 2)
uart1
Debug console is connected to the
UART1
interface at the 6-
pin header
1)
or at the Pmod connector
1) 2)
usb_uart
Debug console is connected using the USB data port
1)
(using the UART2 peripheral); default
nouart
No console output
-memory
ddr
Image to be executed from DDR3 SDRAM; default
The code is built using the start address
0x8000_0000
.
ram
Image to be executed from local SRAM
The code is built using the start address
0x2000_0000
.
ccm
Enabling this option in combination with archs36 emulates
the ARCv2HS34 CPU.
The code is built using start address 0x1000_0000, data
sections are mapped to DCCM starting from 0xC000_0000