Board Support Package For SparkFun RED-V RedBoard
Introduction
This board support package (BSP) supports SparkFun RED-V RedBoard. It is based on SparkFun Freedom-E-SDK and uses xPack GNU RISC-V Embedded GCC Version 8.3.0-2020.04.1 compiler tool chain for generating required binaries. Link: https://xpack.github.io/riscv-none-embed-gcc
Getting Started
· Install USB FTDI drivers from manufacturers web site.
· Create model and build to generate required binary.
· Refer below for programming and debugging support.
Board Configuration
· General Configuration
Configuration Parameter |
Parameter Value |
Board Title |
SparkFun RED-V RedBoard |
Tool Chain Type |
Local Build |
Board Preprocessor Symbol |
_BUILD_BRD_HIFIVE1_REVB |
Platform Preprocessor Symbol |
_BUILD_PLT_RISCV_SIFIVE |
Compiler Preprocessor Symbol |
_BUILD_CMP_RISCV_GCC |
C++11 Standard Support |
No |
File System Support |
No |
OpenMP/OpenCL/CUDA Support |
No/No/No |
Simulation Panel Support |
No |
· Hardware Configuration
Configuration Parameter |
Parameter Value |
Number of CPU cores |
1 |
Dynamic Memory Support |
Yes |
Prefer Fixed/Floating Point |
Floating Point |
DI/DO Pins |
0 (RX0)[16], 1 (TX0)[17], 2 (TX1)[18], 3[19], 4[20], 5[21], 6[22], 7 (RX1)[23], 8[0], 9[1], 10 (SPI1-SS0)[2], 11 (SPI1-MOSI)[3], 12 (SPI1-MISO)[4], 13 (LED)(SPI1-SCK)[5], 15[9], 16[10], 17[11], 18 (I2C-SDA)[12], 19 (I2C-SCL)[13] |
ADC Default Resolution |
0 |
ADC Pins |
- |
PWM Default Resolution |
8 |
PWM Pins |
3 (PWM1-1)[19], 5 (PWM1-2)[21], 6 (PWM1-3)[22], 9 (PWM0-1)[1], 10 (PWM0-2)(SPI1-SS0)[2], 11 (PWM0-3)(SPI1-MOSI)[3], 17 (PWM2-1)[11], 18 (PWM2-2)(I2C-SDA)[12], 19 (PWM2-3)(I2C-SCL)[13] |
DAC Default Resolution |
0 |
DAC Pins |
- |
UART0 |
Via USB Programmer Port |
UART1 Pins |
0(RX0), 1(TX0) |
UART2 Pins |
2(TX1), 7(RX1) |
SPI Pins |
11(MOSI), 12(MISO), !3(CLK) |
I2C Pins |
SDA, SCL |
Programmer
CASP supports Programmer0 (via cmd.exe) for uploading generated binary file to the board flash memory. For this to work, user has to enter the USB storage device drive letter that the RedBoard creates (whenever it is connected to the host computer) in CASP Setup Simulation Parameters.> Target HW > General > Target Hardware Programmer Port parameter.
On Windows platforms: Just type the drive letter (example ‘E’) in the Programmer Port parameter mentioned above.
On Linux platforms: Type complete path of the drive along with the current user name (Example ‘/media/sample_user/HiFive’) in the Programmer Port parameter mentioned above.
Debugging
Debugging is supported over USB serial.
Known Issues & Limitations
- This BSP is presently work in progress.
- Very often UART not working at 115200 bps.
- Serial not working when other blocks are enabled