当前位置:网站首页>Yushenle's learning record: the first project of SOC FPGA -hello world
Yushenle's learning record: the first project of SOC FPGA -hello world
2022-07-26 15:56:00 【YuKaguraNe】
List of articles
One 、Soc Environment configuration
1. Image burning
1) format TF card :
First the TF card format For a volume
2) Using tools : Win32DiskImager
Will be prepared in advance linux Simple image burn TF In the memory card 
3) Start and use serial port debugging
1、 First, connect the serial port connection , Then turn on the computer Device manager .
as follows :
Generally, it can be in port Found at , If in Other equipment Found in ( Usually with yellow exclamation point ) It means there is a problem with the drive , Update can .
2、 Use MobaXterm Connecting boards
Session Set as follows :
3、 Press... On the board after the connection is completed RST Key , You can see the loading as follows :
4、 Just log in as a user 
Here we are SoC Of linux The environment has been set up .
Two 、Soc The golden project
1. Introduction to gold project
What is? Soc What about the golden project , In fact, it is done for a specific board Formwork works , Relevant Peripherals and HPS Etc. are configured in the project , Pin Also bind the completed project accordingly .
2. The benefits of using gold Engineering
Use the golden project , It can greatly reduce the burden of novice developers SoC Difficulty of project establishment , There is no need to write related top-level files , Developers only need to work in the golden project , On demand Discard or add the peripherals or interfaces you want .
3、 ... and 、Soc And hello world
1.SSH To configure
Get into ssh The configuration directory
cd /etc/ssh/

To configure ssh Set up
vi sshd_config

Will be the first 44 The row is configured as PermitRootLogin yes
So far SSH Configuration complete
2. The network configuration
To configure Soc Board static address
Enter the network configuration folder
cd /etc/network

modify interfacces The configuration file
vi interfaces
as follows :
Here, the address of the board can be configured arbitrarily
After the configuration is completed, you can use the restart command to restart the board
reboot
After the restart is completed, enter
ifconfig
Check if the configuration is successful 
You can see that the configuration is complete
Configure computer network address

Modify network settings 
The address here can also be configured at will , But the main thing is Need to be on a network among .
This is related to the network Network configuration completed
3. Software coding
Code writing
Open up Quartus Directory embedded/ds-5/bin Medium eclipse
In the previous gold project app Folder Store software projects 
On the eclipse New China C project 
Add source files to the project hello_world.c
Write code
#include<stdio.h>
int main(){
while(1)
{
printf("Hello World\n");
//sleep(1);
}
}
Environment configuration

The files to be configured are as follows :
hps_0.h
Put hps_0.h Just copy it into the project 
rest include To configure 
Project — Properties

Select settings select C++ routine , Click the right side. add Add the path as shown in the figure
4. Code compilation and running
Compile code

After compilation, the following will appear Binary 
If an error is reported , Note that after the code is written Pay attention to saving the file ,eclipse Code will not be saved automatically
function
Use eclipse Remote SSH Connect to the board 
Open the window shown above 
choice Remote System Explorer
Note that the address in the red box is Board configuration ip Address ,eclipse visit linux, The host to linux.
Input Login username and password that will do
Then the binary file generated by the previous compilation hello_world Copied to the 
Root directory opt Under the document
Open the terminal in this directory
chmod +x hello_world

Modify the executable permissions of the file
./hello_world
Can run 
边栏推荐
- Digital warehouse: iqiyi digital warehouse platform construction practice
- Using two stacks to implement a queue
- Tool skill learning (II): pre skills shell
- 【五分钟Paper】基于参数化动作空间的强化学习
- Coo format of adjacency matrix
- 777. Exchange adjacent characters in LR string
- Is CICC Fortune Securities safe? How long does it take to open an account
- 中金财富证券安全吗 开户要多久
- kalibr标定realsenseD435i --多相机标定
- Refuse noise, the entry journey of earphone Xiaobai
猜你喜欢

ES6高级-查询商品案例

Understand │ XSS attack, SQL injection, CSRF attack, DDoS attack, DNS hijacking

Kalibr calibration realsensed435i -- multi camera calibration

教程篇(7.0) 05. 通过FortiClient EMS发放FortiClient * FortiClient EMS * Fortinet 网络安全专家 NSE 5

2022你的安全感是什么?沃尔沃年中问道

PS + PL heterogeneous multicore case development manual for Ti C6000 tms320c6678 DSP + zynq-7045 (3)

御神楽的学习记录之SoC FPGA的第一个工程-Hello World

03 common set security classes under JUC

API 版本控制【 Eolink 翻译】

FOC motor control foundation
随机推荐
信用卡数字识别(opencv,代码分析)
ROS problems and Solutions - relying on package installation and unable to correct errors
阿里巴巴一面 :十道经典面试题解析
Research and application of the whole configuration of large humanoid robot
OSPF综合实验
No module named ‘win32gui‘
Summary of QT plug-in development -- add plug-in menu in the main interface
Understand │ XSS attack, SQL injection, CSRF attack, DDoS attack, DNS hijacking
[dsctf2022] PWN supplementary question record
2022 what is your sense of security? Volvo asked in the middle of the year
小哥自创AI防拖延系统,一玩手机就被“闪瞎” | Reddit高热
数据中台、BI业务访谈(四)—— 十个问题看本质
Continuous integration (I) brief introduction to basic concepts
anaconda No module named ‘cv2‘
SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame
sklearn clustering聚类
QCF for deep packet inspection paper summary
How to convert planning map into vector data with longitude and latitude geojson
Enterprise digital transformation needs in-depth research, and it cannot be transformed for the sake of transformation
Kalibr calibration realsensed435i -- multi camera calibration