Hello,
I am using nrf52840 and SDK 16.0.0
I have integrated two examples, ble_app_template and nrf_calendar example. Now I have a problem. I wanna update the manufacturer specific data every 1 sec, so I put the advertisement update function(advertisement_update()) inside the callback function so that the advertisement_update() can be called every 1 sec. My code looks like below. (advertising_init() , advertisement_update(), callback function, and main())
Problem #1
Whenever I reboot and try to execute nrf_set_callback() inside main(), it stops running and always returns NRF_BREAKPOINT_COND. What more confused me is when I put the advertisement_update() on the just main function (not inside the callback) it updates the data without any error.
Problem #2
When I tried to merge the two examples before, I had to change the RTC setting in nrf_calendar example from RTC0 to RTC2, because RTO0 was already used by SoftDevice in ble_app_template example. I was trying to use RTC1 so I did like below in nrf_calendar.h
but the compile failed like below. I have no idea what that means. I appreciate if you could you explain it to me?
Always thanks to Nordic support team. Thanks !!