nios II command shell 的使用

nios II command shell 的使用

一、下载.sof文件到FPGA中

  1. 输入“cd”命令进入sof所在文件夹;(如 cd e: 进入e盘根目录)
  2. 输入“jtagconfig”命令查看FPGA与计算机的连接方式;
  3. 输入“nios2-configure-sof --cable=usb-blaster”使用usb-blaster方式下载sof文件到FPGA中。
 

 二、下载.elf文件到FPGA中

  1. 输入“cd”命令进入sof所在文件夹;
  2. 输入“jtagconfig”命令查看FPGA与计算机的连接方式;
  3. 输入“nios2-download --cable=usb-blaster -g name.elf

针对以上两种情况,Altera关于command shell的官方文档“Nios II Command-Line Tools.pdf”中,给出的命令分别是nios2-configure-sof 或nios2-download -g name.elf,如果直接使用这两个命令,会出现有FPGA与计算机有多种连接方式的提示(可用命令jtagconfig查看连接方式),我一般用要用命令 --cable=usb-blaster 来选择usb-blaster作为连接方式进行下载。

相关文档下载:

Nios II Command-Line Tools.pdf  http://www.docin.com/p-351174839.html

2011年12月20日, PM 07:18:56

原文地址:https://www.cnblogs.com/qmlm8844/p/2295061.html