Forum Discussion

cbduong's avatar
cbduong
Icon for New Contributor rankNew Contributor
1 month ago

Error creating Nios II Application and BSP from Template

I got this error while trying to create a Nios II Application and BSP from Template from a .sopcinfo file. Any hints? Thank you !

Executing: ./create-this-bsp --cpu-name nios2_cpu --no-make (F:\fsoc_lab\software\d_bsp)
      2 [main] bash (7548) C:\intelfpga_lite\18.1\quartus\bin64\cygwin\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0xECD408/0x10ED408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.

1 Reply

  • The error: 

       cygheap base mismatch detected - 0xECD408/0x10ED408. This problem is probably due to using       incompatible versions of the cygwin DLL.

    means multiple versions of cygwin1.dll are loaded into your system, which confuses Cygwin-based tools (like Nios II tools in Quartus).

    How to Fix

    1. Search for All cygwin1.dll Files
      • Use Windows File Explorer or command prompt - dir /s /b cygwin1.dll  Or search for cygwin1.dll in "This PC".
    2. Keep Only the One in Quartus Directory
      • For Intel FPGA (Quartus), the correct DLL is usually in: C:\intelfpga_lite\18.1\quartus\bin64\cygwin\bin\
      • Delete or rename any other copies found elsewhere (e.g., C:\cygwin\bin, C:\Windows\System32, other software folders).
    3. Reboot Your PC
      • After deleting extra DLLs, restart Windows to ensure no stray DLL is loaded in memory.
    4. Try Again
      • Rerun your Nios II Application and BSP creation process.

     

    Additional Tips

    • Don’t have Cygwin installed separately if you’re only using it through Quartus.
    • If you use other software that relies on Cygwin, make sure their paths don’t interfere with Quartus’s version.
    • If you still have issues, try running the Quartus/Nios II command shell as Administrator.

     

    Thanks.