RISC-V low-cost experience - using the Arduino to develop the Hummingbird E203 program

tags: RISC-V  Arduino  Hummingbird E203

Operating system: Windows 10 64bit

FPGA Development Board: LicheeTang (Anlogic EG4S20BG256)

RV Debugger: Sipeed USB-JTAG/TTL (FT2232D)

 RV

First, download the Hummingbird RV core

  1. Download the latest version of TD and install it on the official website of Anlu

according tohttp://tang.lichee.pro/get_started/driver.htmlMethod of installing drivers

  1. Download Hummingbird E203 Source

https://github.com/Lichee-Pi/Tang_E203_Mini

  1. Open the project e203egmini_new.al Click the run button to compile and generate the stream file.

  2. Download code stream to FPGA Flash

according tohttp://tang.lichee.pro/get_started/fpga_download.html

Second, install RV debugger driver (FT2232D)

  1. Insert RV Debugger (FT2232D)

Open Device Manager and there are two other devices (default both are Dual
RS232, win10 will automatically install the serial port driver for one of them)

  1. install driver

Driver download address

After downloading and installing the driver, a serial device and a universal serial bus device appear in the device manager.


This driver is installed.

Third, install the Arduino environment

1.Arduino->File->Preferences->Additional Development Board Manager URL

->Input ->

-> Good

2. Tools -> Development Board -> Development Board Manager

->LicheeTang Hbird E203 Board ->Installation

  1. Connect RV debugger with LicheeTang
LicheeTang RV debugger
C9 TMS
B6 TDI
C5 TCK
A4 TDO
J13(TX0) RX
H14(RX0) TX
G GND
  1. Set development board information and programmer

Development Board->LicheeTang Hbird E203 Board

Port->Debugger serial port number

Programmer->LicheeTang OpenOCD

  1. Flash test program
#define LED_RED 9
#define LED_BLUE 10
#define LED_GREEN 11
#define DELAY_TIME 1000

void setup() {

  Serial.begin(9600);
  pinMode(LED_RED, OUTPUT);
  pinMode(LED_GREEN, OUTPUT);
  pinMode(LED_BLUE, OUTPUT);
  digitalWrite(LED_RED, HIGH); 
  digitalWrite(LED_GREEN, HIGH);
  digitalWrite(LED_BLUE, HIGH);
  Serial.println("Blink Test:");
}

void loop() {
  digitalWrite(LED_RED, LOW);  
  Serial.println("LED RED : ON");
  delay(DELAY_TIME);                      
  digitalWrite(LED_RED, HIGH);
  Serial.println("LED RED : OFF");
  delay(DELAY_TIME);                      
  digitalWrite(LED_GREEN, LOW); 
  Serial.println("LED GREEN : ON");
  delay(DELAY_TIME);                      
  digitalWrite(LED_GREEN, HIGH); 
  Serial.println("LED GREEN : OFF");
  delay(DELAY_TIME);                      
  digitalWrite(LED_BLUE, LOW); 
  Serial.println("LED BLUE : ON");
  delay(DELAY_TIME);                       
  digitalWrite(LED_BLUE, HIGH);
  Serial.println("LED BLUE : OFF");
  delay(DELAY_TIME);                      
}

Click Upload to wait for the upload to succeed, then open the serial monitor to see the flash status output.

  1. LicheeTang and Arduino interface correspondence
LicheeTang Arduino
H13 0(RX0)
J13 1(TX0)
R16 2
M12 3~
P12 4
N11 5~
L10 6~
P11 7
A3 8
N3(LED_RED) 9
M4(LED_BLUE) 10
P4(LED_GREEN) 11
B10 12
B14 13
B16 14
C16 15
C15 16
E16 17~
F16 18~
J11 19~

Note: Currently it is only a simple migration from Hifive, there is incompatible code, please wait for the subsequent version to fix, this version is only for demonstration.

Intelligent Recommendation

DDR200T TFT - LCD Display Image NucleiStudio Hummingbird E203 Detailed Tutorial RISC-V

DDR200T TFT - LCD Display Image NucleiStudio Hummingbird E203 Detailed Tutorial RISC-V Foreword IMG2LCD software generates RGB565 format picture Using the model software to print Experimental results ...

Teach you to transplant the hummingbird E203 HBRIDV2 [Ji Chuangxin Risc-V Cup]

Articles directory 1. Pipeline analysis 1.1 clock tube foot 1.2 Subticking pipe foot 1.3 QSPI interface 1.4 PMU tube feet 1.5 Other tube feet 1.6 IP_RESET_SYS processing 1.7 Power Process Control Conf...

Vivado Hummingbird E203 MCU200T/DDR200T Add Mig IP DDR3 Controller RISC-V

Vivado Hummingbird E203 MCU200T/DDR200T Add Mig IP DDR3 Controller RISC-V DATASHEET-MT41K128M16JT-125 1. New IP-MEMIRY Interface Generator after the new project 2. Select DDR3 SDRAM 3. New Memory Part...

[Hummingbird E203 kernel analysis] Chap.1 RISC-V instruction set architecture and hardware structure)

[Hummingbird E203 kernel analysis] Chap.1 RISC-V instruction set architecture and hardware structure 1. Instruction collection architecture 1.1 RISC-V instruction set architecture 1.2 instruction type...

Open source RISC-V processor (Hummingbird E203) Study (5) A100T-FPGA transplants Hibirdvv2, realize CentOS downward test device USB identification and program compilation, and perform C language simulation

1. Brief description Recently, I bought a piece suitable for verification FPGA board cards. The board and card interface and peripherals are relatively rich, which is very suitable for running some sm...

More Recommendation

E203 Hummingbird RISC-V processor code reading notes of execution unit instruction conflict handling Outstanding Instruction Track FiFo e203_exu_oitf.v

For the study of the code, I combined my own understanding to make detailed comments on the interface of each module and the key internal signals. The original is not easy, please protect the copyrigh...

Run RISC-V E203 with VCS Simulation

table of Contents Existing environment 2. Steps 2.1 Download the E200 OpenSource project to the local Linux environment 2.2 Compile RTL code 2.3 Modify VISM / Install / TB / TB_TOP.V 2.4 Modify VSIM /...

Simulation of Hummingbird e203

1. Under Linux system, use VCS simulation 1. Add RTL file and tb file 2. Prepare soft core test program: gpio4sim.verilog Note: (1) coremark4sim, dhrystone4sim are also available (2) This is the test ...

Hummingbird E203 coprocessor

Coprocessors are used to offload specific processing tasks from the system's microprocessor For a 3×3 matrix, each element in the matrix is ​​a 32-bit integer. Calculate the cumulative sum row b...

Hummingbird E203 Image recognition-

Hummingbird E203 Image recognition- FPGA burning What is the role of NICE Neural network soft nuclear IP library NMSIS NN MCU200T uses Xilinx XC7A200T-2 FPGA chip. The camera is either a USB camera or...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top