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

APP_PWM_INSTANCE error in SDK12.2.0

Hi,

I am using SDK 12.2.0 with secure DFU service.i want to use pwm in my code.And i init pwm with APP_PWM_INSTANCE(PWM1,1),then i get an error:identifier "TIMER0_ENABLED" is undefined.

Samething i have done in SDK11 by enabled timer is SDK Folder/component/driver_nrf/config/nrf_drv_config.h file.

But i have not found any nrf_drv_coonfig.h file in SDK12.2.0.

Parents
  • Hi,

    With the release of SDK version 12 a new SDK configuration header file to manage static configuration of an application was added. This header file is called sdk_config.h and replaces the nrf_drv_config.h. If you are using Keil, you should try to use the Configuration Wizard. Also note that since the SoftDevice uses TIMER0, I would recommend using e.g. TIMER1 instead.

    Configuration Wizard:

    image description

Reply
  • Hi,

    With the release of SDK version 12 a new SDK configuration header file to manage static configuration of an application was added. This header file is called sdk_config.h and replaces the nrf_drv_config.h. If you are using Keil, you should try to use the Configuration Wizard. Also note that since the SoftDevice uses TIMER0, I would recommend using e.g. TIMER1 instead.

    Configuration Wizard:

    image description

Children
Related