REPOSITORY URL: https://bitbucket.org/8bitgeek/briscits-bsp
________ ________ ___ ________ ________ ___ _________ ________
|\ __ \|\ __ \|\ \|\ ____\|\ ____\|\ \|\___ ___\\ ____\
\ \ \|\ /\ \ \|\ \ \ \ \ \___|\ \ \___|\ \ \|___ \ \_\ \ \___|_
\ \ __ \ \ _ _\ \ \ \_____ \ \ \ \ \ \ \ \ \ \ \_____ \
\ \ \|\ \ \ \\ \\ \ \|____|\ \ \ \____\ \ \ \ \ \ \|____|\ \
\ \_______\ \__\\ _\\ \__\____\_\ \ \_______\ \__\ \ \__\ ____\_\ \
\|_______|\|__|\|__|\|__|\_________\|_______|\|__| \|__| |\_________\
\|_________| \|_________|
BOARD SUPPORT
This is a Board Support project for BRISCITS.
https://github.com/riscv/riscv-openocd
riscv-openod-0.00.0-aarch64.tar.gz
https://github.com/riscv/riscv-gnu-toolchain
./configure --prefix=/opt/riscv --with-arch=rv32i --with-abi=ilp32 --enable-multilib
riscv32-unknown-elf-gcc-aarch64-11.1.0.tar.gz
git clone https://github.com/8bitgeek/briscits-bsp.git
cd briscits-bsp
git submodule init
git submodule update
Prior to compiling for a particular CPU target, some environment variables need to be set up.
- BRISC_CPU should reference one of the CPU support packages under the cpu/ folder.
- BRISC_GCC should contain the 'gcc' compiler prefix.
- BRISC_CFLAGS should contains compiler flags for instance "-ggdb" or "-Os"
export BRISC_CPU=riscv/BumbleBee/RV32IMAC
export BRISC_GCC=riscv32-unknown-elf
export BRISC_CPU=riscv/Qingke/RV32IMAC
export BRISC_GCC=riscv32-unknown-elf
export BRISC_CPU=arm/cortex-m7
export BRISC_GCC=arm-none-eabi
export BRISC_CFLAGS=-ggdb
export BRISC_CFLAGS=-Os
cd briscits
make
cd ..
make -f bsp/sipeed-longan-nano/Makefile
make -f bsp/generic-stm32f746/Makefile
/opt/riscv-openocd/bin/openocd -c "adapter speed 1000" \
-f /opt/riscv-openocd/share/openocd/scripts/interface/ftdi/um232h.cfg \
-f /opt/riscv-openocd/share/openocd/scripts/target/gd32vf103.cfg
riscv-unknown-elf-gdb ./main.elf
target extended-remote localhost:3333
load main.elf
break main
continue
....or....
riscv-unknown-elf-gdb -x scripts/gdbinit
/opt/riscv-openocd/bin/openocd -c "adapter speed 1000" \
-f /opt/riscv-openocd/share/openocd/scripts/interface/ftdi/um232h.cfg \
-f /opt/riscv-openocd/share/openocd/scripts/target/gd32vf103.cfg \
-c "program main.elf verify reset exit"