Uboot烧录下载

方法1:

1)修改开发板ubootIP(不能跟电脑的IP相同,但是网段一定相同),开发板与路由器连接(前提关闭防火墙、杀毒软件)电脑ip(win+r输入cmd)(输入ipconfig -all(查ip))

FS6818# setenv ipaddr 192.168.79.199      //设置uboot阶段IP地址(网段与主机相同)
FS6818# setenv gatewayip 192.168.79.194   //默认网关
FS6818# setenv netmask 255.255.255.0      //子网掩码
FS6818# setenv serverip 192.168.79.246    //服务器的IP   电脑IP
FS6818# saveenv                           //保存环境变量
Saving Environment to MMC...
Writing to MMC(2)... done
FS6818# 

打开软件:链接:https://pan.baidu.com/s/1bx-HdoT9QC3jIGdivEkyGg?pwd=1314 
提取码:1314 

FS6818# ping 192.168.20.2       //ping服务器IP
dwmac.c0060000 Waiting for PHY auto negotiation to complete...... done
Speed: 1000, full duplex
Using dwmac.c0060000 device  
host 192.168.20.2 is alive        //开发板与电脑可通过网络通信

通过tftp下载文件到开发板,并运行方法1

tftp    内存地址 文件名  0x40000000(内存起始地址)

FS6818# tftp 0x40000000 led.bin
Speed: 1000, full duplex
Using dwmac.c0060000 device
TFTP from server 192.168.62.2; our IP address is 192.168.62.4
Filename 'led.bin'.
Load address: 0x40000000
Loading: #
         5.9 KiB/s
done
Bytes transferred = 428 (1ac hex)

程序运行

FS6818# go 0x40000000
## Starting application at 0x40000000 ...

通过CRT下载文件到开发板,并运行方法2(不用插入网线)

打开secureCRT,输入下面的命令,并回车

version - print monitor, compiler and linker version
FS6818# loady 0x40000000 115200
//0x40000000 (文件下载地址)
//115200     (串口波特率)

选择要下载的文件·

 

 ​​​​​​程序运行

开始 ymodem 传输。  按 Ctrl+C 取消。
  100%     428 bytes  107 bytes/s 00:00:04       0 Errors

xyzModem - CRC mode, 6(SOH)/0(STX)/0(CAN) packets, 6 retries
## Total Size      = 0x000001ac = 428 Bytes
FS6818# go 0x40000000
## Starting application at 0x40000000 ...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

物の哀

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值