<?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>ble_app_uart_c_pca10056_s140 fails with an assertion</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31295/ble_app_uart_c_pca10056_s140-fails-with-an-assertion</link><description>ble_app_uart_c_pca10056_s140 fails with an assertion - I have downloaded nRF5_SDK_14.2.0_17b948a. For the example project examples\ble_central\ble_app_uart_c\pca10056\s140\ses I modified sdk_config.h values NRF_LOG_DEFERRED 0 and built the project with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Mar 2018 09:54:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31295/ble_app_uart_c_pca10056_s140-fails-with-an-assertion" /><item><title>RE: ble_app_uart_c_pca10056_s140 fails with an assertion</title><link>https://devzone.nordicsemi.com/thread/123865?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 09:54:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49dfac75-00ff-4253-8844-68c54f9ace4c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Happy to help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart_c_pca10056_s140 fails with an assertion</title><link>https://devzone.nordicsemi.com/thread/123732?ContentTypeID=1</link><pubDate>Fri, 09 Mar 2018 15:11:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7447e2df-f5b0-4100-98f2-d52fb341677a</guid><dc:creator>Rob Philip</dc:creator><description>&lt;p&gt;Aargh!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Indeed, that was the problem. The central &amp;amp; peripheral apps *look* the same and I had not (for some reason) noticed the &amp;quot;documentation&amp;quot; directory.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks for your help - I&amp;#39;m an idiot. In my defense, I hadn&amp;#39;t even heard of Nordic a week ago. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Feel free to close this ticket.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart_c_pca10056_s140 fails with an assertion</title><link>https://devzone.nordicsemi.com/thread/123729?ContentTypeID=1</link><pubDate>Fri, 09 Mar 2018 15:05:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b6042cb-fbf5-46f3-8437-cb754fd5db59</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I see, that makes sense. The softdevice will always asser if it is not able to handle the received events (which will happen when you set a breakpoint that will halt the CPU). Note that you are trying to run a&amp;nbsp;&lt;em&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/ble_sdk_app_nus_c.html?cp=4_0_0_4_2_0_5"&gt;central application&lt;/a&gt;&lt;/em&gt;. This will not advertise and show up as a BLE device on your phone etc. This is an example that will scan for devices advertising the UUID of the Nordic UART service. You can test it&amp;nbsp;by running the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/ble_sdk_app_nus_eval.html?cp=4_0_0_4_2_2_22"&gt;ble_app_uart (peripheral) example&lt;/a&gt;&amp;nbsp;on a second board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart_c_pca10056_s140 fails with an assertion</title><link>https://devzone.nordicsemi.com/thread/123727?ContentTypeID=1</link><pubDate>Fri, 09 Mar 2018 14:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c49e7977-9cd7-49c7-8e86-8ddfb369ad61</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I&amp;#39;m not able to reproduce this issue by following your steps. Which version of the nRF52840 PDK are you using? Which SES version?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart_c_pca10056_s140 fails with an assertion</title><link>https://devzone.nordicsemi.com/thread/123725?ContentTypeID=1</link><pubDate>Fri, 09 Mar 2018 14:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b07c762b-8f59-4d3e-9e74-1971977fd66c</guid><dc:creator>Rob Philip</dc:creator><description>&lt;p&gt;OK. It&amp;#39;s more subtle a problem than I described. Without any single-stepping or breakpoints (other than in app_error_faulthandler) the app does *NOT* assert. Nor does it work.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;No BT devices appear when the app is running.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Any single-stepping of the initialization for the app and the assert happens.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Of course, I was only single-stepping because the app didn&amp;#39;t seem to work.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart_c_pca10056_s140 fails with an assertion</title><link>https://devzone.nordicsemi.com/thread/123723?ContentTypeID=1</link><pubDate>Fri, 09 Mar 2018 14:41:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:699d5632-a30c-4de4-8b8f-369a6a510b7f</guid><dc:creator>Rob Philip</dc:creator><description>&lt;p&gt;I only turned off deferred logging because the application failed and I was hoping for more information.&lt;br /&gt;&lt;br /&gt;If you look under &amp;quot;debug-&amp;gt;loader&amp;quot; for the project you&amp;#39;ll see that the&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Additional Load File[0]&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Additional file to load on debug load. This property will have macro expansion applied to it.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Inherits&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;quot;../../../../../../components/softdevice/s140/hex/s140_nrf52840_5.0.0-2.alpha_softdevice.hex&amp;quot; from project in Common configuration&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;I can only&amp;nbsp;trust that the developer of the example chose the correct soft device.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;This example fails out of the box - you can literally reproduce it by unzipping&amp;nbsp;&lt;span&gt;nRF5_SDK_14.2.0_17b948a, doubleclicking&amp;nbsp;nRF5_SDK_14.2.0_17b948a\examples\ble_central\ble_app_uart_c\pca10056\s140\ses\ble_app_uart_c_pca10056_s140.emProject, building and debugging. You won&amp;#39;t need to do anything but tell the debugger to &amp;quot;go&amp;quot;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;There is no BLE activity (which is what caused me to investigate) and the example should have asserted (not that you can tell, because it doesn&amp;#39;t print anything). If you turn off deferred logging you&amp;#39;ll see the &amp;quot;asserted&amp;quot; printout and you&amp;#39;ll be in&amp;nbsp;app_error_fault_handler.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart_c_pca10056_s140 fails with an assertion</title><link>https://devzone.nordicsemi.com/thread/123709?ContentTypeID=1</link><pubDate>Fri, 09 Mar 2018 14:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1eb5c10b-914d-401d-b88e-b4c021753721</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you modify the example more than disabling deferred logging? The example should not generate a softdevice assert with this change.&amp;nbsp;APP_ERROR_CHECK should also not fail if no error code is passed to it. Are you sure there is nothing happening at the same time that is causing the softdevice assert? Are you using the correct softdevice version supported by&amp;nbsp;the SDK version?&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: ble_app_uart_c_pca10056_s140 fails with an assertion</title><link>https://devzone.nordicsemi.com/thread/123627?ContentTypeID=1</link><pubDate>Fri, 09 Mar 2018 10:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fd8d3e9-3db5-4647-b507-ab03f7f7603b</guid><dc:creator>Rob Philip</dc:creator><description>&lt;p&gt;also, FWIW, the serial printout on the uart is:&lt;br /&gt;&lt;br /&gt;&amp;quot;BLE UART central example started.&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>