Article ID: 000076741 Content Type: Troubleshooting Last Reviewed: 07/08/2015

nios2-gdb-server or nios2-flash-programmer reports "Unable to open input file"

Environment

    Quartus® II Subscription Edition
BUILT IN - ARTICLE INTRO SECOND COMPONENT

Critical Issue

Description

When you run nios2-gdb-server or nios2-flash-programmer on Windows in the Nios II command shell, you might see an error message similar to the following:

/cygdrive/c/Workspace/HelloWorld/HelloWorld.srec: Unable to open input file

This error occurs even though the file (e.g. HelloWorld.srec) actually exists.

This error occurs because nios2-gdb-server and nios2-flash-programmer are no longer dependent on Cygwin. As a result, they do not recognize Cygwin-style paths of the form cygwin/<device letter>/<pathname>.

Resolution

Retype your path as a quoted Windows, mixed, or relative path, as in the following examples:

  • Quoted Windows: "C:\Workspace\HelloWorld\HelloWorld.srec"
  • Mixed: C:/Workspace/HelloWorld/HelloWorld.srec
  • Relative: ../HelloWorld/HelloWorld.srec

Related Products

This article applies to 1 products

Intel® Programmable Devices

1