This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PWM Driver problem

Dear nordic team

I am using SEGGER EMBEDDED STUDIO and nrf52840 DK. I want to add some pwm nrf_drivers like nrf_nvic.c , nrf_soc.c , nrfx_pwm.c to my project. when i added nrfx_pwm.c to nrf_Drivers of my project,  the program build correctly and without any error. But when i add nrf_nvic.c or nrf_soc.c, i have bellow error! moreover i have to say, i added the directory passes of pwm to my project and i changed sdk_confige.h of my project according to the pwm driver config_sdk.h also. i will appereciate if you help me to resolve the problem and know what the problem is.

  

Parents
  • Hi.

    In your include path, do you have both these includes?
    ../../../../../../components/drivers_nrf/nrf_soc_nosd
    ../../../../../../components/softdevice/s140/headers

    components/drivers_nrf/nrf_soc_nosd contain a variant of nrf_error.h that is only to be used without a SoftDevice. If you also have included components/softdevice/s140/headers this will cause a problem.


    So if you have both these included remove the ../../../../../../components/drivers_nrf/nrf_soc_nosd include from the Common configuration, as well as for the single file (nrf_nvic.c) where you have edited it. Make sure you use inherited configuration.

    - Andreas

Reply
  • Hi.

    In your include path, do you have both these includes?
    ../../../../../../components/drivers_nrf/nrf_soc_nosd
    ../../../../../../components/softdevice/s140/headers

    components/drivers_nrf/nrf_soc_nosd contain a variant of nrf_error.h that is only to be used without a SoftDevice. If you also have included components/softdevice/s140/headers this will cause a problem.


    So if you have both these included remove the ../../../../../../components/drivers_nrf/nrf_soc_nosd include from the Common configuration, as well as for the single file (nrf_nvic.c) where you have edited it. Make sure you use inherited configuration.

    - Andreas

Children
No Data
Related