<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>getting gatt error while uploading the firmware over ota</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67064/getting-gatt-error-while-uploading-the-firmware-over-ota</link><description>hi.. 
 development board - nRF52832 
 SDK version -15.2 version 
 Fellowed method - B1b. Use Oberon crypto library instead of uECC 
 softdevice version - v 6.1.0 
 tools using - nrfconnect to upload the secure bootloader and softdevice . 
 
 generated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Oct 2020 11:02:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67064/getting-gatt-error-while-uploading-the-firmware-over-ota" /><item><title>RE: getting gatt error while uploading the firmware over ota</title><link>https://devzone.nordicsemi.com/thread/275041?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 11:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0b3f7c1-dcf3-4a39-aa90-d7b6bc504dca</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Error 133 (0x85): GATT ERROR is an generic error, it happens in different occasions. We have observed it on:&lt;/p&gt;
&lt;p&gt;1) Packet collision&lt;br /&gt;2) CONNECT_REQ missed by the target&lt;br /&gt;3) Timeout (30 or 20 seconds after connection was initiated)&lt;br /&gt;4) in general, an expected packet wasn&amp;#39;t received or an unexpected was.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It used to be much more common in the old days, now we see it less and less with the new phones, but the low-end devices&amp;nbsp;might see this issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What phone model/brand are you using ? Do you see this issue on several phones, or only on one phone ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getting gatt error while uploading the firmware over ota</title><link>https://devzone.nordicsemi.com/thread/274980?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 06:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96e40cc7-0ff2-49d6-8ad7-2fa566d163f4</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;yes i tried .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In app i am getting the gatt error 0x85 error&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;lt;info&amp;gt; app: Inside main
&amp;lt;debug&amp;gt; app: In nrf_bootloader_init
&amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...
&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.
&amp;lt;warning&amp;gt; nrf_dfu_settings: Resetting bootloader settings since neither the settings page nor the backup are valid (CRC error).
&amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...
&amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0007F000
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0007F000, len=1 pages), queue usage: 0
&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x0007F000, pending 0
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0007F000, src=0x200091BC, len=440 bytes), queue usage: 1
&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0007F000, pending 0
&amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate
&amp;lt;info&amp;gt; app: No firmware to activate.
&amp;lt;debug&amp;gt; app: Enter nrf_dfu_app_is_valid
&amp;lt;debug&amp;gt; app: No valid app to boot.
&amp;lt;debug&amp;gt; app: DFU mode because app is not valid.
&amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled
&amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user
&amp;lt;debug&amp;gt; app: timer_stop (0x200057D4)
&amp;lt;debug&amp;gt; app: timer_activate (0x200057D4)
&amp;lt;info&amp;gt; app: Entering DFU mode.
&amp;lt;debug&amp;gt; app: Initializing transports (found: 1)
&amp;lt;debug&amp;gt; nrf_dfu_ble: Initializing BLE DFU transport
&amp;lt;debug&amp;gt; nrf_dfu_ble: Setting up vector table: 0x00072000
&amp;lt;debug&amp;gt; nrf_dfu_ble: Enabling SoftDevice.
&amp;lt;debug&amp;gt; nrf_dfu_ble: Configuring BLE stack.
&amp;lt;debug&amp;gt; nrf_dfu_ble: Enabling the BLE stack.
&amp;lt;debug&amp;gt; nrf_dfu_ble: No advertising name found
&amp;lt;debug&amp;gt; nrf_dfu_ble: Using default advertising name
&amp;lt;debug&amp;gt; nrf_dfu_ble: Advertising...
&amp;lt;debug&amp;gt; nrf_dfu_ble: BLE DFU transport initialized.
&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_sd backend.
&amp;lt;debug&amp;gt; app: Enter main loop
&amp;lt;debug&amp;gt; nrf_dfu_ble: Connected
&amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST.
&amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_DATA_LENGTH_UPDATE (27, max_rx_time 328).
&amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_CONN_PARAM_UPDATE
&amp;lt;debug&amp;gt; nrf_dfu_ble: max_conn_interval: 12
&amp;lt;debug&amp;gt; nrf_dfu_ble: min_conn_interval: 12
&amp;lt;debug&amp;gt; nrf_dfu_ble: slave_latency: 0
&amp;lt;debug&amp;gt; nrf_dfu_ble: conn_sup_timeout: 600
&amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_CONN_PARAM_UPDATE
&amp;lt;debug&amp;gt; nrf_dfu_ble: max_conn_interval: 6
&amp;lt;debug&amp;gt; nrf_dfu_ble: min_conn_interval: 6
&amp;lt;debug&amp;gt; nrf_dfu_ble: slave_latency: 0
&amp;lt;debug&amp;gt; nrf_dfu_ble: conn_sup_timeout: 500
&amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_CONN_PARAM_UPDATE
&amp;lt;debug&amp;gt; nrf_dfu_ble: max_conn_interval: 12
&amp;lt;debug&amp;gt; nrf_dfu_ble: min_conn_interval: 12
&amp;lt;debug&amp;gt; nrf_dfu_ble: slave_latency: 0
&amp;lt;debug&amp;gt; nrf_dfu_ble: conn_sup_timeout: 600
&amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST (request: 517, reply: 247).
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_SELECT (command)
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
&amp;lt;debug&amp;gt; nrf_dfu_ble: Set receipt notif
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_RECEIPT_NOTIF_SET
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
&amp;lt;debug&amp;gt; app: Shutting down transports (found: 1)
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_CREATE (command)
&amp;lt;debug&amp;gt; app: timer_stop (0x200057D4)
&amp;lt;debug&amp;gt; app: timer_activate (0x200057D4)
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
&amp;lt;debug&amp;gt; nrf_dfu_ble: Buffer 0x20008120 acquired, len 141 (244)
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_WRITE (command)
&amp;lt;debug&amp;gt; nrf_dfu_ble: Freeing buffer 0x20008120
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_CRC_GET (command)
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_EXECUTE (command)
&amp;lt;debug&amp;gt; nrf_dfu_validation: PB: Init packet data len: 64
&amp;lt;info&amp;gt; nrf_dfu_validation: Signature required. Checking signature.
&amp;lt;info&amp;gt; nrf_dfu_validation: Calculating init packet hash (init packet len: 64)
&amp;lt;info&amp;gt; nrf_dfu_validation: Verify signature
&amp;lt;info&amp;gt; nrf_dfu_validation: Image verified
&amp;lt;debug&amp;gt; app: Enter nrf_dfu_cache_prepare()
&amp;lt;debug&amp;gt; app: required_size: 0x574C.
&amp;lt;debug&amp;gt; app: single_bank: false.
&amp;lt;debug&amp;gt; app: keep_app: false.
&amp;lt;debug&amp;gt; app: keep_softdevice: true.
&amp;lt;debug&amp;gt; app: SD_PRESENT: true.
&amp;lt;debug&amp;gt; app: Bank contents:
&amp;lt;debug&amp;gt; app: Bank 0 code: 0x00: Size: 0x0
&amp;lt;debug&amp;gt; app: Bank 1 code: 0x00: Size: 0x0
&amp;lt;debug&amp;gt; app: pass: 0.
&amp;lt;debug&amp;gt; app: cache_address: 0x26000.
&amp;lt;debug&amp;gt; app: cache_too_small: false.
&amp;lt;debug&amp;gt; app: keep_firmware: false.
&amp;lt;debug&amp;gt; app: delete_more: false.
&amp;lt;debug&amp;gt; nrf_dfu_validation: Write address set to 0x00026000
&amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...
&amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0007F000
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0007F000, len=1 pages), queue usage: 1
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0007F000, src=0x200091BC, len=440 bytes), queue usage: 2
&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.
&amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...
&amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0007E000
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0007E000, len=1 pages), queue usage: 3
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0007E000, src=0x20009374, len=440 bytes), queue usage: 4
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Writing valid init command to flash.
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_SELECT (data)
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: crc = 0x0, offset = 0x0, max_size = 0x1000
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x0007F000, pending 4
&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0007F000, pending 3
&amp;lt;debug&amp;gt; app: Shutting down transports (found: 1)
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_CREATE (data)
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x00026000, len=1 pages), queue usage: 3
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Creating object with size: 4096. Offset: 0x00000000, CRC: 0x00000000
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getting gatt error while uploading the firmware over ota</title><link>https://devzone.nordicsemi.com/thread/274880?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 12:12:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:801cfcb8-47ab-492f-87fc-ee18bb4ec47b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried using the debug variant of the bootloader(pca10040_ble_debug), and see if you get any errors or asserts printed in the terminal?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PS: If you are having issues with the RTT logging, then you might need to set&amp;nbsp;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED in sdk_config.h to 0&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>