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

Migrating SAADC Low Power from SDKv11 to v12

I downloaded the nrf52 SAADC Low power project from the GitHub github.com/.../saadc_low_power I'm trying to migrate it over to version 12 of the SDK and I think I'm having problems in the sdk_config.h file.

The version 11 changed some RTC values in the nrf_drv_config.h file which is as follows below and I'm wondering how I can make the equivalent changes to the sdk_config.h file.

RTC0 Disabled

RTC1 Disabled

RTC2 Enabled

RTC2 Freq 32

NRF Max Latency US 2000

Version 11 config file nrf_drv_config.h

Parents
  • I changed the sdk_config file to "disable" the RTC0 and RTC1...this seems very much a big hack to me. It should be easy to configure this file!
    I'm using IAR Workbench so I don't have access to the built-in Kiel editor.

    c #ifndef RTC1 ENABLED

    c #define RTC1 ENABLED 0

    c #ifndef RTC_DEFAULT_CONFIG_FREQUENCY

    c #define RTC_DEFAULT_CONFIG_FREQUENCY 32 //32768

Reply
  • I changed the sdk_config file to "disable" the RTC0 and RTC1...this seems very much a big hack to me. It should be easy to configure this file!
    I'm using IAR Workbench so I don't have access to the built-in Kiel editor.

    c #ifndef RTC1 ENABLED

    c #define RTC1 ENABLED 0

    c #ifndef RTC_DEFAULT_CONFIG_FREQUENCY

    c #define RTC_DEFAULT_CONFIG_FREQUENCY 32 //32768

Children
No Data
Related