i am getting nrf_breakpoint error can i know the reason for that?

Parents Reply Children
  • 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

Related