Forum Discussion

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

Ashling IDE scripted project creation

On Windows, is there a way to script the Ashling IDE project creation (or import an existing project)?

I'm trying to clean my project down to the bare minimum for CM/repo purposes (deleting .metadata), and then have an automated way to recreate the project up to the point I can open Ashling RiscFree IDE, point to my (newly recreated) workspace, and then the project is already imported and ready to build, with all my previous settings (include paths, optimizations).

Right now, the only way I can get this to work is if I manually click File -> Import and go through that dialog to import my sources from the repo.

I  need a hands-off way to do this. I looked at the Ashling RiscFree IDE manual, but couldn't find anything.

10 Replies

  • RiscFree does support importing an existing project from command-line. Run RiscFree.exe -data <workspace path> from command-line to load the project(s) within the selected workspace.

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

      That command does not seem to be working. It just shows the Ashling RiscFree IDE with a "There are no projects in your workspace" message.

      My directory structure is: %CD%\sw_workspace and %CD%\sw_repo. sw_repo directory contains my source code, the .cproject, .project, .settings. sw_workspace directory is where I created a temporary workspace directory (contains .metadata). Within the sw_workspace directory, I type "RiscFree.exe -data %CD%\..\sw_repo" but it just comes up blank. 

      There are no spaces in the path or anything like that. I have also tried using an absolute path instead of relative.

       

  • Seems you are passing the project path instead of workspace path;  could you try "RiscFree.exe -data %CD%\sw_workspace" instead of "RiscFree.exe -data %CD%\..\sw_repo"

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

      Okay yeah I'm very confused on how this command is supposed to work. "sw_repo" contains my the source code, the .cproject, .project, .settings I want to import. When I'm in the Ashling RiscFree GUI/IDE, I click file -> Import -> Existing Project, and then I point it to "sw_repo" and this works: it imports the code like I expect, project is shown in the project explorer tab, I can build/debug/etc.

      In the cleaned state, sw_workspace is currently empty except for a .metadata folder. 

      As a test, I tried manually copying all my files from sw_repo into sw_workspace (so now sw_workspace contains .metadata, .project, .cproject, .settings, .c, .h), and then ran the command "RiscFree.exe -data %CD%\sw_workspace", but I got the exact same result: "There are no projects in your workspace"

       

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

        Hi,

        Please note that I dropped a private message couple of days back requesting a screen-shared session to better understand your requirement and the exact issue you are facing. Could you respond based on your availability. 

        Regards,
        Rejeeh

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

      Just to be clear, its required that the project needs to be imported to the workspace via GUI manually once before we try the command-line option.

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

    I don't know how to move forward after "project needs to be imported to the workspace via GUI manually once before we try the command-line option." My only goal was to have a fully scripted FPGA/SW build, including Ashling IDE setup, so having the requirement of needing to do something manually ends it. You should add this feature in future versions, I have been able to do completely scripted builds on competitor FPGA manufacturer's SW IDEs for over a decade.

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

      Hi,

      As I mentioned above, the manual step of adding project to the workspace is a one-time operation. Once a project is part of the workspace, that project can always be opened in RiscFree via console/scripting. 

      Regards,

      Rejeesh

      • BoonBengT_Altera's avatar
        BoonBengT_Altera
        Icon for Moderator rankModerator

        Hi Rejeesh_Ashling,

         

        Thank you for your continued support in clarifying this matter and for your contributions toward enhancing the overall community experience.

         

        Hi sittinhawk,

        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,
        BB