BL653 soft reset fails in sample DFU App

Hi,

I am running Sample DFU app based on peripheral_lbs suggested by nordic on BL653dvk : https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu

So far have been able to execute & download the firmware file from mobile app into the bl653 board.

But post 100% firmware file downloading on the board, the nrf connect mobile app starts to validate the image.

During validation, the BL653's connectivity drops with the mobile app & it doesn't reboot.

The logs are stuck until here:

The workspace I am using is as in:

5415.peripheral_lbs_BL653.7z

Please suggest for me to resolve this issue.

Same code I tried on nrf52833dk & it works fine there. So.

Thanks,

Ubaid

  • Hello Ubaid,

    Does it remain in this bad state if you reset the board? It would also be helpful if you could attach a debugger to the board and try to figure out where the program gets stuck. A good start is to see if the program counter (PC) register is in the MCUBoot or application region. 

    Thanks,

    Vidar

  • Hello ,

    Does it remain in this bad state if you reset the board?

    After reset same image boots up well, The device is still in application mode & not in mcuboot.

    Mobile app says successfully sent file to BL653 & below are the logs from mobile app: 

    nRF Connect, 2022-03-25
    Dushyanth_LBS_DND (CA:7D:7C:9D:D2:74)
    V 18:44:04.149 Connecting to CA:7D:7C:9D:D2:74...
    D 18:44:04.150 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
    D 18:44:05.261 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
    D 18:44:05.266 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
    I 18:44:05.266 Connected to CA:7D:7C:9D:D2:74
    V 18:44:05.311 Discovering services...
    D 18:44:05.311 gatt.discoverServices()
    I 18:44:05.703 Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
    D 18:44:06.019 [Callback] Services discovered with status: 0
    I 18:44:06.019 Services discovered
    V 18:44:06.115 Generic Attribute (0x1801)
    - Service Changed [I] (0x2A05)
       Client Characteristic Configuration (0x2902)
    - Client Supported Features [R W] (0x2B29)
    - Database Hash [R] (0x2B2A)
    Generic Access (0x1800)
    - Device Name [R] (0x2A00)
    - Appearance [R] (0x2A01)
    - Peripheral Preferred Connection Parameters [R] (0x2A04)
    Nordic LED Button Service (00001523-1212-efde-1523-785feabcd123)
    - Button [N R] (00001524-1212-efde-1523-785feabcd123)
       Client Characteristic Configuration (0x2902)
    - LED [W] (00001525-1212-efde-1523-785feabcd123)
    SMP Service (8d53dc1d-1db7-4cd3-868b-8a527460aa84)
    - SMP Characteristic [N WNR] (da2e7828-fbce-4e01-ae9e-261174997c48)
       Client Characteristic Configuration (0x2902)
    D 18:44:06.115 gatt.setCharacteristicNotification(00002a05-0000-1000-8000-00805f9b34fb, true)
    D 18:44:06.120 gatt.setCharacteristicNotification(00001524-1212-efde-1523-785feabcd123, true)
    I 18:44:06.154 Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 5000ms)
    I 18:44:09.941 Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 420ms)
    V 18:50:48.058 [McuMgr] Connecting...
    D 18:50:48.066 [McuMgr] gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, LE 1M)
    D 18:50:48.110 [McuMgr] [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
    I 18:50:48.122 [McuMgr] Connected to CA:7D:7C:9D:D2:74
    D 18:50:48.144 [McuMgr] wait(300)
    V 18:50:48.457 [McuMgr] Discovering services...
    D 18:50:48.461 [McuMgr] gatt.discoverServices()
    I 18:50:48.490 [McuMgr] Services discovered
    V 18:50:48.508 [McuMgr] Primary service found
    V 18:50:48.525 [McuMgr] Requesting new MTU...
    D 18:50:48.534 [McuMgr] gatt.requestMtu(515)
    I 18:50:48.633 [McuMgr] MTU changed to: 252
    D 18:50:48.638 [McuMgr] gatt.setCharacteristicNotification(da2e7828-fbce-4e01-ae9e-261174997c48, true)
    V 18:50:48.643 [McuMgr] Enabling notifications for da2e7828-fbce-4e01-ae9e-261174997c48
    D 18:50:48.654 [McuMgr] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00)
    I 18:50:48.810 [McuMgr] Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 01-00
    I 18:50:48.814 [McuMgr] Notifications enabled
    V 18:50:48.823 [McuMgr] Writing characteristic da2e7828-fbce-4e01-ae9e-261174997c48 (WRITE COMMAND)
    D 18:50:48.827 [McuMgr] gatt.writeCharacteristic(da2e7828-fbce-4e01-ae9e-261174997c48)
    I 18:50:48.839 [McuMgr] Data written to da2e7828-fbce-4e01-ae9e-261174997c48, value: (0x) 00-00-00-02-00-01-00-00-BF-FF
    A 18:50:48.866 [McuMgr] "Operation: READ
    Flags: 0
    Length: 2
    Group Id: 1 (IMAGE)
    Sequence Num: 0
    Command Id: 0 (STATE)
    Message: {}" sent
    I 18:50:48.900 [McuMgr] Notification received from da2e7828-fbce-4e01-ae9e-261174997c48, value: (0x) 01-00-00-86-00-01-00-00-BF-66-69-6D-61-67-65-73-9F-BF-64-73-6C-6F-74-00-67-76-65-72-73-69-6F-6E-65-30-2E-30-2E-30-64-68-61-73-68-58-20-85-C7-82-60-DC-8C-0F-DE-B5-DA-A3-EB-C7-D1-1B-D7-36-1F-B8-89-1D-C7-34-A3-3C-CE-42-1B-AE-49-67-FF-68-62-6F-6F-74-61-62-6C-65-F5-67-70-65-6E-64-69-6E-67-F4-69-63-6F-6E-66-69-72-6D-65-64-F5-66-61-63-74-69-76-65-F5-69-70-65-72-6D-61-6E-65-6E-74-F4-FF-FF-6B-73-70-6C-69-74-53-74-61-74-75-73-00-FF
    A 18:50:48.935 [McuMgr] "{"images":[{"slot":0,"version":"0.0.0","hash":"hceCYNyMD9612qPrx9Eb1zYfuIkdxzSjPM5CG65JZ/8=","bootable":true,"pending":false,"confirmed":true,"active":true,"permanent":false}],"splitStatus":0}" received
    V 18:50:48.946 [McuMgr] Disconnecting...
    D 18:50:48.954 [McuMgr] gatt.disconnect()
    D 18:50:48.964 [McuMgr] [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
    I 18:50:48.970 [McuMgr] Disconnected
    D 18:50:48.974 [McuMgr] gatt.close()
    V 18:51:18.594 [McuMgr] Connecting...
    D 18:51:18.603 [McuMgr] gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, LE 1M)
    D 18:51:18.620 [McuMgr] [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
    I 18:51:18.628 [McuMgr] Connected to CA:7D:7C:9D:D2:74
    D 18:51:18.632 [McuMgr] wait(300)
    I 18:51:18.639 [McuMgr] MTU changed to: 252
    V 18:51:18.940 [McuMgr] Discovering services...
    D 18:51:18.950 [McuMgr] gatt.discoverServices()
    I 18:51:18.964 [McuMgr] Services discovered
    V 18:51:18.968 [McuMgr] Primary service found
    V 18:51:18.976 [McuMgr] Requesting new MTU...
    D 18:51:18.986 [McuMgr] gatt.requestMtu(515)
    I 18:51:19.095 [McuMgr] MTU changed to: 252
    D 18:51:19.100 [McuMgr] gatt.setCharacteristicNotification(da2e7828-fbce-4e01-ae9e-261174997c48, true)
    V 18:51:19.109 [McuMgr] Enabling notifications for da2e7828-fbce-4e01-ae9e-261174997c48
    D 18:51:19.114 [McuMgr] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00)
    I 18:51:19.181 [McuMgr] Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 01-00
    I 18:51:19.185 [McuMgr] Notifications enabled
    V 18:51:19.193 [McuMgr] Writing characteristic da2e7828-fbce-4e01-ae9e-261174997c48 (WRITE COMMAND)
    D 18:51:19.197 [McuMgr] gatt.writeCharacteristic(da2e7828-fbce-4e01-ae9e-261174997c48)
    I 18:51:19.209 [McuMgr] Data written to da2e7828-fbce-4e01-ae9e-261174997c48, value: (0x) 00-00-00-02-00-01-00-00-BF-FF
    A 18:51:19.214 [McuMgr] "Operation: READ
    Flags: 0
    Length: 2
    Group Id: 1 (IMAGE)
    Sequence Num: 0
    Command Id: 0 (STATE)
    Message: {}" sent
    I 18:51:19.281 [McuMgr] Notification received from da2e7828-fbce-4e01-ae9e-261174997c48, value: (0x) 01-00-00-86-00-01-00-00-BF-66-69-6D-61-67-65-73-9F-BF-64-73-6C-6F-74-00-67-76-65-72-73-69-6F-6E-65-30-2E-30-2E-30-64-68-61-73-68-58-20-85-C7-82-60-DC-8C-0F-DE-B5-DA-A3-EB-C7-D1-1B-D7-36-1F-B8-89-1D-C7-34-A3-3C-CE-42-1B-AE-49-67-FF-68-62-6F-6F-74-61-62-6C-65-F5-67-70-65-6E-64-69-6E-67-F4-69-63-6F-6E-66-69-72-6D-65-64-F5-66-61-63-74-69-76-65-F5-69-70-65-72-6D-61-6E-65-6E-74-F4-FF-FF-6B-73-70-6C-69-74-53-74-61-74-75-73-00-FF
    A 18:51:19.289 [McuMgr] "{"images":[{"slot":0,"version":"0.0.0","hash":"hceCYNyMD9612qPrx9Eb1zYfuIkdxzSjPM5CG65JZ/8=","bootable":true,"pending":false,"confirmed":true,"active":true,"permanent":false}],"splitStatus":0}" received
    V 18:51:19.295 [McuMgr] Disconnecting...
    D 18:51:19.297 [McuMgr] gatt.disconnect()
    D 18:51:19.301 [McuMgr] [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
    I 18:51:19.303 [McuMgr] Disconnected
    D 18:51:19.310 [McuMgr] gatt.close()
    V 18:51:34.137 [McuMgr] Connecting...
    D 18:51:34.139 [McuMgr] gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, LE 1M)
    D 18:51:34.154 [McuMgr] [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
    I 18:51:34.163 [McuMgr] Connected to CA:7D:7C:9D:D2:74
    D 18:51:34.169 [McuMgr] wait(300)
    I 18:51:34.172 [McuMgr] MTU changed to: 252
    V 18:51:34.473 [McuMgr] Discovering services...
    D 18:51:34.475 [McuMgr] gatt.discoverServices()
    I 18:51:34.494 [McuMgr] Services discovered
    V 18:51:34.500 [McuMgr] Primary service found
    V 18:51:34.506 [McuMgr] Requesting new MTU...
    D 18:51:34.511 [McuMgr] gatt.requestMtu(515)
    I 18:51:34.617 [McuMgr] MTU changed to: 252
    D 18:51:34.621 [McuMgr] gatt.setCharacteristicNotification(da2e7828-fbce-4e01-ae9e-261174997c48, true)
    V 18:51:34.630 [McuMgr] Enabling notifications for da2e7828-fbce-4e01-ae9e-261174997c48
    D 18:51:34.634 [McuMgr] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00)
    I 18:51:34.707 [McuMgr] Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 01-00
    I 18:51:34.712 [McuMgr] Notifications enabled
    V 18:51:34.718 [McuMgr] Writing characteristic da2e7828-fbce-4e01-ae9e-261174997c48 (WRITE COMMAND)
    D 18:51:34.722 [McuMgr] gatt.writeCharacteristic(da2e7828-fbce-4e01-ae9e-261174997c48)
    I 18:51:34.728 [McuMgr] Data written to da2e7828-fbce-4e01-ae9e-261174997c48, value: (0x) 00-00-00-02-00-01-00-00-BF-FF
    A 18:51:34.733 [McuMgr] "Operation: READ
    Flags: 0
    Length: 2
    Group Id: 1 (IMAGE)
    Sequence Num: 0
    Command Id: 0 (STATE)
    Message: {}" sent
    I 18:51:34.799 [McuMgr] Notification received from da2e7828-fbce-4e01-ae9e-261174997c48, value: (0x) 01-00-00-86-00-01-00-00-BF-66-69-6D-61-67-65-73-9F-BF-64-73-6C-6F-74-00-67-76-65-72-73-69-6F-6E-65-30-2E-30-2E-30-64-68-61-73-68-58-20-85-C7-82-60-DC-8C-0F-DE-B5-DA-A3-EB-C7-D1-1B-D7-36-1F-B8-89-1D-C7-34-A3-3C-CE-42-1B-AE-49-67-FF-68-62-6F-6F-74-61-62-6C-65-F5-67-70-65-6E-64-69-6E-67-F4-69-63-6F-6E-66-69-72-6D-65-64-F5-66-61-63-74-69-76-65-F5-69-70-65-72-6D-61-6E-65-6E-74-F4-FF-FF-6B-73-70-6C-69-74-53-74-61-74-75-73-00-FF
    A 18:51:34.807 [McuMgr] "{"images":[{"slot":0,"version":"0.0.0","hash":"hceCYNyMD9612qPrx9Eb1zYfuIkdxzSjPM5CG65JZ/8=","bootable":true,"pending":false,"confirmed":true,"active":true,"permanent":false}],"splitStatus":0}" received
    V 18:51:34.816 [McuMgr] Disconnecting...
    D 18:51:34.819 [McuMgr] gatt.disconnect()
    D 18:51:34.823 [McuMgr] [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
    I 18:51:34.825 [McuMgr] Disconnected
    D 18:51:34.833 [McuMgr] gatt.close()
    V 18:53:02.381 [McuMgr] Connecting...
    D 18:53:02.383 [McuMgr] gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, LE 1M)
    D 18:53:02.421 [McuMgr] [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
    I 18:53:02.429 [McuMgr] Connected to CA:7D:7C:9D:D2:74
    D 18:53:02.433 [McuMgr] wait(300)
    I 18:53:02.439 [McuMgr] MTU changed to: 252
    V 18:53:02.742 [McuMgr] Discovering services...
    D 18:53:02.745 [McuMgr] gatt.discoverServices()
    I 18:53:02.755 [McuMgr] Services discovered
    V 18:53:02.761 [McuMgr] Primary service found
    V 18:53:02.767 [McuMgr] Requesting new MTU...
    D 18:53:02.772 [McuMgr] gatt.requestMtu(515)
    I 18:53:02.862 [McuMgr] MTU changed to: 252
    D 18:53:02.865 [McuMgr] gatt.setCharacteristicNotification(da2e7828-fbce-4e01-ae9e-261174997c48, true)
    V 18:53:02.868 [McuMgr] Enabling notifications for da2e7828-fbce-4e01-ae9e-261174997c48
    D 18:53:02.871 [McuMgr] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00)
    I 18:53:02.953 [McuMgr] Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 01-00
    I 18:53:02.963 [McuMgr] Notifications enabled
    V 18:53:02.966 [McuMgr] Writing characteristic da2e7828-fbce-4e01-ae9e-261174997c48 (WRITE COMMAND)
    D 18:53:02.968 [McuMgr] gatt.writeCharacteristic(da2e7828-fbce-4e01-ae9e-261174997c48)
    I 18:53:02.974 [McuMgr] Data written to da2e7828-fbce-4e01-ae9e-261174997c48, value: (0x) 00-00-00-02-00-01-00-00-BF-FF
    A 18:53:02.977 [McuMgr] "Operation: READ
    Flags: 0
    Length: 2
    Group Id: 1 (IMAGE)
    Sequence Num: 0
    Command Id: 0 (STATE)
    Message: {}" sent
    I 18:53:03.044 [McuMgr] Notification received from da2e7828-fbce-4e01-ae9e-261174997c48, value: (0x) 01-00-00-86-00-01-00-00-BF-66-69-6D-61-67-65-73-9F-BF-64-73-6C-6F-74-00-67-76-65-7

    Below are the BL653 console logs, 

    *** Booting Zephyr OS build v2.7.0-ncs1  ***
    I: Starting bootloader
    I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Boot source: none
    I: Swap type: none
    I: Bootloader chainload address offset: 0xc000
    I: Jumping to the first image slot
    
    //**RESET BOARD HERE**//
    *** Booting Zephyr OS build v2.7.0-ncs1  ***
    Starting Bluetooth Peripheral LBS example
    build time: Mar 25 2022 18:40:18
    Good News1
    Good News2
    Good News3
    Good News4
    I: 2 Sectors of 4096 bytes
    I: alloc wra: 0, fd0
    I: data wra: 0, 1c
    I: SoftDevice Controller build revision: 
    I: df c0 4e d6 1f 7c 66 09 |..N..|f.
    I: 0a f5 2b a0 98 f2 43 64 |..+...Cd
    I: 62 c5 a6 2a             |b..*    
    I: No ID address. App must call settings_load()
    Good News5
    Bluetooth initialized
    Good News6
    Good News7
    Advertising successfully started
    Good News1
    Connected
    I: Swap type: none
    

    Below are debug logs from BL653

    nRF Connect, 2022-03-25
    Dushyanth_LBS_DND (CA:7D:7C:9D:D2:74)
    D 19:19:15.011 gatt.close()
    D 19:19:15.015 wait(200)
    V 19:19:15.217 Connecting to CA:7D:7C:9D:D2:74...
    D 19:19:15.218 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
    D 19:19:16.234 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
    I 19:19:16.234 Connected to CA:7D:7C:9D:D2:74
    D 19:19:16.255 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
    V 19:19:16.274 Discovering services...
    D 19:19:16.274 gatt.discoverServices()
    I 19:19:16.681 Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
    D 19:19:16.979 [Callback] Services discovered with status: 0
    I 19:19:16.979 Services discovered
    V 19:19:16.989 Generic Attribute (0x1801)
    - Service Changed [I] (0x2A05)
       Client Characteristic Configuration (0x2902)
    - Client Supported Features [R W] (0x2B29)
    - Database Hash [R] (0x2B2A)
    Generic Access (0x1800)
    - Device Name [R] (0x2A00)
    - Appearance [R] (0x2A01)
    - Peripheral Preferred Connection Parameters [R] (0x2A04)
    Nordic LED Button Service (00001523-1212-efde-1523-785feabcd123)
    - Button [N R] (00001524-1212-efde-1523-785feabcd123)
       Client Characteristic Configuration (0x2902)
    - LED [W] (00001525-1212-efde-1523-785feabcd123)
    SMP Service (8d53dc1d-1db7-4cd3-868b-8a527460aa84)
    - SMP Characteristic [N WNR] (da2e7828-fbce-4e01-ae9e-261174997c48)
       Client Characteristic Configuration (0x2902)
    D 19:19:16.989 gatt.setCharacteristicNotification(00002a05-0000-1000-8000-00805f9b34fb, true)
    D 19:19:16.992 gatt.setCharacteristicNotification(00001524-1212-efde-1523-785feabcd123, true)
    I 19:19:17.085 Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 5000ms)
    I 19:19:20.774 Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 420ms)
    V 19:19:24.502 [McuMgr] Connecting...
    D 19:19:24.504 [McuMgr] gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, LE 1M)
    D 19:19:24.515 [McuMgr] [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
    I 19:19:24.519 [McuMgr] Connected to CA:7D:7C:9D:D2:74
    D 19:19:24.526 [McuMgr] wait(300)
    V 19:19:24.833 [McuMgr] Discovering services...
    D 19:19:24.836 [McuMgr] gatt.discoverServices()
    I 19:19:24.845 [McuMgr] Services discovered
    V 19:19:24.853 [McuMgr] Primary service found
    V 19:19:24.859 [McuMgr] Requesting new MTU...
    D 19:19:24.877 [McuMgr] gatt.requestMtu(515)
    I 19:19:24.961 [McuMgr] MTU changed to: 252
    D 19:19:24.966 [McuMgr] gatt.setCharacteristicNotification(da2e7828-fbce-4e01-ae9e-261174997c48, true)
    V 19:19:24.972 [McuMgr] Enabling notifications for da2e7828-fbce-4e01-ae9e-261174997c48
    D 19:19:24.978 [McuMgr] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00)
    I 19:19:25.054 [McuMgr] Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 01-00
    I 19:19:25.056 [McuMgr] Notifications enabled
    V 19:19:25.064 [McuMgr] Writing characteristic da2e7828-fbce-4e01-ae9e-261174997c48 (WRITE COMMAND)
    D 19:19:25.066 [McuMgr] gatt.writeCharacteristic(da2e7828-fbce-4e01-ae9e-261174997c48)
    I 19:19:25.071 [McuMgr] Data written to da2e7828-fbce-4e01-ae9e-261174997c48, value: (0x) 00-00-00-02-00-01-00-00-BF-FF
    A 19:19:25.074 [McuMgr] "Operation: READ
    Flags: 0
    Length: 2
    Group Id: 1 (IMAGE)
    Sequence Num: 0
    Command Id: 0 (STATE)
    Message: {}" sent
    I 19:19:25.145 [McuMgr] Notification received from da2e7828-fbce-4e01-ae9e-261174997c48, value: (0x) 01-00-00-86-00-01-00-00-BF-66-69-6D-61-67-65-73-9F-BF-64-73-6C-6F-74-00-67-76-65-72-73-69-6F-6E-65-30-2E-30-2E-30-64-68-61-73-68-58-20-85-C7-82-60-DC-8C-0F-DE-B5-DA-A3-EB-C7-D1-1B-D7-36-1F-B8-89-1D-C7-34-A3-3C-CE-42-1B-AE-49-67-FF-68-62-6F-6F-74-61-62-6C-65-F5-67-70-65-6E-64-69-6E-67-F4-69-63-6F-6E-66-69-72-6D-65-64-F5-66-61-63-74-69-76-65-F5-69-70-65-72-6D-61-6E-65-6E-74-F4-FF-FF-6B-73-70-6C-69-74-53-74-61-74-75-73-00-FF
    A 19:19:25.151 [McuMgr] "{"images":[{"slot":0,"version":"0.0.0","hash":"hceCYNyMD9612qPrx9Eb1zYfuIkdxzSjPM5CG65JZ/8=","bootable":true,"pending":false,"confirmed":true,"active":true,"permanent":false}],"splitStatus":0}" received
    V 19:19:25.155 [McuMgr] Disconnecting...
    D 19:19:25.157 [McuMgr] gatt.disconnect()
    D 19:19:25.163 [McuMgr] [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
    I 19:19:25.167 [McuMgr] Disconnected
    D 19:19:25.170 [McuMgr] gatt.close()

    Kindly suggest to solve this

    5415.peripheral_lbs_BL653.7z

    Thanks,

  • Hi,

    After reset same image boots up well, The device is still in application mode & not in mcuboot.

    Does it boot the new application, or the previous version, and is the app functioning normally? It appears that it does from the console log you posted (i.e. BLE connection gets re-established after the reset).

    Best regards,

    Vidar

  • Hello Vidar,


    and is the app functioning normally?

    The nordic suggested sample DFU app worked for me successfully on BL653, Only change I had to do extra was to add  "CONFIG_MULTITHREADING = Y" into "prj_minimal.CONF" file.

    Prior to this, the issue was that BL653 was not soft resetting after successful download of the bin file.


    Please help me understand regarding how addition of "CONFIG_MULTITHREADING = Y" into "prj_minimal.CONF" file, solves this soft reboot issue..?

    And how come the same code is working fine on nrf52833dvk without the addition of "CONFIG_MULTITHREADING = Y" into "prj_minimal.CONF" file..?

    Thanks,

    Ubaid

  • Hello Ubaid,

    Could you share your current .config files from <build dir>/zephyr and <build dir>/mcuboot/zephyr so I can have a look? I guess the issue is related to the clock calibration as discussed here:  https://github.com/zephyrproject-rtos/zephyr/issues/40538

    The 52833 DK uses the 32KHz by default and therefore does not have a need for periodic calibration.

    Best regards,

    Vidar

Related