Forum Discussion

cbduong's avatar
cbduong
Icon for New Contributor rankNew Contributor
2 months 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.

3 Replies

  • Dear cbduong ,

    Greetings, as we do not receive any further clarification/updates on the matter, hence would assume challenge are overcome. We will continue to monitor this post for the next 5 days. If there are no further inquiries during this period, I will step back and allow the community to assist with any future follow-up questions.

    Thank you for engaging with us!

    Best regards,
    Altera Technical Support

  • Hi cbduong ,

     

    I hope you’re doing well. I wanted to follow up and check if there are any remaining questions or concerns regarding this matter. Please let us know if anything still needs clarification — we’re happy to assist further.

    Thank you for your time, and we look forward to your feedback.

     

    Best Wishes

    BB

  • 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.