diff --git a/libs/bluetooth/jswrap_bluetooth.c b/libs/bluetooth/jswrap_bluetooth.c index a955ceee5..93c30e138 100644 --- a/libs/bluetooth/jswrap_bluetooth.c +++ b/libs/bluetooth/jswrap_bluetooth.c @@ -61,7 +61,7 @@ of beta. */ #define DEVICE_NAME "Espruino "PC_BOARD_ID /**< Name of device. Will be included in the advertising data. */ #define NUS_SERVICE_UUID_TYPE BLE_UUID_TYPE_VENDOR_BEGIN /**< UUID type for the Nordic UART Service (vendor specific). */ -#define APP_ADV_INTERVAL 64 /**< The advertising interval (in units of 0.625 ms. This value corresponds to 750ms). */ +#define APP_ADV_INTERVAL 1200 /**< The advertising interval (in units of 0.625 ms. This value corresponds to 750ms). */ #define APP_ADV_TIMEOUT_IN_SECONDS 180 /**< The advertising timeout (in units of seconds). */ #define SCAN_INTERVAL 0x00A0 /**< Scan interval in units of 0.625 millisecond. 100ms */ @@ -519,8 +519,8 @@ static void ble_stack_init(void) uint32_t err_code; // Initialize SoftDevice. - SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL); - //SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_8000MS_CALIBRATION, false); + // SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL); // Maybe we should use this if external crystal available. + SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_8000MS_CALIBRATION, false); ble_enable_params_t ble_enable_params; err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT, diff --git a/targetlibs/nrf5x/nrf5x_linkers/linker_nrf51_ble_espruino_16.ld b/targetlibs/nrf5x/nrf5x_linkers/linker_nrf51_ble_espruino_16.ld index 29d833b94..a969b86cf 100644 --- a/targetlibs/nrf5x/nrf5x_linkers/linker_nrf51_ble_espruino_16.ld +++ b/targetlibs/nrf5x/nrf5x_linkers/linker_nrf51_ble_espruino_16.ld @@ -6,7 +6,7 @@ GROUP(-lgcc -lc -lnosys) MEMORY { FLASH (rx) : ORIGIN = 0x1B000, LENGTH = 0x21000 - RAM (rwx) : ORIGIN = 0x20001F00, LENGTH = 0x2100 /* 16kB */ + RAM (rwx) : ORIGIN = 0x20001E00, LENGTH = 0x2200 /* 16kB */ } SECTIONS diff --git a/targetlibs/nrf5x/nrf5x_linkers/linker_nrf51_ble_espruino_32.ld b/targetlibs/nrf5x/nrf5x_linkers/linker_nrf51_ble_espruino_32.ld index 9d97e97a0..251626386 100644 --- a/targetlibs/nrf5x/nrf5x_linkers/linker_nrf51_ble_espruino_32.ld +++ b/targetlibs/nrf5x/nrf5x_linkers/linker_nrf51_ble_espruino_32.ld @@ -6,7 +6,7 @@ GROUP(-lgcc -lc -lnosys) MEMORY { FLASH (rx) : ORIGIN = 0x1B000, LENGTH = 0x21000 - RAM (rwx) : ORIGIN = 0x20001F00, LENGTH = 0x6100 /* 32kB */ + RAM (rwx) : ORIGIN = 0x20001E00, LENGTH = 0x6200 /* 32kB */ } SECTIONS diff --git a/targetlibs/nrf5x/nrf5x_linkers/linker_nrf52_ble_espruino.ld b/targetlibs/nrf5x/nrf5x_linkers/linker_nrf52_ble_espruino.ld index ff35f8746..4633cd554 100644 --- a/targetlibs/nrf5x/nrf5x_linkers/linker_nrf52_ble_espruino.ld +++ b/targetlibs/nrf5x/nrf5x_linkers/linker_nrf52_ble_espruino.ld @@ -6,7 +6,7 @@ GROUP(-lgcc -lc -lnosys) MEMORY { FLASH (rx) : ORIGIN = 0x1B000, LENGTH = 0x5F000 - RAM (rwx) : ORIGIN = 0x20001F00, LENGTH = 0xE100 /* 64kB - This is PCA_10040 not the preview dev kit! */ + RAM (rwx) : ORIGIN = 0x20001E00, LENGTH = 0xE200 /* 64kB - This is PCA_10040 not the preview dev kit! */ } SECTIONS