This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cloned project and get "Cannot set "Project" as Active Project as it is not recognized as a valid project."

Hi,

Just a quick question.

I cloned a project in the online version of Keil studio and got the error "Cannot set "Project" as Active Project as it is not recognized as a valid project." when trying to make it active. Does anyone know what I'm doing wrong?

Regards,

Joe

Parents
  • Hi Andreas/Xuefei/Johan,

    Sorry for this late reply I got distracted from the problem, thanks for looking into it. It seems that since I first posted this problem has in part been resolved and I don't get the same error message anymore.

    There were two issues in Keil studio online.

     

    Issue 1 (seems to be solved now) to repeat:

    File->New…->mbed-os-example-blinky

    Project name default “mbed-os-example-blinky”
    Make this the active project, checked.

    Initialise this project as a Git repository, checked.

     

    Target hardware->NUCLEO-F303K8

    Compile to test.

    Right click on project->Duplicate

    Set duplicate project to active project.

    Clean build, this time it works fine, this didn’t work a month ago thanks for fixing it.

     

     

    Issue 2 (still a problem)

    Import all projects from (Old) Mbed online compiler.

    Set any project as active

    Compile to test.

    Works.

    Right click on project->Duplicate

    Set duplicate project to active project.

    Unable to select target? Even though the project is a seemingly perfect duplicate?

     

     

    Issue 2 work around (For Johan)

    File->New…->mbed-os-example-blinky

    Project name “your project name”
    Make this the active project, checked.

    Initialise this project as a Git repository, checked.

    Target hardware->Your hardware

    Compile to test.

     

    If ok, delete the main file and then copy all of the contents except the old mbed OS drivers into the new project. This worked for me but its an absolute mess when you’ve go a lot of projects from the old Mbed environment.



    Best Regards,

    Joe


Reply
  • Hi Andreas/Xuefei/Johan,

    Sorry for this late reply I got distracted from the problem, thanks for looking into it. It seems that since I first posted this problem has in part been resolved and I don't get the same error message anymore.

    There were two issues in Keil studio online.

     

    Issue 1 (seems to be solved now) to repeat:

    File->New…->mbed-os-example-blinky

    Project name default “mbed-os-example-blinky”
    Make this the active project, checked.

    Initialise this project as a Git repository, checked.

     

    Target hardware->NUCLEO-F303K8

    Compile to test.

    Right click on project->Duplicate

    Set duplicate project to active project.

    Clean build, this time it works fine, this didn’t work a month ago thanks for fixing it.

     

     

    Issue 2 (still a problem)

    Import all projects from (Old) Mbed online compiler.

    Set any project as active

    Compile to test.

    Works.

    Right click on project->Duplicate

    Set duplicate project to active project.

    Unable to select target? Even though the project is a seemingly perfect duplicate?

     

     

    Issue 2 work around (For Johan)

    File->New…->mbed-os-example-blinky

    Project name “your project name”
    Make this the active project, checked.

    Initialise this project as a Git repository, checked.

    Target hardware->Your hardware

    Compile to test.

     

    If ok, delete the main file and then copy all of the contents except the old mbed OS drivers into the new project. This worked for me but its an absolute mess when you’ve go a lot of projects from the old Mbed environment.



    Best Regards,

    Joe


Children
  • Hello Joe, we have tried this now without issue. However, it is still not fully clear what exactly is failing for you when you say "Unable to select target?" What exactly are you doing, and what is the exact error message you get?

    Maybe this depends also on the actual project you use.