<?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>52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111208/52840-freertos-dfu-advertising-scan</link><description>我的项目使用 nrf52840 和 Freertos。该项目具有蓝牙广播和扫描功能。Bootloader 不使用 Freertos。当我在 nrf connect 中使用软件升级 DFU 时，DFU 功能没有响应。我使用 Freertos 创建了一个刷新任务，该任务一直在持续运行。未执行 DFU 升级。</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 May 2024 06:58:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111208/52840-freertos-dfu-advertising-scan" /><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/485954?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 06:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0549e62-a496-48ba-a3fc-b7128e835a25</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I am glad to hear that. Thanks for letting me know!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/485939?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 02:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1d74df7-e42c-4e9b-85fb-099bf30e75c4</guid><dc:creator>Trump</dc:creator><description>&lt;p&gt;Thank you, I solved this issue with your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/485855?ContentTypeID=1</link><pubDate>Fri, 24 May 2024 13:47:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46e7a860-933a-4058-9bba-4f136af4bf91</guid><dc:creator>Trump</dc:creator><description>&lt;p&gt;Okay, I will verify this code. Thank you for your answer. I will let you know as soon as I have the results. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/485839?ContentTypeID=1</link><pubDate>Fri, 24 May 2024 13:31:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:095a5936-ca0a-49f2-99ed-a578b4ad1f9d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;A short update from me. It seems the problem is that you do not handle the&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;BLE_GATTS_EVT_SYS_ATTR_MISSING event. This is handled by the peer manager if the application use that (as is the case in the buttonless DFU sample application), but as you don&amp;#39;t use the peer manager you must handle it yourself. You can do this by adding this snippet to your event handling in&amp;nbsp;ble_evt_handler():&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;		case BLE_GATTS_EVT_SYS_ATTR_MISSING:
            // No system attributes have been stored.
            err_code = sd_ble_gatts_sys_attr_set(m_conn_handle, NULL, 0, 0);
            APP_ERROR_CHECK(err_code);
            break;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/485813?ContentTypeID=1</link><pubDate>Fri, 24 May 2024 12:21:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fa90887-8646-49f1-8000-c96b0b955f58</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;There must be a way to fix it, but honestly I stil don&amp;#39;t understand what the cause of this issue is. Wha I do see though, is that there ar eproblems allready in the service discovery. You can see it in the sniffer trace, in the GUI, you don&amp;#39;t see the CCCD:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1716553274820v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Compared with how it should be, as you can see for instance in the screenshot in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/64817/enabling-indications-in-buttonless-secure-dfu-service-without-bonds/264644"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/485243?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 00:42:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0878f7d-9583-4c56-9444-282b6e95f2a8</guid><dc:creator>Trump</dc:creator><description>&lt;p&gt;There&amp;#39;s no way to fix this. At the moment, I can only use the mobile software for the upgrade work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/485050?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 10:59:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d997e298-7aab-4ca7-9c0d-d66c486f9693</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the sample. I am able to reproduce it with that sample. DFU works with an iPhone, but not with nRF Connect for Desktop. If I test with the buttonless DFK sample from SDK 17.1.0, I can perform buttonless DFU also from nRF Connect for dekstop.&lt;/p&gt;
&lt;p&gt;The probelm is not in the bootloader, but the device does not enter DFU mode. From nRF Connect for Dekstop you can see a GATT timeout, and this is also visible in the attached sniffer traces: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0842.traces.zip"&gt;devzone.nordicsemi.com/.../0842.traces.zip&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I have not been able to see what causes this issue yet though. Have you had any progress on your end?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/484882?ContentTypeID=1</link><pubDate>Sun, 19 May 2024 12:17:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94fbc88d-77d2-4fc3-b4d8-0c1009fdbb4d</guid><dc:creator>Trump</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2248.examples.zip"&gt;devzone.nordicsemi.com/.../2248.examples.zip&lt;/a&gt;&lt;span&gt;This is a simple demo I built. I tested that it can be upgraded using the mobile APP, but cannot be upgraded using the PC software.&lt;/span&gt;&lt;span&gt;You can test it by directly replacing it with the SDK&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/484880?ContentTypeID=1</link><pubDate>Sun, 19 May 2024 10:53:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc841d76-2807-47e0-8725-ca741ded764c</guid><dc:creator>Trump</dc:creator><description>&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;18:46:22.952&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Connection parameters updated for device D6:B2:91:97:3B:A8: interval 100ms, timeout 4000ms, latency: 0&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-info"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;18:46:25.966&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Disconnected from device D6:B2:91:97:3B:A8(&lt;span&gt;When I use nRF Connect for Desktop Bluetooth Low Energy, after selecting the upgrade file and clicking the DFU button, this log appears.&lt;/span&gt;)&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/484737?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 14:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f82f3018-0c39-4985-8139-75e22dd3b349</guid><dc:creator>Trump</dc:creator><description>&lt;p&gt;I forgot to take a screenshot. I used Wireshark to capture and found that when using the DFU service to upload files, there was a display indicating retrieval failure. And then it ended, the app didn&amp;#39;t show the upgrade rate chart, it was always empty packets sent by the master and slave. You should be able to quickly reproduce the problem I mentioned using the files I provided.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/484726?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 14:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:573417c8-9174-40b7-b74e-dd93510ddbda</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. I cannot say more at this point then, you need to share details about how you test and how you debug and which results you get.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/484725?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 14:03:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46ff0fef-cebb-4757-ae89-068242696d4c</guid><dc:creator>Trump</dc:creator><description>&lt;p&gt;Yes, it is included in my main. c, and this definition works. Due to confidentiality reasons, I have deleted all irrelevant and brief information. Sorry.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/484724?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 14:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32061a04-d84a-471a-bd81-b9492b23c1a9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Is it defined in a header file that is inlcuded in your main.c? If not, it has no effect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/484723?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 13:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98c082df-db8b-492c-83da-fb4fc63cb698</guid><dc:creator>Trump</dc:creator><description>&lt;p&gt;By comparison, I have defined it in another file but did not upload it, # define DFU_SUPPORT 1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/484721?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 13:56:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7e85802-7b90-4b1a-96da-7f9a77276794</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I do not see&amp;nbsp;DFU_SUPPORT in the list of preprocessor defines, and you use that in the code to decide if the code related to buttonless DFU should be included. So if you have not defined it, it is expecrted that it does not work. So please define it, rebuild and test again. If it does not work, please share in detail how you test and what you have found by testing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/484719?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 13:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f7f17ad-fe90-4a54-9c6e-c4f8ed16abe6</guid><dc:creator>Trump</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8875.FreeRTOSConfig.h"&gt;devzone.nordicsemi.com/.../8875.FreeRTOSConfig.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0842.main.c"&gt;devzone.nordicsemi.com/.../0842.main.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7380.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../7380.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am using SEGGER Embedded Studio for ARM 5.42a IDE。&lt;/p&gt;
&lt;p&gt;c_preprocessor_definitions=&amp;quot;BOARD_PCA10056;CONFIG_GPIO_AS_PINRESET;FLOAT_ABI_HARD;INITIALIZE_USER_SECTIONS;NO_VTOR_CONFIG;NRF52840_XXAA;NRF_SD_BLE_API_VERSION=7;S140;SOFTDEVICE_PRESENT;BL_SETTINGS_ACCESS_ONLY;NRF_DFU_SVCI_ENABLED;NRF_DFU_TRANSPORT_BLE=1;CONFIG_NFCT_PINS_AS_GPIOS;FREERTOS;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have very few modification points, and I have uploaded most of the changes I made. It shouldn&amp;#39;t be an issue with the bootloader. When I was working today, I tested the Bluetooth slave+freertos demo and it can be upgraded。&lt;/p&gt;
&lt;p&gt;demo&amp;nbsp;nrf5_sdk_17.1.0_ddde560\examples\ble_peripheral\ble_app_hrs_freertos+nrf5_sdk_17.1.0_ddde560\examples\ble_peripheral\ble_app_buttonless_dfu。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/484715?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 13:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b336be1b-550b-419c-a974-064c35484954</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Can you test with the debug bootloader suffixed &amp;quot;_debug&amp;quot; and share the RTT log? Also, please explain &lt;em&gt;in detail&lt;/em&gt; how you test and what you see, as I cannot say much without more information.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS: Friday and Monday is public holidays in Norway so I will not be able to get back to you again until Tuesday next week.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/484708?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 13:29:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf3e7f3-b820-4938-86ee-1bdb55a46ff0</guid><dc:creator>Trump</dc:creator><description>&lt;p&gt;nrf5_sdk_17.1.0_ddde560。examples\dfu\secure_bootloader\pca10056_s140_ble -my Bootloader.&lt;/p&gt;
&lt;p&gt;I am using the nrf connect app for DFU upgrade&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/484703?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 13:22:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9600590-7e79-4e4d-aa7d-1f157a6690fd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which SDK version are you using and how do intend to enter DFU mode? Is it via buttonless DFU (as demonstrated by the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_buttonless_dfu.html"&gt;buttonless DFU sample&lt;/a&gt;), or some other method? What have you found by debugging and observing logs?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840+freertos+dfu+ advertising+scan</title><link>https://devzone.nordicsemi.com/thread/484589?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 00:59:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29571d5c-d30d-476e-991e-a3fce7ef4079</guid><dc:creator>Trump</dc:creator><description>&lt;p&gt;My project uses nrf52840 and Freertos. This project has Bluetooth broadcasting and scanning functions. Bootloader does not use Freertos. When I used software to upgrade DFU in nrf connect, the DFU function did not respond. I created a refresh task using Freertos and it has been running continuously. DFU upgrade not performed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>