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

Static Assertion on adding LibUARTE

Hi,
     Iam trying to use libuarte in ble_app_hrs code. I have two uart ports in nrf52833 in which uart1 iam using libuarte. Have made changes in sdk_config.h file and included c files. But I get the below error on compilation "static assertion failed"

Error Message :
  "static assertion failed: "UARTE instance not enabled"
    in definition of macro ‘_SELECT_ASSERT_FUNC’
    in expansion of macro ‘STATIC_ASSERT_MSG’
    in expansion of macro ‘STATIC_ASSERT’
    in expansion of macro ‘NRF_LIBUARTE_DRV_DEFINE’
    in expansion of macro ‘NRF_LIBUARTE_ASYNC_DEFINE’
    static assertion failed: "Timer instance not enabled"
    in definition of macro ‘_SELECT_ASSERT_FUNC’
    in expansion of macro ‘STATIC_ASSERT_MSG’
    in expansion of macro ‘STATIC_ASSERT’
    in expansion of macro ‘NRF_LIBUARTE_DRV_DEFINE’
    in expansion of macro ‘NRF_LIBUARTE_ASYNC_DEFINE’
   
    ‘NRFX_TIMER0_INST_IDX’ undeclared here (not in a function); did you mean ‘NRFX_TWIM0_INST_IDX’?
    in definition of macro ‘NRFX_CONCAT_3_’
    in expansion of macro ‘NRFX_CONCAT_3’
    in expansion of macro ‘NRFX_TIMER_INSTANCE’
    in expansion of macro ‘NRF_LIBUARTE_DRV_DEFINE’
    in expansion of macro ‘NRF_LIBUARTE_ASYNC_DEFINE’ "

Related