Moving Design to a New Computer

I have a design in VS Code that works fine on a Windows 10 computer (original development was done here).  Because I spend so much time waiting for my compute to compile my designs, I decided to buy a much faster computer (with Windows 11).  I've copied the entire director that contained my old design to the new computer but now I get errors on power complaining that a needed file is not there (but the file i,s indeed, there).  Any thoughts?  I'm stuck (and I need to get moving quickly again).

Thanks!

Parents
  • Hi Sheldon

    Its great to hear that you figured out the issue. I would also suggest that you look into using WSL together with VScode as it from my experience compiles something like 40-50% faster then a standard windows build. If not I would suggest setting up a devdrive and place both your sdk, toolchain and project folder there. On my end it decreased the compile time with about 30% in the tests I did when I tested it earlier this year(I still use it on my Windows computer). 

    The fasted setup is to use Linux but as you may not be familiar with it or depended on other applications I would either use WSL or devdrive. The build time is not to bad on single image build, but when you start with multi-image build I would not hesitate to use one of the mentioned setups. 

    Regards

    Runar

  • Hi Runar,
    I shouldn't have been so excited about my solution because I am now finding that there are still problems.  Somehow when I copy the entire path from the previous computer, it still is missing some configurations or settings.  I had two builds on my old computer and neither of them show up on my new computer.  Where did they go?!   I then created another build configuration and I was able to get the design be built.  However, the design does not work on my board and I have no idea why.  Why can't there be one directory (or file) that holds everything for a project?  It seems like there should be some kind of migration assistant that can help in moving from one computer to another.  I am very frustrated with the system as it is taking me days to just get up on running on a new computer.
    Sheldon
    Hold on...I am now thinking there was something wrong with the files I copied...don't respond yet
  • Hm okey. It should be enough to generate the cmake preset file and copy over the whole project folder to the new computer. 

    I would not bother with copying the build folder as you will generate it next time you build your application. 

    In regards to git i would suggest starting by watching the Visual Studio Code's Using Git with Visual Studio Code. Git might be a bit overwhelming at the start but I would say it's a lifesaver. You do not need to use git from VScode, I personally prefer to just use the terminal but that is just me. 

    Regards

    Runar

  • Hi Runar,

    I'm sorry to say but I think that I am going backwards.  I tried to set up the GITHUB account (I never got to a pointer where I could 'commit' any code') and now my design no longer works on the original computer.  I think I must have screwed something up in the original design, but I am not sure what.  

    I still can get previous versions of my code working but they are from like 3 months ago and that would be a lot of time that I would lose.

    I don't think there is anything that can do that would be able to help me.

  • Hi Sheldon

    Why don't you try to explain a bit what is happening and we can se if we can manage to help you. 

    Lets not focus on git for a second and rather focus on the code. What changes have you done to the code and which errors do you get? You can also upload the project and I can have a look. If you want that we can set the case to private

    Regards

    Runar

  • Hi Runar,

    Thanks.  That sounds like a good plan.  I will get the GIT stuff working later on (and I have used it on other projects in the past).

    Yesterday, I got my project to compile on my new computer.  I programmed my custom board with the result and, unfortunately, it did not work.  I quickly found that my devices GPIO lines were not operating properly.  The problem was that I had not changed the build configuration from the default 52840 dongle board when I compiled the program.  When I switched over to what I've used before (the nrf52840dk nrf52840) I got error messages saying it had a parsing error with an undefined note label (LED4 -custom pin name used as a GPIO control line).

    When I now look at the config files, I do not see a devicetree at all.  I am confused because I do not know how these files didn't transferred over from the other computer.  I have attached a screenshot showing what I see on my end.  I am uncertain how I should get custom pins into my design.  Didn't I need to use the graphical editor to select the pins?  I can't remember.  Maybe I could just copy the nrf52840dk_nrf52840.dts and app.overlay files over?  I'm confused.

    Sheldon

  • So, now I see that there is both of the DeviceTree files in my directory.  I note that I have two errors now of pins that it can't locate: The 'led4' and 'nrf_radio_fem'.  I am not sure why these two are the only troubling ones.  If I remove them, the design compiles but doesn't work (probably because I have taken out these necessary lines

Reply Children
  • I see there is supposed to be something under the nrf_radio_fem, what do the message say? 

    You could also try to add the FEM as described here, however since you have the same issue with led4, is this the led 4 on the board or a custom led? You could also open the devicetree editor and see if there is anything that stands out. 

    Sheldon01 said:
    I am uncertain how I should get custom pins into my design.  Didn't I need to use the graphical editor to select the pins?  I can't remember.  Maybe I could just copy the nrf52840dk_nrf52840.dts and app.overlay files over?  I'm confused.

    Did you create a custom board on the old computer? If so we now have an excellent guide on devacademy.  I would recommend that you edit the overlay. 

    Regards

    Runar

Related