background image

Development Environment Setup on MacOS 

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

www.open-isa.org 

 

 

 

 

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. 

3.3  Install Eclipse IDE for C/C++ Developers 

To install Eclipse IDE for C/C++ developers, follow these steps: 
1.

 

Download the GNU MCU Eclipse IDE for C/C++ from 

GitHub releases

 

 

Download the latest available version 

 

Select the

 

-linux.gtk.x86

 file for x32 Linux and 

-linux.gtk..x86_64 

for x64 Linux 

2.

 

Unpack the archive and move the Eclipse folder at a place of your choice. 

3.

 

Set the 

Global RISC-V Toolchains Paths 

and 

Global OpenOCD Path

 to the correct folders 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 toolchain.  

 
 
 
 
 
 
The toolchain is installed to /opt/pulp. However, you may install to any location and update the system 

variables accordingly described below. 

www.open-isa.org

 also provides the pre-built RV32M1 GCC Toolchain. User can download the package 

and extract and install the toolchain. 

3.

 

Install CMake 
 

brew

 

install

 gawk gnu

sed gmp mpfr libmpc isl zlib 

git

 

clone

 –recursive https://github.com/pulp-platform/pulp-riscv-gnu-toolchain 

cd

 pulp-riscv-gnu-toolchain 

./configure --prefix=/opt/riscv --with-arch=rv32imc -–with-cmodel=medlow --

enable-multilib 

make 

brew

 install

 cmake

 

 

Содержание 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: ... ...

Отзывы: