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

Using RTC along with ble soft device and app timer

We are using nRF52832 in our design. We want to collect sensor information along with time stamp. So I took nRF calendar application and tested the same. It was working fine. Then I added app timer along with BLE pheripheral (uart) application. Then I am configuring RTC2 for my calendar information. Then starts the advertising for connection. The nrfCalendar application works well for 2.30 minutes.The it reboots the whole board. I am not able to idenfy the root casuse.

Please suggest me to get around this issue.

Parents
  • Hi

    It seems there is a timeout somewhere that's set to 2.30 minutes (150 seconds). I wasn't able to find one in the calendar example, so I'm assuming it is somewhere in your initial application. Does this occur while you're advertising? In that case, I'm guessing it's the APP_ADV_DURATION that triggers. You can set this to 0 in the main.c file in order to advertise indefinitely.

    Best regards,

    Simon

Reply
  • Hi

    It seems there is a timeout somewhere that's set to 2.30 minutes (150 seconds). I wasn't able to find one in the calendar example, so I'm assuming it is somewhere in your initial application. Does this occur while you're advertising? In that case, I'm guessing it's the APP_ADV_DURATION that triggers. You can set this to 0 in the main.c file in order to advertise indefinitely.

    Best regards,

    Simon

Children
No Data
Related