<?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_hrs not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21655/ble_app_hrs-not-working</link><description>Hi 
 Im trying nrf52832 with 0 BMD-350 Evm.
Working with IAR, nRF5_SDK_13.0.0_04a0bfd. 
 I need ble_app_hrs_pca10040_132_uart working properly.
Seem like there is a main clock problem.
Its hanging while init steps. 
 I loaded s132_nrf52_3.1.0_softdevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Apr 2017 15:16:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21655/ble_app_hrs-not-working" /><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/85000?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 15:16:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8476d3ab-9250-484c-8a2c-fc08740cacc1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;It get stuck at &lt;code&gt;sd_ble_cfg_set()&lt;/code&gt;?&lt;/p&gt;
&lt;p&gt;Check if there is a code assertion:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Build without optimization and make sure that debug info is included in output (enable checkbox in project options -&amp;gt; C/C++ Compiler -&amp;gt; Output tab.&lt;/li&gt;
&lt;li&gt;Add &amp;quot;DEBUG&amp;quot; to the list of pre-processor symbols in project options -&amp;gt; C/C++ Compiler -&amp;gt; preprocessor tab, see &amp;quot;defined symbols&amp;quot; field&lt;/li&gt;
&lt;li&gt;Start a debug session, place a breakpoint at line ~113 in app_error.c and see if it gets reached. You can read out the error code and line number if it does.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84999?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 12:34:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ddab352-e276-4c1d-863d-66d956f856d6</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;I  tried without modification, result same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84998?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 12:22:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fce0306e-4041-4711-86e9-8126cad116b1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Your LFCLKSRC looks correct. So if you have done any modification on the example code, the allocated RAM for the SoftDevice could be too small. Take a look at &lt;a href="https://devzone.nordicsemi.com/question/131428/how-to-set-memory-in-iar-including-how-to-set-ram-size-in-iar/?answer=131438#post-id-131438"&gt;this post&lt;/a&gt; on how to configure the memory regions and find the correct RAM size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84997?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 11:35:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed5c06a7-6756-41c2-b380-51fb0f936e50</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;No but, rigado warn about that and i changed like below&lt;/p&gt;
&lt;p&gt;// Low frequency clock source to be used by the SoftDevice
#define NRF_CLOCK_LFCLKSRC {.source        = NRF_CLOCK_LF_SRC_RC,&lt;br /&gt;
.rc_ctiv       = 16,                 &lt;br /&gt;
.rc_temp_ctiv  = 4,                  &lt;br /&gt;
.xtal_accuracy = 0}
// accuracy ignored when using RC&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84996?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 11:28:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb138bd7-76a5-4fd5-8f81-453ab92d13bf</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;As a note; its Rigado BMD-350, demo and my design.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84995?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 11:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee915ad6-238d-4b43-a755-37c8f2317e7f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Do you have an an external 32 kHz crystal on your Rigado BMD-350 board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84994?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 11:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63204130-6145-45ea-86c1-406034acaf2c</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I impelement uart to ble_app_hrs_pca10040_s132. I Worked on pca10040 demoboard.
But when i debug same source on my board. It stacking in ble_stack_init(); step below;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_cfg.common_cfg.vs_uuid_cfg.vs_uuid_count = 0;   //HERE
err_code = sd_ble_cfg_set(BLE_COMMON_CFG_VS_UUID, &amp;amp;ble_cfg, ram_start);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Exactly same problem was happening on Evm board with &amp;quot;ble_app_hrs_pca10040_s132_uart&amp;quot; application.
Is it about code size. How can i solve.
Im so close to achieve my demo.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84993?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 13:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8875d69e-451a-4ea9-988f-93bd26811280</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;Now i can debug ble_app_hrs_pca10040_s132_uart but hanging.&lt;/p&gt;
&lt;p&gt;Here;
(main): err_code = sd_ble_cfg_set(BLE_COMMON_CFG_VS_UUID, &amp;amp;ble_cfg, ram_start); Here (deeper): m_os_rsp_wait_handler();&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84992?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 13:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffa98a15-595b-4605-bfa3-9861b73ee9f4</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;You mean ble_app_hrs_pca10040_s132_uart do not work as uart to ble application.
I wan to use that becouse my application meet. Im  working on medical device.&lt;/p&gt;
&lt;p&gt;So for me, easiest way. Using ble_app_hrs_pca10040_S132_uart.
Now i have to try adding uart peripheral to ble_app_hrs_pca10040_s132&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84991?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 13:26:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc8ce115-fee0-46fa-b433-96fa1c5824fa</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The &lt;code&gt;ble_app_hrs_pca10040_s132_uart&lt;/code&gt; is meant for your &lt;strong&gt;application board&lt;/strong&gt; and does not need the SoftDevice. You will need to port the serialized application to the application microcontroller in your system.&lt;/p&gt;
&lt;p&gt;On the nrf52832 (Rigado BMD-350)(connectivity board) you are supposed to flash the softdevice + connectivy hex, for uart this is located in the folder&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;SDK_InstallFolder&amp;gt;\examples\ble_central_and_peripheral\ble_connectivity\board\ser_s13x_uart
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Please read the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/nrf51_setups_serialization.html?cp=4_0_1_1_4"&gt;this infocenter&lt;/a&gt; page for more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84990?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 13:03:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1dedada-88d1-40b6-aa52-4a9549c6ca77</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;I have my own pcb, ready to wrork, uart connections and rst, sw pins.
This is a prototype.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84989?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 13:00:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94283dce-3da0-4c86-8d00-f394d94f14f6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Ok, for nRF52832 take a look at the figure 1 &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/nrf51_setups_serialization.html?cp=4_0_1_1_4"&gt;here&lt;/a&gt;. have you connected the pin 23(TX), 24(RX) ,25(CTS) and 2(RTS) and connected reset and GND as shown in the figure to your other microcontroller?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84988?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 12:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43786e24-e1db-4126-8bf3-d2c32f495680</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;This is what i need, i have another microcontroller connectted with uart to nrf52832 (Rigado BMD-350)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84987?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 12:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f54bdab-c301-425a-9466-7001ee0e247b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;As I wrote in my answer, the ble_app_hrs_pca10040_s132_uart is for &lt;strong&gt;serialized application&lt;/strong&gt; using UART as the transport interface. This is only when you want to run your appliation code on &lt;strong&gt;another&lt;/strong&gt; microcontroller. Are you sure that this is what you want to achieve? See &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/nrf51_setups_serialization.html?cp=4_0_0_1_4"&gt;this&lt;/a&gt; infocenter page.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84986?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 12:43:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36f5e167-b3f1-4b77-a8e9-5cd4bce7cae1</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;That works, thanks.&lt;/p&gt;
&lt;p&gt;Now i have another issue;&lt;/p&gt;
&lt;p&gt;ble_app_hrs_pca10040_s132 works &amp;gt;&amp;gt;&amp;gt; fine.
ble_app_hrs_pca10040_s132_uart  &amp;gt;&amp;gt;&amp;gt; hangs.&lt;/p&gt;
&lt;p&gt;Here (main):    err_code = sd_ble_cfg_set(BLE_COMMON_CFG_VS_UUID, &amp;amp;ble_cfg, ram_start);
Here (deeper): m_os_rsp_wait_handler();&lt;/p&gt;
&lt;p&gt;With NrfGo i try to load complied outputs (*.hex);
I can load ble_app_hrs_pca10040_s132.hex with SoftDevice loaded.&lt;/p&gt;
&lt;p&gt;But
I cant load ble_app_hrs_pca10040_s132_uart.hex with SoftDevice loaded.&lt;/p&gt;
&lt;p&gt;I cant debug if i do not load soft device with IAR.
Is it a code size problem ??
NrfGo says &amp;quot;ble_app_hrs_pca10040_s132_uart.hex has sofdevice things in it&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84985?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 10:20:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa50dfe7-8708-4046-810d-8227845c33e2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If you are using IAR version 8 there is a bug with the &lt;code&gt;nrf_delay_us()&lt;/code&gt; function. See updated answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84984?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 10:01:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1591ee18-cbec-446f-986f-0239912495d8</guid><dc:creator>Ferhat B</dc:creator><description>&lt;p&gt;I tried both, and its same.
Hanging at  nrf_delay_us below;&lt;/p&gt;
&lt;p&gt;__STATIC_INLINE void nrf_delay_us(uint32_t number_of_us)
{
const uint32_t clock16MHz = CLOCK_FREQ_16MHz;
if (number_of_us)
{
__ASM volatile (
#if ( defined(&lt;strong&gt;GNUC&lt;/strong&gt;) &amp;amp;&amp;amp; (__CORTEX_M == (0x00U) ) )
&amp;quot;.syntax unified\n&amp;quot;
#endif
&amp;quot;1:\n&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_hrs not working</title><link>https://devzone.nordicsemi.com/thread/84983?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 09:32:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ad1e520-4542-4159-bde4-a08b4e8b9bc8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;ble_app_hrs_pca10040_s132_uart&lt;/code&gt; is for serialized application using UART as the transport interface. Instead you should use the &lt;code&gt;ble_app_hrs_pca10040_s132&lt;/code&gt; project.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: There is a bug with IAR version 8 with the nrf_delay_us() function. See attached patch in &lt;a href="https://devzone.nordicsemi.com/question/126260/iar-810-produce-bugs-when-compiling-nrf_delay_us/?answer=126268#post-id-126268"&gt;this answer&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>