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

Using app_timer with nrf5_SDK_for_Mesh_v1.0.0

Is it possible to use app_timer with the mesh stack?

Up to now I was not able to integrate the app_timer library into my build.

Can you give me an example how to integrate it?

Parents
  • What challenges are you facing in trying to integrate app_timer Thomas? As long as you are not using RTC0 i thought it should be pretty straight forward. Did not try it myself though.

    Looking at the resources that Mesh SDK uses here. It does not use any RTC (app_timer), so you should in practice be able to use app_timer library from nRF5 SDK without conflicting Mesh resource handling.

  • Dear Aryan

    Integration worked so far.

    In the application I call:
        err_code = app_timer_create(&m_testTimer, APP_TIMER_MODE_REPEATED, timer_handler);
        APP_ERROR_CHECK(err_code);

        err_code = app_timer_start(m_testTimer, APP_TIMER_TICKS(50), NULL);
        APP_ERROR_CHECK(err_code);

    in order to initialize and start the app_timer

    After calling app_timer_create the program crashes.
           5172>, nrf_mesh_sdk.c,   84, HARDFAULT...
           
    app_timer_start() is never reached.       

    ==> I gave up and am using RTC counters instead (that thing works).

    Actually I still would like to use the app_timer, but it costs me too much time.

Reply
  • Dear Aryan

    Integration worked so far.

    In the application I call:
        err_code = app_timer_create(&m_testTimer, APP_TIMER_MODE_REPEATED, timer_handler);
        APP_ERROR_CHECK(err_code);

        err_code = app_timer_start(m_testTimer, APP_TIMER_TICKS(50), NULL);
        APP_ERROR_CHECK(err_code);

    in order to initialize and start the app_timer

    After calling app_timer_create the program crashes.
           5172>, nrf_mesh_sdk.c,   84, HARDFAULT...
           
    app_timer_start() is never reached.       

    ==> I gave up and am using RTC counters instead (that thing works).

    Actually I still would like to use the app_timer, but it costs me too much time.

Children
Related