porting an nRF52 SES project to nRF51

I have the same application that runs on both nrf51 and nrf52 MCUs. The Bluetooth in the application uses SoftDevice and not the SDK primarily because I started with the pc-driver which uses just SoftDevice. The nRF51 project is Keil and I want to migrate it to SES. I know there is a lot of noise about this but it is proving to be very difficult to do as the project, being just and example in the peripheral directory has a lot of include files, preprocessor values, etc. that must be configured. The import methods that I have followed on the Segger and Nordic sites have not done these configurations.

So instead how hard would it be to take a SES project file from nrf52 using SoftDevice S140 and change it to an nrf51 project using S130? The names of my application files are the same in both cases. I dont know if replacing the S140 and nrf52 references to the corresponding ones for nrf51 would work..

Related