background image

Development Environment Setup on Windows 

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

 

www.open-isa.org 

 

 

 

2. Development Environment Setup on Windows 

This section describes how to set up the RISC-V development environment for RV32M1 in a Windows 

environment.  

2.1  Install Requirements and Dependencies 

RV32M1 uses the OpenOCD debugger that can work on the connection from Telnet Client to debug the 

application. The Windows Telnet Client needs to be installed if you use OpenOCD and telnet to 

debug/run an application. 
To install Telnet Client, run following command using the 

cmd.exe

 command prompt: 

 
 

2.2  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

 

-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 by 

the external builder.  
Follow these steps to install Windows Build Tools on your Windows host system. 
1.

 

Download the GNU MCU windows Build Tools from the 

GitHub Releases

. 

 

Download the latest available version 

 

Select the

 

-win32

 file for x32 Windows and 

-win64 

for x64 Windows 

2.

 

Unzip the package at the 

Eclipse

 folder created in the 

step 2.1

. 

 

Although possible to install the build tools in any folder, it’s recommended to install it under 

Eclipse unzipped folder for clean and tidy purpose.  

3.

 

Go to the 

Eclipse

 

menu → 

Windows

 

→ 

Preferences

 to set 

Global Build Tools Path

 to its installed 

location as showed in the 

Figure 1

 

 

 

pkgmgr /iu:"TelnetClient"

 

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

Отзывы: