background image

 

 

Setting Up RISC-V Development 

Environment for RV32M1-VEGA

1. Introduction 

This guide describes the setup for the RISC-V 

development environment of RV32M1-VEGA board. 

The RV32M1-VEGA development board is a small, 

low-power, and cost-effective evaluation and 

development board for application prototyping and 

demonstration of the RV32M1 device. The RV32M1 

device integrates two RISC-V cores: a RI5CY core and 

a ZERO_RISCY core. There’s a JTAG port used to 

debug two RISC-V cores. For detailed information on 

the RV32M1 device, see RV32M1RM document. 
The setup for RIS-V development environment of 

RV32M1 includes installing GNU GCC toolchain, 

OpenOCD debugger, Eclipse and its configurations for 

RISC-V, and Software Development Kit (SDK) for 

RV32M1.  
The development system of RV32M1 RISC-V supports 

Windows, Linux, and MacOS 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 ................. 2

 

2.1

 

Install Requirements and Dependencies .................. 2

 

2.2

 

Install Eclipse IDE for C/C++ Developers .............. 2

 

2.3

 

Install Windows Build Tools .................................. 2

 

2.4

 

Install RV32M1 GNU GCC Toolchain ................... 3

 

2.5

 

Install OpenOCD .................................................... 4

 

2.6

 

Install RV32M1 SDK.............................................. 6

 

2.7

 

Install CMake for Command Line Mode ................ 6

 

2.8

 

Install MinGW for Command Line Mode ............... 7

 

3.

 

Development Environment Setup on Linux ....................... 8

 

3.1

 

Install RV32M1 GNU GCC Toolchain and CMake 8

 

3.2

 

Install OpenOCD .................................................... 8

 

3.3

 

Install Eclipse IDE for C/C++ Developers .............. 9

 

4.

 

Development Environment Setup on MacOS .................... 9

 

4.1

 

Install RV32M1 GNU GCC Toolchain and CMake 9

 

4.2

 

Install OpenOCD .................................................. 10

 

5

 

References ........................................................................ 10

 

6

 

Revision history ............................................................... 10

 

Содержание RV32M1-VEGA

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 11: ......

Страница 12: ... ...

Отзывы: