Forum Discussion

DLiu5's avatar
DLiu5
Icon for New Contributor rankNew Contributor
6 days ago

How can I use Quartus Pro 25.1 sopc-create-header-files tool to generate a jtag master header file?

I am an engineer in Terasic,  I am writting a tutorial for Agilex 5. I use Quartus Pro 25.1,  there is a sopc-create-header-files in \quartus\sopc_builder\bin path, I want to generate a header file in Windows  system.however, I couldn't use it in Win10 system.

I tried it in Nios V command Shell:

even I used Windows WSL:

or in Windows PowerShell:

Thanks for your advice.

Doreen

6 Replies

  • PixelPusher's avatar
    PixelPusher
    Icon for New Contributor rankNew Contributor

    sopc-create-header-files is a bash script so needs to be run on linux or WSL.

    There looks to be something wrong with your WSL environment because it is missing many basic linux commands such as `rm` `uname` `tr`. You should be able to execute these in your WSL shell

    Once you have fixed your WSL setup, you need to add `quartus/sopc_builder/bin` to your path (inside WSL), because it relies on sopcinfo2swinfo being on your path, and then it should work

    PATH=$PATH:$QUARTUS_ROOTDIR/sopc_builder/bin

    edit: I tested this on a Linux installation that I remoted into via WSL, not a windows installation, so this might not be accurate for windows

    • DLiu5's avatar
      DLiu5
      Icon for New Contributor rankNew Contributor

      Dear Sir,

      Thanks for the reply.

       How can I fix this first?

      terasic@DESKTOP-G0MQNOG:/mnt/c/altera_pro/25.1.1/quartus/sopc_builder/bin$ sopc-create-header-files /mnt/c/my_de25_nano_workplace/my_first_qsys_system/qsys_top/qsys_top.sopcinfo --output-dir pd_headers

      Failed writing output file to /tmp/sopc-create-header-files.38.tmp.swinfo sopc-

      create-header-files: sopcinfo2swinfo.exe --input=c:/my_de25_nano_workplace/my_first_qsys_system/qsys_top/qsys_top.sopcinfo --output=/tmp/sopc-create-header-files.38.tmp.swinfo failed

      Did you really test the sopc-create-header-files in the Windows  WSL?  As I usually meet different errors or failure.

      Thanks,

      Doreen

  • DLiu5's avatar
    DLiu5
    Icon for New Contributor rankNew Contributor

    The Quartus Pro 25.1.1 was installed in Windows.