From a980696dd0d7509b6a2c1212c243fa4ce9a648f9 Mon Sep 17 00:00:00 2001 From: montea Date: Sun, 12 Feb 2023 18:51:21 +0000 Subject: [PATCH 1/2] Changed the default max MTU size within the DFU transport to 23, which is the required size for the legacy bootloader to perform a successful OTA with the latest Nordic-DFU-Library. --- .../components/libraries/bootloader_dfu/dfu_transport_ble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sdk11/components/libraries/bootloader_dfu/dfu_transport_ble.c b/lib/sdk11/components/libraries/bootloader_dfu/dfu_transport_ble.c index 4b459d75..2715dce7 100644 --- a/lib/sdk11/components/libraries/bootloader_dfu/dfu_transport_ble.c +++ b/lib/sdk11/components/libraries/bootloader_dfu/dfu_transport_ble.c @@ -37,7 +37,7 @@ #define BLEGAP_EVENT_LENGTH 6 -#define BLEGATT_ATT_MTU_MAX 247 +#define BLEGATT_ATT_MTU_MAX 23 enum { BLE_CONN_CFG_HIGH_BANDWIDTH = 1 }; #define DFU_REV_MAJOR 0x00 /** DFU Major revision number to be exposed. */ From 5f95de13141384269fb0f30f23c31aeefb510196 Mon Sep 17 00:00:00 2001 From: montea Date: Mon, 13 Feb 2023 10:46:51 +0000 Subject: [PATCH 2/2] Set MTU to 23 within main.c file as per request on the comment above it --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 47386ca8..960daa4f 100644 --- a/src/main.c +++ b/src/main.c @@ -131,7 +131,7 @@ extern void tusb_hal_nrf_power_event(uint32_t event); // These value must be the same with one in dfu_transport_ble.c #define BLEGAP_EVENT_LENGTH 6 -#define BLEGATT_ATT_MTU_MAX 247 +#define BLEGATT_ATT_MTU_MAX 23 enum { BLE_CONN_CFG_HIGH_BANDWIDTH = 1 }; //--------------------------------------------------------------------+