<?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>disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57091/disconnecting-while-operations-are-in-progress-never-gives-ble_gap_evt_disconnected-event</link><description>I’m developing an application based on pc-ble-driver to talk to an nRF52840-based dongle (from Fanstel). 
 I’m having trouble disconnecting cleanly when a connection has operations in progress. For example, I call ‘sd_ble_gattc_write’, which returns NRF_SUCCESS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 May 2020 09:08:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57091/disconnecting-while-operations-are-in-progress-never-gives-ble_gap_evt_disconnected-event" /><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/249130?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 09:08:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd256fc6-fb84-4fc4-bc2c-3eb16f0c9adb</guid><dc:creator>Paul Bradford</dc:creator><description>&lt;p&gt;I&amp;rsquo;ve had Leo&amp;#39;s firmware USB840M_200527_UARTLog_Pin6.rar, from late on May 6, running on two devices for three days without ever seeing the &amp;lsquo;no event&amp;rsquo; error. I&amp;rsquo;m happy to say this seems to be solved. I&amp;rsquo;ve&amp;nbsp; had it running on the Fanstel dongle and the Nordic Development kit.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll summarize all the changes since this support case started.&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;1. In my application, sd_ble_gap_connect was being called with&amp;nbsp;ble_gap_scan_params_t.timeout=0 so that if the connection was not established it would not receive event&amp;nbsp;BLE_GAP_EVT_TIMEOUT(BLE_GAP_TIMEOUT_SRC_CONN)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;2. In my application, all the sd_ble_gattc_* operations needed to watch for event BLE_GATTC_EVT_TIMEOUT to indicate the operation would not complete successfully&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;3. In my application, all the sd_ble_gattc_* operations needed to watch for event &lt;/span&gt;BLE_GAP_EVT_DISCONNECTED&amp;nbsp;&lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;to indicate the operation would not complete successfully&lt;/span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;4. In the connectivity firmware, fixed race condition around resuming SoftDevice events, see April 24 post from Jorgen. SDK file&amp;nbsp;examples\connectivity\ble_connectivity\main.c&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;5. In connectivity firmware, increase scheduler queue size from 16 to 64, see Jorgen post April 29, and in more detail on May 5: change&amp;nbsp;SER_CONN_SCHED_QUEUE_SIZE from 16 to 64 in SDK&amp;nbsp;components\serialization\connectivity\ser_conn_handlers.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;The only remaining step is to get those changes into the released SDK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248599?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 02:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc566fca-364e-4786-9d4a-4048bac97acc</guid><dc:creator>LeoChen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The following link for log on P0.06, clock internal.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.dropbox.com/s/q7ddx4zqw86x0q4/USB840M_200527_UARTLog_Pin6.rar?dl=0"&gt;https://www.dropbox.com/s/q7ddx4zqw86x0q4/USB840M_200527_UARTLog_Pin6.rar?dl=0&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248553?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 19:13:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e47dd63-0154-47c3-b639-d95be4d13a5a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I did a quick test run with logging enabled for all SD events and function-calls in the connectivity FW. I tried to synch the clocks as good as possible (second accuracy), as the logger and application run on different computers This is the output from your application:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;2020-05-06 20:58:36.352: (WARNING) restart scanning because we&amp;#39;ve gone 10 timer ticks with no advertisements&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is the log file from the connectivity FW:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2da51f980d7d4d6f955a8df09486ab94/20200506_5F00_sdcalls_5F00_events.log"&gt;devzone.nordicsemi.com/.../20200506_5F00_sdcalls_5F00_events.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;From what I can see, it looks like there are ADV_REPROT events generated about every 1-2 seconds before the reset in your application, so I&amp;#39;m not sure if the events are not passed fast enough to your application, or if they are not processed quickly enough in your application. There is also a huge amount of RSSI_CHANGED events, which may slow things down. Do you require to be notified on every RSSI change in your application? You can set the threshold/skip count in the softdevice API call:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#gac369253b7f5ce0fc0093a6133faa791f"&gt;sd_ble_gap_rssi_start&lt;/a&gt;().&lt;/p&gt;
&lt;p&gt;What connection parameters do you have for the connection? From the RSSI events, it could look like the connection interval is set to 30 ms? What about connection event length, slave latency, etc? This will all affect the available radio time for doing scanning. Since you are doing advertising simultaneously, you may reach the radio time limit if your parameters are not carefully selected. Check out the&amp;nbsp;&lt;a title="Scheduling" href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/multilink_scheduling/multilink_scheduling.html?cp=4_6_3_0_14"&gt;Scheduling&lt;/a&gt;&amp;nbsp;chapter in the softdevice specifications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248529?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 15:06:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8a8df6e-97f3-4b0b-be5b-0ddb3ca9b292</guid><dc:creator>Paul Bradford</dc:creator><description>&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;&amp;quot;Receiving no advertisements&amp;quot; means any advertisement at all, not just from the tracked phone.&amp;nbsp; The timer tick is a one-second period where we aren&amp;#39;t doing any work other than scanning - since we&amp;#39;re only scanning, we expect we&amp;#39;d received advertisements.&amp;nbsp; Between timer ticks we do stuff like connecting to phones, so N timer ticks can be much longer than N seconds.&amp;nbsp; This issue of not receiving advertisements is a real problem that I&amp;#39;ll need to resolve, but I don&amp;#39;t want it to interfere with this support case, so I&amp;#39;ve uploaded modified test program bgSDKTestAppMay6.zip that doesn&amp;#39;t reset the nRF52840.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;I was able to wire the pins for logging. I removed the wire to use Leo&amp;#39;s firmware that did RTT logging (which so far is not reproducing the issue).&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248505?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 14:00:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12c070d6-f6e0-49e3-a7d8-fc5d76bd5c81</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="Paul Bradford"]after a prolonged period of receiving no advertisements[/quote]
&lt;p&gt;Does this include all advertisements or only advertisements from the tracked phone? How long time is &amp;quot;10 timer ticks&amp;quot;? I see this message a lot when I leave the phone for a while, it kinda seems like the phone/application enters some kind of state where it pauses/terminates the application. I have tried to disable power optimization for the app on the phone. I have verified with the &amp;#39;s&amp;#39; command that the phone is actually being tracked, but sometimes it does report that it is not tracked, until I unlock the phone. I have not purposedly set any configs on the phone side, it should use the default settings of the Samsung Galaxy S7. I do not see this event on when testing Huawei P30 Pro.&lt;/p&gt;
&lt;p&gt;Let me know if you are not able to wire the pins for logging, I can build you a version with log on P0.06.&lt;/p&gt;
&lt;p&gt;@leochen: I&amp;nbsp;was not able to reproduce the original issue with RTT logging enabled/RTT Viewer open. If you are always running this with the firmware, it could be the reason that you did not manage to reproduce the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248325?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 03:23:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d84f9c9-f693-4ebf-8502-7e263458d4d8</guid><dc:creator>LeoChen</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;Thanks for detail.&lt;/p&gt;
&lt;p&gt;I found where cause the new problem on my code.&lt;/p&gt;
&lt;p&gt;I am following the latest Nordic patch file and compiler again.&lt;/p&gt;
&lt;p&gt;I already installed three dongles to try.&lt;/p&gt;
&lt;p&gt;My log is setup to RTT Viewer.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.dropbox.com/s/z5xll23kkcpaxks/USB840M_200506.rar?dl=0"&gt;https://www.dropbox.com/s/z5xll23kkcpaxks/USB840M_200506.rar?dl=0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248290?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 16:39:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8e4d6ba-0aa9-4077-aa45-a2f49f9329d3</guid><dc:creator>Paul Bradford</dc:creator><description>&lt;p&gt;The reset you are seeing is induced by the test program, and has changed since prior versions. This test program uses lots of code from our product, and one thing it does is reset the nRF52840 after a prolonged period of receiving no advertisements, since we&amp;#39;re scanning constantly and should always be seeing advertisements - we take this 5+ minutes with advertisements to mean the chip has failed, so we reset it. Note that earlier we had noticed that advertisements stopped and had tried to restart them: &amp;quot;&lt;span style="background-color:#ffffff;"&gt;restart scanning because we&amp;#39;ve gone 10 timer ticks with no advertisements&lt;/span&gt;&amp;quot;.&amp;nbsp; Does the firmware logging show what&amp;#39;s going on that causes no advertisements to be received?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It may not mean anything, but the line of output from the test program &amp;quot;&lt;span style="background-color:#ffffff;"&gt;Nordic event handler received an un-handled event with ID:&amp;nbsp; 30&lt;/span&gt;&amp;quot; indicates it received event &lt;span style="background-color:#ffffff;"&gt;BLE_GAP_EVT_SEC_REQUEST which the product does not process. I don&amp;#39;t recall ever seeing that event. Is your test phone somehow set up to requiring pairing or bonding? If it were, it would not successfully stay connected to the test program.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;When you run the test program, do you verify that shortly after starting it has connected to the phone (&amp;quot;phone is being tracked&amp;quot;) as described in the README?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;On the PuTTY question from earlier, I had missed the instruction about wiring pins on the DK. I&amp;#39;ll work on this with the limited equipment I have at home.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248239?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 14:32:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a8f879d-d69d-402f-82e9-751585f8898a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi Paul,&lt;/p&gt;
&lt;p&gt;I tracked down the reset that I&amp;#39;m seeing to a call to&amp;nbsp;sd_nvic_SystemReset() in&amp;nbsp;ser_conn_generic_command_process() when a&amp;nbsp;SER_GENERIC_CMD_RESET command is received. This indicates that the pc-ble-driver application is issuing a reset command. This also looks to be the case in the log output from your application:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;gt;bgsdkTestApp.exe -u27527585-e5bb-4697-b0af-0e92785043b6 -f5 -v0 -cCOM4
use challenge/response frequency of 5 seconds
logging level 0
&amp;#39;d&amp;#39; to disconnect any connected devices
&amp;#39;q&amp;#39; to quit program
&amp;#39;r&amp;#39; to do a hard reset of the dongle - after this the program exits
&amp;#39;s&amp;#39; to show status of all monitored phones
&amp;#39;+&amp;#39; to increase logging level
&amp;#39;-&amp;#39; to decrease logging level
2020-05-05 15:49:48.999: (WARNING) Nordic event handler received an un-handled event with ID:  30
2020-05-05 15:50:31.955: (WARNING) restart scanning because we&amp;#39;ve gone 10 timer ticks with no advertisements
2020-05-05 15:50:33.799: (ERROR) Error:  Failed to decode event, error code is 14/0xe.
2020-05-05 15:50:33.924: (WARNING) bgsdk::details::AdvDataParser::Parse MAC =  42:f5:68:c6:cd:d1 failed to parse 1e ff 06 00 01 09 20 02 9b 89 59 dc cd f2 0f a9 46 2f b7 61 7a  invalid advertisement: section length = 30 results in end index 31 &amp;gt; size 21
2020-05-05 15:50:47.656: (WARNING) restart scanning because we&amp;#39;ve gone 10 timer ticks with no advertisements
2020-05-05 15:50:48.968: (ERROR) Error:  Failed to decode event, error code is 14/0xe.
2020-05-05 15:50:49.281: (ERROR) Error:  Failed to decode event, error code is 14/0xe.
2020-05-05 15:55:40.263: (WARNING) trigger reset hardware_radio_error because we&amp;#39;ve gone 300 timer ticks with no advertisements, indicating the Bluegiga hardware failed
IMPBGSDK reported HardwareFailure (for Nordic this happens when we don&amp;#39;t detect advertisements for a long time)
IMPBGSDK reported HardwareSoftResetInitiated WITH DeviceRemoval (for Nordic this happens when we don&amp;#39;t detect advertisements for a long time)
2020-05-05 15:55:40.910: (ERROR) Error:  serial port write operation on port COM4 failed. Error: The device does not recognize the command.[22]
2020-05-05 15:55:42.218: (WARNING) resetting Nordic failed:  0x802a NRF_ERROR_SD_RPC_H5_TRANSPORT_NO_RESPONSE
2020-05-05 15:55:43.773: (ERROR) Error:  Error purging UART 22
2020-05-05 15:55:43.779: (WARNING) std::exception during keepalive: sd_ble_gattc_read failed (Error: 32773) : 0x8005 NRF_ERROR_SD_RPC_NO_RESPONSE
2020-05-05 15:55:43.784: (ERROR) bgsdk::BeaconController::Impl::StopAdvertising Failed to stop advertising:  Nordic adapter closed (Error: 36865) : Unknown error
2020-05-05 15:55:43.786: (ERROR) bgsdk::BeaconController::Impl::StartAdvertising Failed to start advertising:  Nordic adapter closed (Error: 36865) : Unknown error
2020-05-05 15:55:43.787: (WARNING) start scanning caused exception:  Nordic adapter closed (Error: 36865) : Unknown error
2020-05-05 15:55:43.787: (WARNING) Event wait terminates because of global reset&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This was seen when running your latest application (bgSDKTestAppMay4.zip). I did not see similar output in the old application. Did you make any changes to the application to make the chip reset? I will try to test with the&amp;nbsp;Imprivata_bgTestApp.zip application to see if I&amp;#39;m still able to reproduce.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248165?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 12:09:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0b3ebfc-f56a-42fa-ac4a-d6a198848567</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you connect a wire between P0.31 and P0.06 on the DK, as I described in the last change-point below?&lt;/p&gt;
[quote user="joh2"]When running on DK, a wire must be connected between P0.31 and P0.06 to output logs. [/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248161?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 11:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c84fdec1-5173-4a71-af12-54dcde0248bb</guid><dc:creator>Paul Bradford</dc:creator><description>&lt;p&gt;I loaded &lt;a style="background-attachment:scroll;background-color:transparent;background-image:none;background-repeat:repeat;background-size:auto;color:#24b8cc;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;" href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2da51f980d7d4d6f955a8df09486ab94/200505_5F00_ble_5F00_connectivity_5F00_s140_5F00_usb_5F00_hci_5F00_pca10056_5F00_lfrc_5F00_mergedsoftdevice.hex"&gt;200505_ble_connectivity_s140_usb_hci_pca10056_lfrc_mergedsoftdevice.hex&lt;/a&gt; into the Nordic DK, and I&amp;#39;m running the test program. But when I start PuTTY to log the JLINK serial port, I see no output at all. I&amp;#39;m using the same procedure I&amp;#39;ve been using the last few days, including BAUD rate 115200.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248142?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 10:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:524203f0-ac32-4849-be94-363ed1ee676c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I reproduced the issue with the hex-files from Leo as well. How exactly did you change the scheduler queue size? As far as I can see, this is still 16 in the latest project you uploaded (&lt;a href="https://www.dropbox.com/s/t3pcunczygxxr7k/nRF5_SDK_15.3.0_59ac345_PC_Connect_200505.rar?dl=0"&gt;nRF5_SDK_15.3.0_59ac345_PC_Connect_200505.rar&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// In ser_conn_handlers.h:
/** Maximum number of events in the application scheduler queue. */
#ifdef S112
#define SER_CONN_SCHED_QUEUE_SIZE             8u
#else
#define SER_CONN_SCHED_QUEUE_SIZE             16u
#endif

// In main.c:
APP_SCHED_INIT(SER_CONN_SCHED_MAX_EVENT_DATA_SIZE, SER_CONN_SCHED_QUEUE_SIZE);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And when debugging, it is set to 16 when app_scheduler is initialized:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2da51f980d7d4d6f955a8df09486ab94/app_5F00_scheduler_5F00_queue_5F00_size.png" /&gt;&lt;/p&gt;
&lt;p&gt;I created a clean patched SDK, with the appropriate fixes and a few changes. Can you please try building using this? These are the changes (can also be seen in&amp;nbsp;attached&amp;nbsp;patch-file:&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2da51f980d7d4d6f955a8df09486ab94/changes.patch"&gt;devzone.nordicsemi.com/.../changes.patch&lt;/a&gt;)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Added Critical region in main.c&lt;/li&gt;
&lt;li&gt;Increased scheduler size to 64&lt;/li&gt;
&lt;li&gt;Removed serialization error handler, use SDK default which will output error info&lt;/li&gt;
&lt;li&gt;Added DEBUG and DEBUG_NRF preprocessor defines to Release build configuration, to catch errors and asserts.&lt;/li&gt;
&lt;li&gt;Added separate build configurations for different LF clocks: Release_LFXO (external crystal) and Release_LFRC (internal RC oscillator).&lt;/li&gt;
&lt;li&gt;Enabled UART logging, and set the log level to only output error logs (debug logs adds heavy CPU load).&lt;/li&gt;
&lt;li&gt;Changed UART log TX pin to P0.31, to allow reading logs from nRF52840 Dongle. When running on DK, a wire must be connected between P0.31 and P0.06 to output logs. P0.31 on the dongle can be connected to P0.06 on an empty DK to read logs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2da51f980d7d4d6f955a8df09486ab94/nRF5_5F00_SDK_5F00_15.3.0_5F00_59ac345_5F00_patched_5F00_addedfixes.zip"&gt;devzone.nordicsemi.com/.../nRF5_5F00_SDK_5F00_15.3.0_5F00_59ac345_5F00_patched_5F00_addedfixes.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Precompiled hex-files:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;External LF crystal - &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2da51f980d7d4d6f955a8df09486ab94/200505_5F00_ble_5F00_connectivity_5F00_s140_5F00_usb_5F00_hci_5F00_pca10056_5F00_lfxo_5F00_mergedsoftdevice.hex"&gt;devzone.nordicsemi.com/.../200505_5F00_ble_5F00_connectivity_5F00_s140_5F00_usb_5F00_hci_5F00_pca10056_5F00_lfxo_5F00_mergedsoftdevice.hex&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Internal RC oscillator - &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2da51f980d7d4d6f955a8df09486ab94/200505_5F00_ble_5F00_connectivity_5F00_s140_5F00_usb_5F00_hci_5F00_pca10056_5F00_lfrc_5F00_mergedsoftdevice.hex"&gt;devzone.nordicsemi.com/.../200505_5F00_ble_5F00_connectivity_5F00_s140_5F00_usb_5F00_hci_5F00_pca10056_5F00_lfrc_5F00_mergedsoftdevice.hex&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I have not yet received the Fanstel Dongles, so I&amp;#39;m not sure if these will work with that. You may need to do some changes to support the bootloader etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248083?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 08:18:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8735cf86-539c-4f35-9273-ee3b1c07db62</guid><dc:creator>Paul Bradford</dc:creator><description>&lt;p&gt;I tested the firmware Leo referenced. With the dev-dongle, I tried both&amp;nbsp;&lt;span style="background-color:#ffffff;"&gt;USB840M_200505_ClockInternal&lt;/span&gt;.zip and&amp;nbsp;&lt;span style="background-color:#ffffff;"&gt;USB840M_200505_ClockExternal&lt;/span&gt;.zip and both failed with the &amp;quot;serial port write operation&amp;quot; error after a few minutes.&lt;/p&gt;
&lt;p&gt;With the Nordic DK I tried&amp;nbsp;&lt;span style="background-color:#ffffff;"&gt;USB840M_200505_ClockInternal_2in1.hex and got&amp;nbsp;&lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&amp;quot;serial port write operation&amp;quot; &lt;/span&gt;error after 30 minutes. I attached the firmware logging file&amp;nbsp;2020-05-05-035347-NordicDK_USB840M_200505_ClockInternal_2in1.hex.txt&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;The firmware logging ends with&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:02.638,154] &amp;lt;debug&amp;gt; app: event:BLE_GATTC_EVT_HVX&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:02.643,318] &amp;lt;debug&amp;gt; sphy_hci: TX request (34 bytes)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:02.648,884] &amp;lt;debug&amp;gt; sphy_hci: Started TX packet (payload 34).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:02.655,796] &amp;lt;error&amp;gt; app: Fatal error&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:02.659,891] &amp;lt;error&amp;gt; app: ERROR 4 [NRF_ERROR_NO_MEM] at :0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;PC at: 0x00000000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:02.667,605] &amp;lt;error&amp;gt; app: End of error report&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:02.674,529] &amp;lt;info&amp;gt; app: BLE Clock Internal,UART log,Size 64,CRITICAL_REGION,&lt;/span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:02.682,869] &amp;lt;info&amp;gt; app: USB power detected&lt;/span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:02.688,683] &amp;lt;info&amp;gt; app: USB ready&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;I am now testing the Nordic DK with&amp;nbsp;&lt;span style="background-color:#ffffff;"&gt;USB840M_200505_ClockExternal_2in1.hex&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248043?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 04:13:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd1524fb-81e0-45bc-b771-df0d9aff7483</guid><dc:creator>LeoChen</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;The following link is source project that I am using.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.dropbox.com/s/t3pcunczygxxr7k/nRF5_SDK_15.3.0_59ac345_PC_Connect_200505.rar?dl=0"&gt;https://www.dropbox.com/s/t3pcunczygxxr7k/nRF5_SDK_15.3.0_59ac345_PC_Connect_200505.rar?dl=0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I did compare with the source patched project and can&amp;#39;t see any thing wrong.&lt;/p&gt;
&lt;p&gt;Would you please also give me the entire SDK that you are using to compare.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;Global setting&lt;/p&gt;
&lt;p&gt;Macro:SDK=E:\Keil_v5\ARM\Device\Nordic\nRF5_SDK_15.3.0_59ac345_PC_Connect_200505&lt;/p&gt;
&lt;p&gt;The Project path&lt;/p&gt;
&lt;p&gt;~\nRF5_SDK_15.3.0_59ac345_PC_Connect_200505\examples\connectivity\ble_connectivity\pca10056\ser_s140_usb_hci\ses&lt;/p&gt;
&lt;p&gt;The HEX files that&amp;nbsp;&lt;span&gt;&amp;nbsp;replace&amp;nbsp;error handling&lt;/span&gt;&amp;nbsp;(External Clock does not work with Fanstel USB840M).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.dropbox.com/s/z6u7f227h2sogl7/USB840M0505.rar?dl=0"&gt;https://www.dropbox.com/s/z6u7f227h2sogl7/USB840M0505.rar?dl=0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How long you will see the error happen?&lt;/p&gt;
&lt;p&gt;I programmed 3 dongles and running over 4 hours.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see that error on my Win 7&amp;nbsp; desktop.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Leo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248022?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 19:56:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02968fde-5bfc-432d-9fdb-d0c92ddb09fc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/leochen"&gt;LeoChen&lt;/a&gt;: I did manage to reproduce once with today with the&amp;nbsp;&lt;a href="https://www.dropbox.com/s/u77p0ub617i786e/USB840_Clock_ACCURACY_2in1.hex?dl=0"&gt;USB840_Clock_ACCURACY_2in1.hex&lt;/a&gt;&amp;nbsp;file you provided on a Nordic Dongle. Unfortunately, it does not provide much information about the fatal error. I had modified this in the connectivity hex that I build with queue size of 64 and logging enabled. Can you replace this file in your SDK? It will give the location of the error and the error code on the log.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2da51f980d7d4d6f955a8df09486ab94/ser_5F00_conn_5F00_error_5F00_handling.c"&gt;devzone.nordicsemi.com/.../ser_5F00_conn_5F00_error_5F00_handling.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So far, I&amp;#39;m not able to reproduce the issue with the connectivity FW I&amp;#39;m building. Can you upload the SDK directory that you used, along with the path to the exact project used to build it?&lt;/p&gt;
&lt;p&gt;@paul-bradford: I&amp;#39;m not sure this issue you are now seeing is the same as the original problem. They may look similar to the application, but I never saw the fatal error with my previous testing. I&amp;#39;m not sure if notifications are the cause of this&amp;nbsp;anymore, but we need to find the origin of the fatal error in order to determine what is happening. Hopefully, you should be able to detect that quite fast with the above change I requested from Leo.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248017?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 19:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37619c62-9a4c-4342-a254-9af3fb33490d</guid><dc:creator>Paul Bradford</dc:creator><description>&lt;p&gt;I uploaded a modified test program. The change is to have a command-line option to say how often to do the challenge/response, which is what triggers the notifications from the phone, which is what we suspect is causing this problem. &amp;nbsp; With no option, this is done every 5 minutes. I&amp;#39;ve been testing with new command-line option -f5 which means to do it every 5 seconds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/248009?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 18:42:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c90d463-c911-4bef-818d-d397ede89ef6</guid><dc:creator>Paul Bradford</dc:creator><description>&lt;p&gt;I tested the&amp;nbsp;&lt;span style="background-color:#ffffff;"&gt;USB840_Clock_ACCURACY_3in1.hex&lt;/span&gt; file referenced in Leo&amp;#39;s last post. I loaded it on the Nordic DK by dragging it to the &amp;quot;JLink CDC UART Port&amp;quot;. After just a few minutes my test program got the &amp;quot;serial port write operation&amp;quot; error &amp;quot;The device does not recognize the command&amp;quot;. The firmware logging over that JLink port looked the same as what I uploaded on May 2 (which was also the DK and used firmware&amp;nbsp;&lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&amp;quot;USB840_Connect200430_3in1.hex&amp;quot;&lt;/span&gt; ):&lt;/p&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:13.056,233] &amp;lt;debug&amp;gt; app: event:BLE_GAP_EVT_RSSI_CHANGED&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:13.061,999] &amp;lt;debug&amp;gt; sphy_hci: TX request (7 bytes)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:13.067,421] &amp;lt;debug&amp;gt; sphy_hci: Started TX packet (payload 7).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:13.074,211] &amp;lt;error&amp;gt; app: Fatal error&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:13.441,628] &amp;lt;info&amp;gt; app: BLE connectivity 200427&lt;/span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:13.447,435] &amp;lt;info&amp;gt; app: USB power detected&lt;/span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;[00:00:13.453,251] &amp;lt;info&amp;gt; app: USB ready&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;I have not been able to test this firmware with the Nordic dev-dongle. I tried loading&amp;nbsp;USB840_Clock_ACCURACY_3in1.hex&lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt; &lt;/span&gt;into the dev-dongle using nRF Connect Programmer, but that leaves the dev-dongle in a state where it does not show up as a serial port when I plug it in. If there is some other way I should try to program it, please let me know.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/247752?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 01:49:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27d83f16-56bb-474c-9a59-8e5fc8de26cc</guid><dc:creator>LeoChen</dc:creator><description>&lt;p&gt;The Fanstel USB840M does not have 32K crystal.&lt;/p&gt;
&lt;p&gt;The clock setting is different.&lt;/p&gt;
&lt;p&gt;I change the clock setting back to default.&lt;/p&gt;
&lt;p&gt;The application should all the same as patched SDK.&lt;/p&gt;
&lt;p&gt;The changed were add CRITICAL_REGION_ENTER/ CRITICAL_REGION_EXIT and&amp;nbsp;Scheduler queue size increase to 64.&lt;/p&gt;
&lt;p&gt;These files can&amp;#39;t work with USB840M.&lt;/p&gt;
&lt;p&gt;Application + softdevice&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.dropbox.com/s/u77p0ub617i786e/USB840_Clock_ACCURACY_2in1.hex?dl=0"&gt;https://www.dropbox.com/s/u77p0ub617i786e/USB840_Clock_ACCURACY_2in1.hex?dl=0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Application + bootloader + softdevice&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.dropbox.com/s/pg2hzhorhlivdoo/USB840_Clock_ACCURACY_3in1.hex?dl=0"&gt;https://www.dropbox.com/s/pg2hzhorhlivdoo/USB840_Clock_ACCURACY_3in1.hex?dl=0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Would you please also try these files on Nordic dongle and DK.&lt;/p&gt;
&lt;p&gt;Leo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/247715?ContentTypeID=1</link><pubDate>Sat, 02 May 2020 17:16:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38df497e-1c1d-4c09-b9ef-6f2382052201</guid><dc:creator>Paul Bradford</dc:creator><description>&lt;p&gt;I&amp;#39;ve been testing with t&lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;he firmware file &amp;quot;USB840_Connect200430_3in1.hex&amp;quot; from the DropBox link that Leo from Fanstel referenced in the support case on April 29. This firmware has the critical section fix described by Nordic on April 24, and the queue size 64 change.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;With this firmware, I get errors quickly with the Fanstel dongle and Nordic dev-dongle, and after 17 hours with the Nordic Development Kit.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;br /&gt;Reproduced event loss problem with &lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Nordic Development Kit &lt;/span&gt;on May 2 at about 8 AM eastern daylight time, after running for over 17 hours.&lt;br /&gt;Test program &amp;quot;2020-05-02 08:02:15.759: (ERROR) no Nordic event&amp;nbsp; BLE_GATTC_EVT_WRITE_RSP&amp;nbsp; was received to complete the call to sd_ble_gattc_write&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;The dropbox link below has USB trace using USBPcap and PuTTY serial port logging from the Development Kit.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;br /&gt;The PuTTY output looks normal to me until the very end:&lt;br /&gt;[00:00:58.343,695] &amp;lt;error&amp;gt; app: Fatal error&lt;br /&gt;[00:00:58.710,920] &amp;lt;info&amp;gt; app: BLE connectivity 200427&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;a href="https://www.dropbox.com/s/15ske1dx5jf46wm/May2ReproNordicDK.zip?dl=0"&gt;www.dropbox.com/.../May2ReproNordicDK.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/247431?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 02:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2eaf0f8-c92e-4ea9-ad16-e3234d590604</guid><dc:creator>LeoChen</dc:creator><description>&lt;p&gt;I&amp;nbsp;&lt;span&gt;increased sched queue_size, enabled UART log and compiler agian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;nbsp;have&amp;nbsp; make sure the UART log has output with this BT840_USBconnectivity200430.hex.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.dropbox.com/s/yqkcn95qrwto6g7/BT840_USBconnectivity200430.rar?dl=0"&gt;https://www.dropbox.com/s/yqkcn95qrwto6g7/BT840_USBconnectivity200430.rar?dl=0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/247421?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 20:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1cf684e-6d6b-48b4-90f7-d659f800414c</guid><dc:creator>Paul Bradford</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to reproduce the problem with the DK. How do I get the UART output?&amp;nbsp; That shows up as JLink CDC UART Port (COM8). So if I open COM8 with Putty I should see debug output, but I see nothing. Does the baud rate matter? If so, what is it?&lt;/p&gt;
&lt;p&gt;But if it is set to only show errors, then maybe I haven&amp;#39;t encountered an error yet. But I don&amp;#39;t know if I&amp;#39;m properly attached to the COM port.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/247419?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 19:17:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2ce818d-9bb1-486b-be16-17232e94ffaf</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Right, UART logging will only be available on the DK. If you are able to reproduce on a DK, please provide the logs. You can read the UART logs using a terminal software (Putty, Tera Term, RealTerm, Termite, etc). You may also be able to read UART logs from the Dongle by connecting a wire to the DK, but this would require the logging to use a different pin for UART, as the default UART TX pin is not routed out on the Dongle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/247418?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 18:57:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:049f6065-bbcd-4bbe-ab54-371413f431d3</guid><dc:creator>Paul Bradford</dc:creator><description>&lt;p&gt;You mentioned &amp;quot;UART logging&amp;quot;. I don&amp;#39;t know how to do that.&amp;nbsp; The only type of firmware logging I&amp;#39;ve used was with RTT Viewer and the DK. I don&amp;#39;t know how to do logging with the dev-dongle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/247416?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 18:40:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50f11d12-7caf-4f67-9c77-4e2bb566ddc0</guid><dc:creator>Paul Bradford</dc:creator><description>&lt;p&gt;I&amp;#39;ve still seen the problem using&amp;nbsp;&lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;connectivity_4.1.1_usb_with_s140_6.1.1_critical_region_fix_increased_sched_queue_size.hex&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/247415?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 18:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc5d1563-e075-46f1-9fad-2716467a32ec</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi Paul,&lt;/p&gt;
&lt;p&gt;The &amp;quot;Erase &amp;amp; write&amp;quot; function should not be available if you program the nRF52840 Dongle (PCA10059) through the USB port of the dongle. Did you connect a J-Link debugger to program the dongle through SWD? If you did a &amp;quot;Erase all&amp;quot; operation through the SWD interface, the Bootloader that comes with the dongle will have been erased. &amp;quot;Erase all&amp;quot; operations will erase all programmable flash, including UICR registers.&lt;/p&gt;
&lt;p&gt;The MBR is part of the softdevice-hex. It will always be present whenever the softdevice is flashed to the chip. You can read more about that in the &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/mbr_bootloader/mbr.html"&gt;softdevice specifications&lt;/a&gt;.&lt;/p&gt;
[quote user="Paul Bradford"]So far, using these dev-dongles and new firmware, I have still seen the original &amp;#39;no event&amp;#39; problem on two computers.[/quote]
&lt;p&gt;&amp;nbsp;Do you mean with the firmware with increased scheduler queue size or the one with only critical region fix?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnecting while operations are in progress never gives BLE_GAP_EVT_DISCONNECTED event</title><link>https://devzone.nordicsemi.com/thread/247412?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 18:07:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faa0256c-8bda-44a1-b40d-73899214e333</guid><dc:creator>Paul Bradford</dc:creator><description>&lt;p&gt;Hi &lt;span style="background-color:#ffffff;"&gt;J&amp;oslash;rgen&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to test the fix on two Nordic dev-dongles (PCA10059), programmed using nRF Connect Programmer. Ideally I&amp;#39;d like to make sure the dev-dongle is in a known good state so I&amp;#39;d like to use the &amp;quot;Erase &amp;amp; write&amp;quot; feature. When I Add File&amp;nbsp; &lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;connectivity_4.1.1_usb_with_s140_6.1.1_critical_region_fix_increased_sched_queue_size.hex&lt;/span&gt;, nRF Connect shows that it has Connectivity, SoftDevice and Master Boot record (it shows a region name &amp;quot;MBR or Application&amp;quot; with address range 0 to 0xB00 which is the Master Boot Record range). It does not show a bootloader. I&amp;#39;m confused about why it would have MBR, and why if it has MBR it doesn&amp;#39;t have a bootloader. &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I went ahead with &amp;quot;Erase &amp;amp; write&amp;quot; and am using those dev-dongles with my test program.&lt;/p&gt;
&lt;p&gt;So far, using these dev-dongles and new firmware, I have still seen the original &amp;#39;no event&amp;#39; problem on two computers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>