DE1-soc软件实验”hello_word"

此实验需要工具:win32disk,路由器,sd卡,Embeed Design suite, Putty,usb to uart 驱动

选择文件,在拷贝到sd卡中去;烧写的文件是官方提供的SD卡的程序;

使用win32disk,选择文件

点击write;

创建文件夹my_first_hps

新建main.c文件,这里默认输出设备为Uart终端,即在Uart上打印输出

创建Makefile文件;

打开Embedded_Command_Shell.bat

切换到cd 已做好的hello_word的路径

使用make,生成可执行文件my_first_hps

用网线将DE1和电脑接到同一个路由器上

用Putty连接com3口;

 

重启DE1

输入root

输入;udhcpc

在输入ifconfig

 

由于scp命令需要设定密码,在设定密码:passwd,(teraic)

 

 用scp命令将文件“my_first_hps"拷贝到SD卡中  scp my_first_hps [email protected]://home/root

输入ls,查看是否拷贝

输入chmod 777 my_first_hps

 

猜你喜欢

转载自www.cnblogs.com/fcfc940503/p/10458650.html