Dear Sir/Madam,
I'am new to segger embedded studio.I would like to do SPI interfacing of an IC using nRF51822 with segger embedded studio.
Please guide me how to add the necessary driver files into my project.
Regards
Pavankumar S
Dear Sir/Madam,
I'am new to segger embedded studio.I would like to do SPI interfacing of an IC using nRF51822 with segger embedded studio.
Please guide me how to add the necessary driver files into my project.
Regards
Pavankumar S
Hi,
If you do not already have the SES project for nRF51 up and running, there is a tutorial on how to convert a Keil project available here.
Regarding usage of SES with our SDK, please have a look the this video tutorial playlist on YouTube.
Best regards,
Jørgen
Hi,
There is a SPI Master Example in the SDK that you can reference. The SPI master driver is found in "nRF5_SDK_12.3.0_d7731ad\components\drivers_nrf\spi_master", use the nrf_drv_spi.c/h version.
Best regards,
Jørgen
Hi,
I did not suggest that you create a new project from scratch. This will almost always create a lot of issues for yourself, especially if you are not experienced with Nordic SDK and SoCs.
The drivers and libraries in the SDK usually has dependencies on other libraries for error handling, utility functions, etc. If you want to create a project from scratch, you need to add all the source files and paths that are needed. It is much easier to start out with an existing example project that has all the required files added already, for instance the SPI Master example.
Paths are added in the "user include directories" configuration in project settings:

Hi,
I do agree that libraries in the sdk are having dependencies on each other.
So I,am trying to import a keil project into segger embedded studio.
/DeviceDownload/nRF5_SDK_12.3.0_d7731ad/examples/peripheral/spi/pca10028/blank
I followed the steps suggested by you in your first reply.
My Include user directories looks like this.

Even though I have followed the complete steps suggested by you,Iam getting 2 errors when I build my project.

Thank you for your patience in replying to me,I have been asking lot of questions since Iam new to SES.
Please help me out how to resolve this errors,Today is the deadline given to complete this project.
Regards
Pavankumar S
You should follow the tutorial closely, the nrf.h file is located in the components/device directory:
Project -> Edit Options... and then select the Preprocessor tab../../../../../../components/device to the User Include Directories field to include the device header files in our Embedded Studio projectYour user include directories should look like this now:
I also see that you have added system_nrf52.c and ses_startup_nrf52.s, these will not work for nRF51 chips. You may find some useful information in this post.
Dear Sir,
I had followed almost all steps to import a keil project into segger embedded studio.
Unable to perform few of them mentioned below.
1) Add SDK to "flash_placement.xml", "ses_nrf51_startup.s" and "thumb_crt0.s" to "/components/toolchain/embedded_studio" folder.
issue-Unable to find "flash_placement.xml" and "thumb_crt0.s" files in the SDK.( suggested in this link -You may find some useful information in this post.)
Currently I'am using segger embedded studio v5.2,is it compatible to develop a application of nRF51822??.
Currently I'am facing an error in the process of importing a keil project into Segger Embedded studio.
Please look at the image below to see the error generated.

Regards
Pavankumar S
I think you should try with an older version of SES. It seems like the import is not handling paths and settings correctly. I would recommend with the version mentioned in the tutorial (3.10e), as this is the version that would likely cause the least amount of issues. I cant find this version for download from Seggers webpage, but they may be able to provide it if you contact them. After you have the project working correctly, you can switch to a more recent version of SES.
I think you should try with an older version of SES. It seems like the import is not handling paths and settings correctly. I would recommend with the version mentioned in the tutorial (3.10e), as this is the version that would likely cause the least amount of issues. I cant find this version for download from Seggers webpage, but they may be able to provide it if you contact them. After you have the project working correctly, you can switch to a more recent version of SES.
Hi,
Whom should I contact to get the older version of SES?
Regards
Pavankumar S
Hi,
I spoke to segger people,and their response is copied below.
You can contact Segger on their webpage, or you may get help through their forum.