Is there an easy way to change KSDK in a project from standalone to linked?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is there an easy way to change KSDK in a project from standalone to linked?

469 Views
dave408
Senior Contributor II

I have a mixture of firmware projects that either use KSDK in standalone or linked mode.  I would now like to change the project so that it's using KSDK in linked mode (to the files installed by KSDK 1.2), but I do not want to have to create a new project with the wizard and copy my files over, if possible.

 

Can anyone here please present the ways they have done it?  I have tried some experiments, but they all have their set of problems:

 

  1. Import -> File System -> Advanced -> Create links in workspace.  This will probably work and create only linked resources, but the problem is that it includes *everything* and not just the stuff related to my processor of interest.
  2. New -> Folder -> Advanced -> Link to alternate location (Linked Folder).  This creates a linked folder and has the same problem as above, but the additional problem that the new KSDK folder in my project is a link, but all files underneath it are physical files.  So when I delete the subfolder in KSDK that aren't necessary (there is no option to not delete the files), it deletes the linked files installed by KSDK 1.2.

 

What I'm looking for is something that results in a linked KSDK folder in my project layout that links to c:\Freescale\KSDK_1.2.0 (the installed files), but only links to the files specific to my processors (MK64FN1M0VLL12 and MK22FN256VLL12), and creates file links, not physical copies to my project folder.  In addition, the links should be such that when I delete them, KDS does not delete the files in c:\Freescale\KSDK_1.2.0.

 

The next thing I plan to try is to manually copy the KSDK-specific bits from another project and see if that works.  For my K64 project, I have a feeling that I will have to create a new K64 project in linked mode and manually copy over to my current project, or copy all of the code and settings to the new one....

 

EDIT -- I've just created a new project using the MK22F12810 (forgot I also had one of those), and then copied and pasted the links from .project over to my current firmware project.  I get a few compiler errors saying that it can't find some header files.  It didn't have a problem finding them before, so perhaps in this case it's a compiler settings issue.

 

Thanks!

Labels (1)
0 Kudos
2 Replies

333 Views
dave408
Senior Contributor II

I've come up with a 6 step process that seems to work well.  However, the last step I had to execute seems like it would make the entire process if I executed it earlier in the process.  I'm going to try doing this again on a different project to see if the overall process is easier when I do it.

0 Kudos

333 Views
dave408
Senior Contributor II

And now I think I have a two step process...  :smileyhappy:  Will post a how-to later, because this might be useful to some people.

0 Kudos