要点:
1、easyopenjtag简称eop,openjtag简称op。op/eop是韦东山公司研发的,通过jtag协议。
2、op或者eop支持将代码烧写到Nor flash或nand flash,而市面上的jlink只能将代码烧写到nor flash中。
3、程序下载烧写可以分为2步:下载,烧写。下载和烧写是不同的概念 。
(1)下载是通过USB方式(如 dnw)、网络下载(如tftp),将代码下到sdram。
(2)烧写是通过nand flash驱动的 nand flash写入功能,将sdram中的代码写入nand flash中。
这里讲三种方法:
(1)使用eop/op烧写
(2)使用jlink将u-boot下载到SDRAM,在Jlink commander中让SDRAM中的u-boot运行,u-boot在SecureCRT中运行,最后在u-boot执行相应命令将程序烧写到flash中。
(3)使用eop/op(或者jlink)将u-boot烧写到nor flash,在串口助手里运行u-boot讲程序烧写到nand flash
烧写方法一
使用eop/op进行烧写(用韦东山的oflash.exe)。
注意:具体详细步骤参考韦东山总结:https://blog.youkuaiyun.com/thisway_diy/article/details/52808038
**第一次烧写的准备工作:**在开发板与电脑之间连接上JTAG(韦东山的eop/op),并安装JTAG的驱动,把oflash.exe复制到C:\Windows\SysWOW64。
烧写步骤:
1、在windows cmd 中运行oflash.exe,
2、再把你的程序(xxxx.bin)复制到C:\Windows\SysWOW64\oflash目录下,
3、然后在windows系统下的DOS命令行即cmd里进行烧写你的程