2040 views|3 replies

274

Posts

8

Resources
The OP
 

【Sipeed LicheeRV 86 Panel Review】 8- Review Summary [Copy link]

 

After more than a month of hard work, I finally completed the evaluation task of the RV86 development board. This evaluation focused on the development of the application layer, and did not do any underlying work on RV86. However, I wrote a lot of code on the remote terminal of STM32.

Let’s summarize this evaluation.

1. Development steps

  1. Burn the firmware to the development board. The official will provide burning tools and compiled firmware. Use the tool to download the firmware to the development board.

  2. Establish the communication mode of the development board. The most basic mode is to communicate through the serial port. If the networking mode is configured, such as wifi, you can remotely connect to the development board through SSH. You can also transfer files through the SCP command. RV86 also provides ADB communication mode, so you can connect to the development board through USB, communicate with the development board and transfer files through commands adb shell.adb push

  3. Build a cross-compilation environment on Ubuntu. Use the official SDK and run the script to build a cross-compilation environment. The purpose of building a cross-compilation environment is to obtain an environment that can generate applications on the development board, including compilation tools such as gcc and g++, header files and the corresponding lib library of the header files, and set the corresponding environment variables.

  4. Start writing programs. The simplest program should be a shell script program, which can be run without compilation. For C language programs, you need to cross-compile on the computer and then transfer them to the development board to run. If you want to use Python language, you need to compile it on the computer through a cross-compilation environment first, generate the relevant lib library and Python executable program, and then transfer it to the development board for use.

2. Program Design of Assessment Project

This evaluation uses C language + Python language.

  1. Use C language to write lvgl screen display code. lvgl accesses screen data through "/dev/fb0" and touch screen data through "/dev/input/event2". Then communicate with Python process through socket to transfer and obtain relevant data. Tabview, label, img, switch, table and other controls are used on lvgl, and Fangsong 24 Chinese font library is installed.

  2. The version of Python used was 3.8, and two processes were written using Python.

  • The first process is a background process, which establishes two sockets, one for communication with the lvgl display process and one for communication with the remote TCP server. It realizes the interaction with the lvgl process and the remote stm32 development board, and can control the remote LED, obtain the remote temperature data, and save it to a file.
  • The second process is used as the startup process to start the above background process, the lvgl display process, and the voice playing process. The voice playing is aplay -D hw:0,0 xxxx.wavplayed using the command.

This completes the programming of the entire evaluation project.

3. Effect Demonstration

4. Code

Python源代码.rar (1.4 KB, downloads: 1)

c源代码.rar (5.15 KB, downloads: 1)

This post is from Domestic Chip Exchange

Latest reply

nmg
There is no limit to the freedom of expression. If you have any ideas or want to evaluate them, you can share them. Will requiring users to submit evaluation plans limit their freedom of expression? Can you elaborate on this and let us see how to balance and improve it?   Details Published on 2022-4-27 16:21
 
 

6818

Posts

11

Resources
2
 
Just complete the task. Sometimes I feel that just completing the task will lose the fun!
This post is from Domestic Chip Exchange

Comments

nmg
Indeed, if you just want to complete the task, you don't want to explore other content. But it's good to have a goal, so that you can focus on completing a part of the content.  Details Published on 2022-4-27 16:21
Indeed, if you just want to complete the task, you don't want to explore other content. But it's good to have a goal, so that you can focus on completing a part of the content.  Details Published on 2022-4-24 09:06
 
 
 

274

Posts

8

Resources
3
 
lugl4313820 posted on 2022-4-23 08:30 Just complete the task. Sometimes, I feel that just for the sake of completing the task, I lose the fun!

Indeed, if you just want to complete the task, you don't want to explore other content. But it's good to have a goal, so that you can focus on completing a part of the content.

This post is from Domestic Chip Exchange
 
 
 

5213

Posts

239

Resources
4
 
lugl4313820 posted on 2022-4-23 08:30 Just complete the task. Sometimes, I feel that just for the sake of completing the task, I lose the fun!

There is no limit to the freedom of expression. If you have any ideas or want to evaluate them, you can share them.

Will requiring users to submit evaluation plans limit their freedom of expression? Can you elaborate on this and let us see how to balance and improve it?

This post is from Domestic Chip Exchange
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list