My technical questions are as follows:
1) I need to upgrade an old iBeacon transmitter we design using the nRF52832 with SDK 11 (Sofdevice s132_nrf52_2.0.0_softdevice.hex) to the latest SDK 15 (Softdevice s132_nrf52_6.0.0_softdevice.hex) and we found many compilation errors, assuming many changes were made.
2) We are making a simple application where the nRF52832 to go to deep sleep until a Button is pressed (we use PCA10040 board BUTTON_1)
Command sd_power_system_off(); is used to place nRF52 in deep sleep mode.
3) When Button 1 is pressed (goes from 1 to 0) the nRF52 wakes up and we need to measure the time while Button 1 is pressed.
To measure the time, we use app timer configured to interrupt every 500ms, so we increment a counter value on the callback.
4) When Button 1 is released, the timer should stop, so we create a new entry BSP_EVENT_KEY_0_RELEASE on bsp.h enum.
Then we add we add event:
err_code = bsp_event_to_button_action_assign(0, BSP_BUTTON_ACTION_RELEASE, BSP_EVENT_KEY_0_RELEASE);
APP_ERROR_CHECK(err_code);
We also added the case BSP_EVENT_KEY_0_RELEASE; to bsp_event_handler(bsp_event_t event)
5) We are using ble_app_beacon para la PCA10040 as base example, may be another example can be recommended.
6) When Button1 is pressed, the nRF52 awakes and start working but is doesn’t detect Button1 release.
If Button1 is pressed and released again, then yes the event happens and the Timer stops.
7) This is a very simple application we easily made in the past.
Please send me examples and guides on how to implement this application using SDK 15 and the latest Softdevice version.
Please let me know if more information is required from our side and will be waiting your answer ASAP.
Thanks and regards,
Mr. Giancarlo Bregante