Skip to content

Install GNU MCU Eclipse RISC V Embedded GCC on Linux system

Rafael de Figueredo Viana edited this page Feb 15, 2020 · 2 revisions

Install RISCV embedded compiler:

  • Goto RISCV GNU GCC and download preferred version;
  • Copy content to installation folder, i.e. /opt: sudo cp -r riscv-none-gcc /opt/
  • Export bin path to .bashrc (i.e. PATH=/opt/riscv-none-gcc/8.2.0-2.2-20190521-0004/bin:${PATH});
  • Execute $ source ~/.bashrc;
  • Execute $ riscv-none-embed-gcc --version;
  • It should exhibit something like:
  • riscv-none-embed-gcc (GNU MCU Eclipse RISC-V Embedded GCC, 64-bit) 8.2.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Install GNU MCU Eclipse IDE for C/C++ Developers:

  • Goto ECLIPSE C/C++ IDE and download preferred version;
  • Copy content to desired installation folder, i.e. /opt: sudo cp -r eclipse/ /opt/
  • Export path to .basrhc (i.e. PATH=/opt/eclipse:${PATH});
  • Execute $ source ~/.bashrc;
  • Execute $ eclipse;
  • Eclipse IDE should open after executing the command. Use the Firmware Project to evaluate both Eclipse IDE and RISCV toolchain.