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

How to recreate pca10056/s140/ directory for custom project after deleting it months ago.

I have a custom application that works well for my nRF52832 device, but my team is moving on to an nRF52840 chip. Long ago, I deleted the directories that were not /pca10040/s132/ because I stupidly assumed we would not need anything more than what we were working with at the time. I am now trying to go months back into our version control to re-downoad those directories for the newer chip which requires the s140 code. However, trying to run the s140 Makefile (with the newest files and directories included) isnt working well....and I wonder if there is a best practice for this type of transition. Luckily, I never deleted the same files from the secure_dfu_bootloader directory, so I am able to build/compile the bootloader successfully.  

How can I recreate this pca10056/s140/ directory structure so that I can get my application code to work nicely with the new nRF52840 device? I am used to opening SES projects by looking up the .EmProject file associated with the custom application....however, I know for a fact this old .EmProject will be outdated since I deleted it months ago, and so I am here to ask for guidance in how to resolve my situation. Many thanks in advance!

  • Hi Corten, 

    I would assume that main.c was not deleted when you delete anything not /pca10040/s132/  ? 

    If it's the case, what missing is the sdk_config.h and the .EmProject  for S140 that you need.

    I assume that you based your application on an example in the SDK ? If it's the case what you can do is to find the change you made with the sdk_config.h and .EmProject  for the S132 and apply the same change to the sdk_config.h and .Emproject for S140 that you get from the example. 

Related