Toolchain manager issues: Cleaning the build files / moving code to another folder

I'm using NCS 1.9.1 and Segger SES

Following Nordic's recommendation I first made a copy of BLE/peripheral_uart in order to preserve the original code and then used the toolchain manager to open the project. I selected nrf52DK_52832 as target and so far, things are working not bad.

1.) when the code is properly built, the project folder contains approx 1600 files with 40 MB size - my actual code is less than 30 kB. It is not clear to me which files can easily be deleted because they are rebuilt - I tried once to delete "build_nrf52dk_nrf52832" which is a most stupid idea, because all my project settings regarding BLE GATT were gone.

"Clean Zephyr" or "clean solution" does not really help too much, still 37 MB and if even fails with
"...ncs/v1.9.1/nrf/samples/bluetooth/peripheral_uart/build_nrf52dk_nrf52832/zephyr/dev_handles.c does not exist."

I find it very strange that I'm not able to peroperly clean a project, get rid of temprorary files - and I found no documentation so far on the Nordic system.

2.) the other issue is the location of sources: it seems that the full path to all files goes somewhere into the build process, which means, I'm not able to rename my project folder or move it to another location / harddisk / server and build there.

Is there any strategy how to handle this ?

As example lets look at c:/ncs/v1.9.1/nrf/samples/bluetooth/peripheral_uart - this is the sample I'm referring to. What is necessary to move this to : f:\customerXYZ\BLE-development\product1

thanks, Matthias

Parents
  • Hi Matthias,

    You can always just copy the contents of the NCS folder to have a "clean" version. This way you will keep a "untouched" version. 

    As example lets look at c:/ncs/v1.9.1/nrf/samples/bluetooth/peripheral_uart - this is the sample I'm referring to. What is necessary to move this to : f:\customerXYZ\BLE-development\product1

    When you create the project you should be bale to select whatever path you want it in. 

    You can move you configs outside of the build folder, this way you want delete them when you remove the build folder. 

    Regards,
    Jonathan

Reply
  • Hi Matthias,

    You can always just copy the contents of the NCS folder to have a "clean" version. This way you will keep a "untouched" version. 

    As example lets look at c:/ncs/v1.9.1/nrf/samples/bluetooth/peripheral_uart - this is the sample I'm referring to. What is necessary to move this to : f:\customerXYZ\BLE-development\product1

    When you create the project you should be bale to select whatever path you want it in. 

    You can move you configs outside of the build folder, this way you want delete them when you remove the build folder. 

    Regards,
    Jonathan

Children
No Data
Related