当前位置:网站首页>First hello of SOC_ World experiment
First hello of SOC_ World experiment
2022-07-23 16:18:00 【YouthBlood9】
record
One 、 preparation
Before these operations, it is necessary to remind : Our computer should have been installed Quartus18.1 Standard Edition 、SOC Installation of and corresponding accessories that need to be installed Arm Ds-5 etc. .
Download all kinds of files or tools you need
① Gold project :
C5MB_GHRD
link :https://pan.baidu.com/s/1Idyqe4SknBN4Q12f4ZCaaQ
Extraction code :0000② Burn image tool :
Win32DiskImager
link :https://pan.baidu.com/s/1hCwLOSN1MAxxoVRi–9kqQ
Extraction code :0000③ Driver file :
CP210x_Universal_Windows_Driver
link :https://pan.baidu.com/s/1duyk91SvPUcxP96gzlXo4w
Extraction code :0000④ Display tools for connecting boards :
MobaXterm10.4
link :https://pan.baidu.com/s/15JUK8ioeDYXSi2zg6-J2ug
Extraction code :0000Image file :
sdcard.img
link :https://pan.baidu.com/s/1380y-tBCypgKvnz2qTDUdQ
Extraction code :0000
Two 、SOC Related image write SD card
2.1 SD Card format
- First of all, I got SD Format the card :
Plug in the card reader → At the beginning of the lower left corner of the computer → Right click disk management
Will insert SD Right click all partitions of the card → Delete volume

- After deleting :

- Then format the card
2.2 Win32DiskImager
- Decompress and burn the image tool Win32DiskImager, double-click .exe file

- Select the image file ,write( Because here is a screenshot without inserting a card , So some are gray , Not available )

- Then look at the partition again .
- Because it takes a long time to create an image by yourself , So here is the mirror image given by the ready-made teacher .
3、 ... and 、 Gold project file operation
Download the gold project file
double-click .qpf File to Quartus Medium to full compilation , It's about time 7-15 minute

In the output folder of the project , find sof_to_rbf.bat file , double-click ,soc_system.rbf File update , The modification date will become the current time .

Find in the upper directory generate_hps_qsys_header.sh file .

open Soc EDS Command Shell, Do the following ( Pay attention to find the location of your files )

The final will be soc_system.rbf Copy and paste to SD The last area from the card , Replace the original file .
Four 、HelloWorld engineering
4.1 Project establishment
- Create a new one under the gold project directory APP Folder , To hold hello_world Relevant documents of the project

- open Soc EDS Command Shell, Use command eclipse&

- Choose the just app Folder →ok

- File → New → C project
- Do the following

4.2 Code and configuration
- Right click the project and select

- Fill in .c file , Random names

- Write the following code :
#include <stdio.h>
int main()
{
while(1)
{
printf("Hello World!\n");
}
}
- Still right click the project , The following options

- Add two folders
- D:\intelFPGA\18.1\embedded\ip\altera\hps\altera_hps\hwlib\include\soc_cv_av
- D:\intelFPGA\18.1\embedded\ip\altera\hps\altera_hps\hwlib\include
- Pay attention to your path


- And then put it into the gold project hps_0.h Copy the file to the project just now

- Click small hammer to compile

- Binary files will be generated after compilation
5、 ... and 、 Board preparation
5.1 MobaXterm10.4 operation
open MobaXterm10.4 , double-click .exe file

Connect the board , Add the device first as shown in the following figure


Press the reset key on the board
Sign in
Then configure temporary ip
ifconfig eth0 192.168.0.1

- Get into vim After editor Press the keyboard i You can edit


- After editing ESC
Input :wq Save and exit
then reboot Or reset - Also modify the computer ip Select Ethernet port

5.2 eclipse In the operation
- The following options


- After entering the new interface , Right click new→connection

- SSH →next

- The board just configured IP

- Then click casually , Will enter

- Then the previously generated binary hello_world File copy to root apt in

- Right click to enter the terminal

- Enter the following command at the terminal
- chmod 777 hello_world
./hello_world - Output is as follows

Ctrl+C Forced exit
The project is finished
6、 ... and 、 Configure static ip
Also open as above MobaXterm10.4
cd /
cd etc
vi network/interfaces
When you open the editor Click on the keyboard IAdd the following
auto eth0
iface eth0 inet static
address 192.168.0.1 // The board
netmask 255.255.255.0
gateway 192.168.0.2 // The computer
dns-nameserve 114.114.114.114
- ESC sign out ,:wq Save to exit .
The article was written in a hurry , There are many imperfections , If you have any questions, please leave a message .
边栏推荐
- 云原生(十一) | Kubernetes篇之Kubernetes原理与安装
- CONDA set up proxy
- Remote system command execution
- 链表合并(暑假每日一题 3)
- redis 哨兵模式
- MySQL - six logs
- 【论文学习】《Source Mixing and Separation Robust Audio Steganography》
- Who is responsible for the problems of virtual anchor and idol endorsement products? Lawyer analysis
- 后缀表达式(暑假每日一题 4)
- Reproduce various counter attack methods
猜你喜欢

Vinka introduces high anti-interference vk36n series touch IC: vk36n1d, vk36n2p, vk36n3b, vk36n4i, easy to use

Vim到底可以配置得多漂亮?

Cloud native (11) | kubernetes chapter kubernetes principle and installation

js过滤/替换敏感字符

Ultra detailed MP4 format analysis

C language learning notes
![[attack and defense world web] difficulty Samsung 9-point introductory question (middle): ics-05, easytornado](/img/94/5b914d0ce2a2c3e1760d1b27321479.png)
[attack and defense world web] difficulty Samsung 9-point introductory question (middle): ics-05, easytornado

Exclusive interview | open source Summer Star Niu Xuewei

现代商业无代码开发平台的治理和网络安全

After effects tutorial, how to create animation in after effects?
随机推荐
问题随记 —— 无法打开包括文件: “dirent.h”: No such file or directory
Jianzhi offer II 115. reconstruction sequence: topological sorting construction problem
【论文学习】《Source Mixing and Separation Robust Audio Steganography》
剑指 Offer II 115. 重建序列 : 拓扑排序构造题
Vinka推出高抗干扰VK36N系列触摸IC:VK36N1D,VK36N2P,VK36N3B,VK36N4I 使用便利
[attack and defense world web] difficulty Samsung 9-point introductory question (middle): ics-05, easytornado
Fake XML cookbook of XML xxE vulnerability
Mysql—六大日志
Go language learning - Review package, interface, file operation
冒泡排序-看着一篇就够啦
[attack and defense world web] difficulty Samsung 9 points introductory question (Part 1): simple_ js、mfw
Governance and network security of modern commercial codeless development platform
MySQL-字符串按照数值排序
[SUCTF 2018]MultiSQL(mysql预编译)
Go 接口:深入内部原理
Of the 24 almost inevitable JVM interview questions, I only know 7. How many can you answer?
Google Earth Engine——影像统计过程中出现的空值问题
MySQL表字段数量限制以及行大小限制
Ultra detailed MP4 format analysis
"1+1 > 10": potential combination of no code / low code and RPA Technology