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!

  • 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

Related