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

Unable to find driver enable option in SDK config

Hello, I am using nrf52832. I am adding pwm library in dfu secure boot loader project. I imported all required library but can't find PWM enable drivers/ library option in sdk config. Attaaching my project. Using Seeger studio.

Path : secure_bootloader\pca10040_ble\ses

Thankssecure_bootloader.zip


secure_bootloader.zip

Parents Reply Children
  • I am not able to see pwm insider driver folder in sdk config. I need to enable PWM there so i can use it

  • What do you mean by "not able to see pwm insider driver folder in sdk config"

    Do you have a compile issue? What's the error message?

  • If we want to use any peripheral, we enable it first in sdk config correct ? I can't see pwm in that

  • Add this:

    // <e> NRFX_PWM_ENABLED - nrfx_pwm - PWM peripheral driver
    //==========================================================
    #ifndef NRFX_PWM_ENABLED
    #define NRFX_PWM_ENABLED 1
    #endif
    // <q> NRFX_PWM0_ENABLED  - Enable PWM0 instance
     
    
    #ifndef NRFX_PWM0_ENABLED
    #define NRFX_PWM0_ENABLED 0
    #endif
    
    // <q> NRFX_PWM1_ENABLED  - Enable PWM1 instance
     
    
    #ifndef NRFX_PWM1_ENABLED
    #define NRFX_PWM1_ENABLED 0
    #endif
    
    // <q> NRFX_PWM2_ENABLED  - Enable PWM2 instance
     
    
    #ifndef NRFX_PWM2_ENABLED
    #define NRFX_PWM2_ENABLED 0
    #endif
    
    // <o> NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin  <0-31> 
    
    
    #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN
    #define NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN 31
    #endif
    
    // <o> NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin  <0-31> 
    
    
    #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN
    #define NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN 31
    #endif
    
    // <o> NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin  <0-31> 
    
    
    #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN
    #define NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN 31
    #endif
    
    // <o> NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin  <0-31> 
    
    
    #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN
    #define NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN 31
    #endif
    
    // <o> NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK  - Base clock
     
    // <0=> 16 MHz 
    // <1=> 8 MHz 
    // <2=> 4 MHz 
    // <3=> 2 MHz 
    // <4=> 1 MHz 
    // <5=> 500 kHz 
    // <6=> 250 kHz 
    // <7=> 125 kHz 
    
    #ifndef NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK
    #define NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK 4
    #endif
    
    // <o> NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE  - Count mode
     
    // <0=> Up 
    // <1=> Up and Down 
    
    #ifndef NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE
    #define NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE 0
    #endif
    
    // <o> NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE - Top value 
    #ifndef NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE
    #define NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE 1000
    #endif
    
    // <o> NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE  - Load mode
     
    // <0=> Common 
    // <1=> Grouped 
    // <2=> Individual 
    // <3=> Waveform 
    
    #ifndef NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE
    #define NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE 0
    #endif
    
    // <o> NRFX_PWM_DEFAULT_CONFIG_STEP_MODE  - Step mode
     
    // <0=> Auto 
    // <1=> Triggered 
    
    #ifndef NRFX_PWM_DEFAULT_CONFIG_STEP_MODE
    #define NRFX_PWM_DEFAULT_CONFIG_STEP_MODE 0
    #endif
    
    // <o> NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
     
    // <0=> 0 (highest) 
    // <1=> 1 
    // <2=> 2 
    // <3=> 3 
    // <4=> 4 
    // <5=> 5 
    // <6=> 6 
    // <7=> 7 
    
    #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY
    #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 6
    #endif
    
    // <e> NRFX_PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
    //==========================================================
    #ifndef NRFX_PWM_CONFIG_LOG_ENABLED
    #define NRFX_PWM_CONFIG_LOG_ENABLED 0
    #endif
    // <o> NRFX_PWM_CONFIG_LOG_LEVEL  - Default Severity level
     
    // <0=> Off 
    // <1=> Error 
    // <2=> Warning 
    // <3=> Info 
    // <4=> Debug 
    
    #ifndef NRFX_PWM_CONFIG_LOG_LEVEL
    #define NRFX_PWM_CONFIG_LOG_LEVEL 3
    #endif
    
    // <o> NRFX_PWM_CONFIG_INFO_COLOR  - ANSI escape code prefix.
     
    // <0=> Default 
    // <1=> Black 
    // <2=> Red 
    // <3=> Green 
    // <4=> Yellow 
    // <5=> Blue 
    // <6=> Magenta 
    // <7=> Cyan 
    // <8=> White 
    
    #ifndef NRFX_PWM_CONFIG_INFO_COLOR
    #define NRFX_PWM_CONFIG_INFO_COLOR 0
    #endif
    
    // <o> NRFX_PWM_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
     
    // <0=> Default 
    // <1=> Black 
    // <2=> Red 
    // <3=> Green 
    // <4=> Yellow 
    // <5=> Blue 
    // <6=> Magenta 
    // <7=> Cyan 
    // <8=> White 
    
    #ifndef NRFX_PWM_CONFIG_DEBUG_COLOR
    #define NRFX_PWM_CONFIG_DEBUG_COLOR 0
    #endif
    
    // </e>
    
    // <e> NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 Anomaly 109 workaround for PWM.
    
    // <i> The workaround uses interrupts to wake up the CPU and ensure
    // <i> it is active when PWM is about to start a DMA transfer. For
    // <i> initial transfer, done when a playback is started via PPI,
    // <i> a specific EGU instance is used to generate the interrupt.
    // <i> During the playback, the PWM interrupt triggered on SEQEND
    // <i> event of a preceding sequence is used to protect the transfer
    // <i> done for the next sequence to be played.
    //==========================================================
    #ifndef NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
    #define NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
    #endif
    // <o> NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE  - EGU instance used by the nRF52 Anomaly 109 workaround for PWM.
     
    // <0=> EGU0 
    // <1=> EGU1 
    // <2=> EGU2 
    // <3=> EGU3 
    // <4=> EGU4 
    // <5=> EGU5 
    
    #ifndef NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE
    #define NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE 5
    #endif
    
    // </e>
    
    // </e>

Related