

Hello,
Please make sure to have DEBUG defined in your preprocessor defines, like shown in the included image:
This will make your logger output a detailed error message whenever a non-NRF_SUCCESS error is passed to an APP_ERROR_CHECK.
Do this, and check the returned error code against the returning function's API Reference to see how you may rectify it.
Best regards,
Karl
same settings i have done
OK but in any of the example clock was not initialised why?
How do i enable 64Mhz clock for all the pheripherals?
what was the maximum frequency i can set for pheripherals in nrf52840 DK , they have used external clock of 12Mhz?
venkatesha kj said:OK but in any of the example clock was not initialised why?
Please elaborate. What clock, and what examples? None of the provided examples are missing anything in their configuration that I have ever heard of.
venkatesha kj said:How do i enable 64Mhz clock for all the pheripherals?
venkatesha kj said:what was the maximum frequency i can set for pheripherals in nrf52840 DK , they have used external clock of 12Mhz?
Please be more specific.
Which peripheral are you referring to?
The peripherals will use the frequency and source that they are configured to use in the sdk_config.h file.
Best regards,
Karl
i want to configure clock for the GPIO how do i do that?
i want to configure clock for the GPIO how do i do that?
is there are any videos for creating the new project from scratch and importing neccessory files like SPI files ?
Please always use the Insert -> Code option when sharing code on DevZone.
Peripheral (And clock) configurations are done in the sdk_config.h file, as mentioned in my previous comment.
venkatesha kj said:i want to configure clock for the GPIO how do i do that?
Please elaborate, I am unsure what you mean by this. Do you wish to have a clock toggle a GPIO? If so, you may take a look at the timer peripheral example, which demonstrates how to set up a timer to do some action when its interrupt triggers.
Alternatively, you could use PPI to have the timer's CC event trigger the GPIO toggle/set/clear task without CPU involvement.
venkatesha kj said:is there are any videos for creating the new project from scratch and importing neccessory files like SPI files ?
We do not have a specific tutorial series for this, but there are many good third-party video guide series for this on youtube, for example.
In general, I would advice that you start out with an example that is close to what you are trying to implement, and then merge other functionality into this example project. This way you will not have to set up the entire project from scratch.
When you are adding new files to your project you will need to add their source files to the file explorer, and make sure their path is provided in the project options Preprocessor -> User Included Directories. If you are adding a peripheral driver or component from the SDK to your project you will also need to make sure that its required configurations are defined in your sdk_config.h file.
A common mistake with the sdk_config.h file is to have both legacy and nrfx_ definitions present. Please make sure to only use the nrfx_ configuration definitions, and do not include the legacy configuration at all, as this will cause the apply_old_config file to overwrite your nrfx_ configuration.
An example of this would be to have both TIMER_ENABLED and NRFX_TIMER_ENABLED present in the same sdk_config.h file.
Best regards,
Karl