Skip to content
/ RV32-BM Public

A bare metal system for the 32-bit RISC-V processor using the Longan Nano development board (GD32VF103).

License

Notifications You must be signed in to change notification settings

cy023/RV32-BM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RV32-BM

A bare metal system for the 32-bit RISC-V processor using the Longan Nano development board (GD32VF103).

Environment and Tools

Toolchain

riscv-collab/riscv-gnu-toolchain

According to the instructions, configure and compile the GCC toolchain and integrate it into the environment. Ensure that the toolchain supports rv32imac/ilp32 with the following specifications: @march=rv32imac and @mabi=ilp32.

$ riscv64-unknown-elf-gcc -print-multi-lib
.;
rv32i/ilp32;@march=rv32i@mabi=ilp32
rv32im/ilp32;@march=rv32im@mabi=ilp32
rv32iac/ilp32;@march=rv32iac@mabi=ilp32
rv32imac/ilp32;@march=rv32imac@mabi=ilp32
rv32imafc/ilp32f;@march=rv32imafc@mabi=ilp32f
rv64imac/lp64;@march=rv64imac@mabi=lp64
rv64imafdc/lp64d;@march=rv64imafdc@mabi=lp64d

Debug Tools

  1. Use GD32_MCU_Dfu_Tool. (only for Windows)
  2. Use JTAG debugger with OpenOCD.
    • RV-Link / Jlink / FT2232H module / ...

Specification Reference

About

A bare metal system for the 32-bit RISC-V processor using the Longan Nano development board (GD32VF103).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published