Skip to content

Commit 143576a

Browse files
committed
Bangle.js2/Jolt.js: Increase GAP_EVENT_LENGTH to allow coded phy connections (1.2k more RAM used)
1 parent f160f86 commit 143576a

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

ChangeLog

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
Templated strings without Templates now treated as normal strings (fix #2577)
4141
Add pretokenisation of 8/16 bit ints (fix #2563)
4242
nRF5x: Fix BLE connection timeout (was 40ms, not 4s) for more reliable outgoing connections
43+
Bangle.js2/Jolt.js: Increase GAP_EVENT_LENGTH to allow coded phy connections (1.2k more RAM used)
4344

4445
2v25 : ESP32C3: Get analogRead working correctly
4546
Graphics: Adjust image alignment when rotating images to avoid cropping (fix #2535)

boards/BANGLEJS2.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@
5050
#'DEFINES += -DESPR_REGOUT0_1_8V=1', # this increases power draw, so probably not correct!
5151
'DEFINES += -DESPR_LSE_ENABLE', # Ensure low speed external osc enabled
5252
'DEFINES += -DNRF_SDH_BLE_GATT_MAX_MTU_SIZE=131', # 23+x*27 rule as per https://devzone.nordicsemi.com/f/nordic-q-a/44825/ios-mtu-size-why-only-185-bytes
53+
'DEFINES += -DNRF_SDH_BLE_GAP_EVENT_LENGTH=6', # Needed to allow coded phy connections
5354
'DEFINES += -DCENTRAL_LINK_COUNT=2 -DNRF_SDH_BLE_CENTRAL_LINK_COUNT=2', # allow two outgoing connections at once
54-
'LDFLAGS += -Xlinker --defsym=LD_APP_RAM_BASE=0x3660', # set RAM base to match MTU=131 + CENTRAL_LINK_COUNT=2
55+
'LDFLAGS += -Xlinker --defsym=LD_APP_RAM_BASE=0x3b70', # set RAM base to match MTU=131 + CENTRAL_LINK_COUNT=2 + GAP_EVENT_LENGTH=6
5556
'DEFINES += -DESPR_DCDC_ENABLE=1', # Use DC/DC converter
5657
'ESPR_BLUETOOTH_ANCS=1', # Enable ANCS (Apple notifications) support
5758
'DEFINES += -DSPIFLASH_SLEEP_CMD', # SPI flash needs to be explicitly slept and woken up

boards/JOLTJS.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@
4444
'DEFINES += -DNEOPIXEL_SCK_PIN=1 -DNEOPIXEL_LRCK_PIN=26', # nRF52840 needs LRCK pin defined for neopixel
4545
'DEFINES += -DESPR_USE_STEPPER_TIMER=1', # Build in the code for stepping using the timer
4646
'DEFINES += -DNRF_SDH_BLE_GATT_MAX_MTU_SIZE=131', # 23+x*27 rule as per https://devzone.nordicsemi.com/f/nordic-q-a/44825/ios-mtu-size-why-only-185-bytes
47+
'DEFINES += -DNRF_SDH_BLE_GAP_EVENT_LENGTH=6', # Needed to allow coded phy connections
4748
'DEFINES += -DCENTRAL_LINK_COUNT=2 -DNRF_SDH_BLE_CENTRAL_LINK_COUNT=2', # allow two outgoing connections at once
48-
'LDFLAGS += -Xlinker --defsym=LD_APP_RAM_BASE=0x3660', # set RAM base to match MTU=131 + CENTRAL_LINK_COUNT=2
49+
'LDFLAGS += -Xlinker --defsym=LD_APP_RAM_BASE=0x3b70', # set RAM base to match MTU=131 + CENTRAL_LINK_COUNT=2 + GAP_EVENT_LENGTH=6
4950
'DEFINES += -DAPP_TIMER_OP_QUEUE_SIZE=6',
5051
'DEFINES+= -DBLUETOOTH_NAME_PREFIX=\'"Jolt.js"\'',
5152
# see targets/nrf5x/app_config.h for USB descriptors

targets/nrf5x/app_config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
#ifdef NRF5X_SDK_15 // SDK15/NRF52840
168168

169169
// To allow advertising transmit via coded phy (connectable:true,scannable:false)
170-
// #define NRF_SDH_BLE_GAP_EVENT_LENGTH 10
170+
// #define NRF_SDH_BLE_GAP_EVENT_LENGTH 6
171171
#endif // NRF52840
172172

173173
#ifdef NRF5X_SDK_17

0 commit comments

Comments
 (0)