Skip to content

Commit e3f1908

Browse files
committed
fix bootloader
1 parent 8b55daf commit e3f1908

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

apps/secure_bootloader/config/sdk_config.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4930,6 +4930,12 @@
49304930
#define BLE_RSCS_C_BLE_OBSERVER_PRIO 2
49314931
#endif
49324932

4933+
// <q> BSP_BTN_BLE_ENABLED - bsp_btn_ble - Button Control for BLE
4934+
4935+
#ifndef BSP_BTN_BLE_ENABLED
4936+
#define BSP_BTN_BLE_ENABLED 0
4937+
#endif
4938+
49334939
// <o> BLE_TPS_BLE_OBSERVER_PRIO
49344940
// <i> Priority with which BLE events are dispatched to the TX Power Service.
49354941

@@ -5155,20 +5161,20 @@
51555161
// <2=> NRF_CLOCK_LF_SRC_SYNTH
51565162

51575163
#ifndef NRF_SDH_CLOCK_LF_SRC
5158-
#define NRF_SDH_CLOCK_LF_SRC 1
5164+
#define NRF_SDH_CLOCK_LF_SRC 0
51595165
#endif
51605166

51615167
// <o> NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval.
51625168
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
5163-
#define NRF_SDH_CLOCK_LF_RC_CTIV 0
5169+
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
51645170
#endif
51655171

51665172
// <o> NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature.
51675173
// <i> How often (in number of calibration intervals) the RC oscillator shall be calibrated
51685174
// <i> if the temperature has not changed.
51695175

51705176
#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
5171-
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0
5177+
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
51725178
#endif
51735179

51745180
// <o> NRF_SDH_CLOCK_LF_ACCURACY - External clock accuracy used in the LL to compute timing.
@@ -5187,7 +5193,7 @@
51875193
// <11=> NRF_CLOCK_LF_ACCURACY_1_PPM
51885194

51895195
#ifndef NRF_SDH_CLOCK_LF_ACCURACY
5190-
#define NRF_SDH_CLOCK_LF_ACCURACY 7
5196+
#define NRF_SDH_CLOCK_LF_ACCURACY 1
51915197
#endif
51925198

51935199
// </h>

apps/secure_bootloader/src/main.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ static void dfu_observer(nrf_dfu_evt_type_t evt_type)
106106
case NRF_DFU_EVT_DFU_FAILED:
107107
case NRF_DFU_EVT_DFU_ABORTED:
108108
case NRF_DFU_EVT_DFU_INITIALIZED:
109-
bsp_board_init(BSP_INIT_LEDS);
110-
bsp_board_led_on(BSP_BOARD_LED_0);
111-
bsp_board_led_on(BSP_BOARD_LED_1);
112-
bsp_board_led_off(BSP_BOARD_LED_2);
109+
//bsp_board_init(BSP_INIT_LEDS);
110+
//bsp_board_led_on(BSP_BOARD_LED_0);
111+
//bsp_board_led_on(BSP_BOARD_LED_1);
112+
//bsp_board_led_off(BSP_BOARD_LED_2);
113113
break;
114114
case NRF_DFU_EVT_TRANSPORT_ACTIVATED:
115-
bsp_board_led_off(BSP_BOARD_LED_1);
116-
bsp_board_led_on(BSP_BOARD_LED_2);
115+
//bsp_board_led_off(BSP_BOARD_LED_1);
116+
//bsp_board_led_on(BSP_BOARD_LED_2);
117117
break;
118118
case NRF_DFU_EVT_DFU_STARTED:
119119
break;

0 commit comments

Comments
 (0)