background image

Revision history 

Setting Up RISC-V Development Environment for RV32M1-VEGA, User’s Guide, Rev. 0 

10 

 

www.open-isa.org 

 

 

 

 

4.

 

Update system variables 
 

 

4.2  Install OpenOCD 

1.

 

Install requirements and Dependencies 
 

 
 
 

2.

 

www.open-isa.org

 also provides the pre-built OpenOCD binary for RV32M1. Download it and 

extract the file. Ensure the install location is added in the PATH system variable. 

5  References 

Following references are available on 

www.open-isa.org

: 

 

RV32M1-VEGA-SCH: Schematics 

 

RV32M1-VEGA-LAYOUT: Layout 

 

RV32M1_VEGA_Board_User_Guide 

 

RV32M1RM: Reference Manual 

 

RV32M1DS: Datasheet 

 

6  Revision history  

Rev.  Date 

Substantive change(s) 

11/2018 

Initial release 

export

 

PATH

=

$PATH

:/opt/pulp/bin 

export

 

RISCV32GCC_DIR

=

"/opt/pulp"

 

sudo 

apt-get install

 autoconf automake autotools-dev curl libmpc-dev libmpfr-dev 

libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc 

zlib1g-dev libusb-1.0-0-dev libudev libudev1 libudev-dev g++ 

Summary of Contents for RV32M1-VEGA

Page 1: ... operating system In each operating system you can set up a GUI based development system with the Eclipse IDE or use command line simply if you prefer it To set up the development system you can follow one of the following guides according to your host operation system Windows Linux macOS WWW OPEN ISA ORG RM32M1 VEGA User s Guide Contents 1 Introduction 1 2 Development Environment Setup on Windows...

Page 2: ...lect the win32 win32 x86 file for x32 Windows and win32 win32 x86_64 for x64 Windows 2 Unzip the downloaded package at a place of your choice for example root directory of D 2 3 Install Windows Build Tools This step is optional Skip this section if you never use Eclipse external builder otherwise you need to GNU MCU Eclipse Windows Build Tools Because make and rm executable binaries are required b...

Page 3: ...er toolchain from the www open isa org website 2 Unzip the downloaded package at the GNU MCU Eclipse folder created in the step 2 2 a Although possible to install the toolchain in any folder it s recommended to install it under D clipse GNU MCU Eclipse folder for clean and tidy purpose 3 Go to the Eclipse menu Windows Preferences to set Global RISC V Toolchains Paths to its installed location as s...

Page 4: ...to install the toolchain in any folder it s recommended to install it under D clipse GNU MCU Eclipse folder for clean and tidy purpose 3 Go to the Eclipse menu Windows Preferences to set Global OpenOCD Path to its installed location as showed in the Figure 3 4 Add the path of OpenOCD exe for example D eclipse GNU MCU Eclipse openocd bin to the environment variable PATH 5 Plug in the J Link hardwar...

Page 5: ...vironment Setup on Windows Setting Up RISC V Development Environment for RV32M1 VEGA User s Guide Rev 0 www open isa org 5 Figure 3 set Global OpenOCD Path to the installed location Figure 4 Install J Link USB driver ...

Page 6: ...and line to build debug and run an application additional software tools are needed The following sub sections describe how to install additional software tools for command line build environment 2 7 Install CMake for Command Line Mode Download the latest CMake from https cmake org download Select the win32 x86 or win64 x64 version according to your Windows system Suggest using Windows installer f...

Page 7: ... a basic shell with a Unix like interface and tools 1 Download the latest MinGW mingw get setup installer from sourceforge net projects mingw files Installer 2 Run the installer The recommended installation path is C MinGW however you may install to any location Note the installation path cannot contain any spaces 3 Ensure that the mingw32 base and msys base are selected under Basic Setup Figure 6...

Page 8: ...can download the package and extract and install the toolchain 3 Install CMake 4 Update system variables 3 2 Install OpenOCD 1 Install requirements and Dependencies sudo apt get install autoconf automake autotools dev curl libmpc dev libmpfr dev libgmp dev gawk build essential bison flex texinfo gperf libtool patchutils bc zlib1g dev libusb 1 0 0 dev libudev libudev1 libudev dev g export LD_LIBRAR...

Page 9: ...used in the 3 1 and 3 2 subsections 4 Development Environment Setup on MacOS The section describes the steps to install the necessary software tools required to build and run a RV32M1 SDK demo application on Linux operating system All steps are verified on Ubuntu 18 04 4 1 Install RV32M1 GNU GCC Toolchain and CMake 1 Install requirements and Dependencies 2 Clone and build the RV32M1 GNU Compiler t...

Page 10: ...em variable 5 References Following references are available on www open isa org RV32M1 VEGA SCH Schematics RV32M1 VEGA LAYOUT Layout RV32M1_VEGA_Board_User_Guide RV32M1RM Reference Manual RV32M1DS Datasheet 6 Revision history Rev Date Substantive change s 0 11 2018 Initial release export PATH PATH opt pulp bin export RISCV32GCC_DIR opt pulp sudo apt get install autoconf automake autotools dev curl...

Page 11: ......

Page 12: ... ...

Reviews: