<?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>Advertisement not working on custom NRF52810 board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57335/advertisement-not-working-on-custom-nrf52810-board</link><description>I don&amp;#39;t know if I&amp;#39;m dealing with a hardware or software problem at this point. I have a custom NRF52810 board with chip antenna and no LF clock, in SES. In SDK 16 I modified the ble_app_hids_keyboard_pca10040e_s112 in the following ways.... 
 Build memory</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Feb 2020 14:24:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57335/advertisement-not-working-on-custom-nrf52810-board" /><item><title>RE: Advertisement not working on custom NRF52810 board</title><link>https://devzone.nordicsemi.com/thread/234676?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 14:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b39ac7d-e5dc-4637-b48f-f1d6c5cb1a98</guid><dc:creator>cory123</dc:creator><description>&lt;p&gt;I just found out yesterday that my footprint was wrong. I had the top left and bottom right pads connected to the NRF52810. It should be the bottom right and top left. This became clear when comparing my board layout with the reference design layout. Thanks for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement not working on custom NRF52810 board</title><link>https://devzone.nordicsemi.com/thread/234596?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 10:01:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8d5f358-2b2e-4ed4-b510-a20df9144cf6</guid><dc:creator>Simon</dc:creator><description>[quote user="cory123"]If it is a problem with my crystal would that explain the strange BLE/Softdevice problem I was having with &lt;em&gt;ble_advertising_peer_reply()&lt;/em&gt;?[/quote]
&lt;p&gt;The problem with the crystal might cause problems with debugging. Here are some cases that might help out:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29195/nrf52810-custom-board"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/29195/nrf52810-custom-board&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35569/nrf52810---debugging-issues-and-sdk-questions"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/35569/nrf52810---debugging-issues-and-sdk-questions&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;However, I don&amp;#39;t know too much about hardware. Could you open a new case regarding your crystal, and address your problems there. Then it will be assigned to someone with knowledge about this. I initially thought the problem was software related, my apologies for that.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;div style="left:53px;top:208.333px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement not working on custom NRF52810 board</title><link>https://devzone.nordicsemi.com/thread/233158?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 22:04:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb4c4a62-0dc9-4318-9370-e578959de9ef</guid><dc:creator>cory123</dc:creator><description>&lt;p&gt;I just tried running another example using the proprietary radio protocol instead of BLE/Softdevice. I adapted esb_ptx_pca10040e to my 52810 board. When I debug I get caught in the clock_start() function (see screen cap). After searching on the forum I see that this could be a problem with my HF crystal (soldering or part spec). Here is the crystal model I&amp;#39;m using...&lt;/p&gt;
&lt;p&gt;&lt;a title="crystal" href="https://www.digikey.com/product-detail/en/murata-electronics/XRCGB32M000F2P01R0/490-18340-1-ND/9959802"&gt;https://www.digikey.com/product-detail/en/murata-electronics/XRCGB32M000F2P01R0/490-18340-1-ND/9959802&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If it is a problem with my crystal would that explain the strange BLE/Softdevice problem I was having with &lt;em&gt;ble_advertising_peer_reply()&lt;/em&gt;?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3021.dddd.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a title="crystal" href="https://www.digikey.com/product-detail/en/murata-electronics/XRCGB32M000F2P01R0/490-18340-1-ND/9959802"&gt;&lt;img alt=" " height="15" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/dddd.png" width="27" /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/esb_5F00_ptx_5F00_pca10040e.emProject.txt"&gt;devzone.nordicsemi.com/.../esb_5F00_ptx_5F00_pca10040e.emProject.txt&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5076.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../5076.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement not working on custom NRF52810 board</title><link>https://devzone.nordicsemi.com/thread/233137?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 18:07:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cad5f2e6-21fa-43b2-825e-2bc6fca8af2f</guid><dc:creator>cory123</dc:creator><description>&lt;p&gt;Here&amp;#39;s another note. This project has only a Release configuration, no Debug. When I change any options I do it on the Common configuration and I&amp;#39;m assuming that will apply to Release configuration. I just modified the Release configuration directly by disabling Optimazation for Space. After that, I&amp;#39;m getting a build error....&lt;/p&gt;
&lt;p&gt;.rodata is too large to fit in FLASH memory segment&lt;/p&gt;
&lt;p&gt;.data is too large to fit in FLASH memory segment&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;m really confused. Shouldn&amp;#39;t this project fit in the 52810 using the S112?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ccc.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement not working on custom NRF52810 board</title><link>https://devzone.nordicsemi.com/thread/233131?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 17:23:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9faf522b-db05-45d4-ae36-62dcf84b04cb</guid><dc:creator>cory123</dc:creator><description>&lt;p&gt;My debug options were already set to Level 3 no optimization. The screen cap shows the program breaking at the app_error_fault_handler() function. When I double click on on_adv_avt() in the call stack it shows APP_ERROR_CHECK being called immediately after a breakpoint. That breakpoint never occurs for some reason. You can see the error code in the register as well.&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5270.aaa.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5734.bbb.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement not working on custom NRF52810 board</title><link>https://devzone.nordicsemi.com/thread/232975?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 09:03:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39814203-01ec-4ced-9093-20fdc9c07b7c</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;That is strange. The function&amp;nbsp;&lt;em&gt;ble_advertising_peer_addr_reply()&amp;nbsp;&lt;/em&gt;can only return&amp;nbsp;&lt;em&gt;NRF_ERROR_INVALID_STATE&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(=0x8) and&amp;nbsp;&lt;em&gt;NRF_SUCCESS&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(=0x0):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t ble_advertising_peer_addr_reply(ble_advertising_t * const p_advertising,
                                         ble_gap_addr_t          * p_peer_address)
{
    if (!p_advertising-&amp;gt;peer_addr_reply_expected)
    {
        return NRF_ERROR_INVALID_STATE;
    }

    p_advertising-&amp;gt;peer_addr_reply_expected = false;

    memcpy(&amp;amp;p_advertising-&amp;gt;peer_address, p_peer_address, sizeof(p_advertising-&amp;gt;peer_address));

    return NRF_SUCCESS;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Can you try to set a debug point at return&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;NRF_ERROR_INVALID_STATE&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;inside&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;ble_advertising_peer_reply()&lt;/em&gt;?&lt;/p&gt;
&lt;p&gt;Set the debug options as described&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27651/nrf52810-real-time-debugging"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement not working on custom NRF52810 board</title><link>https://devzone.nordicsemi.com/thread/232903?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 16:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51a33743-e9a1-41d3-8866-1ca8e8588c53</guid><dc:creator>cory123</dc:creator><description>&lt;p&gt;Ok, I have set a breakpoint on app error handler and found the error code to be 0x00002006. Please see the screen cap below. The failing function appears to be ble_advertising_peer_addr_reply()&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4265.Untitled.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement not working on custom NRF52810 board</title><link>https://devzone.nordicsemi.com/thread/232902?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 16:30:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b36d82f-2aaf-4255-bf48-897f1a1f6e68</guid><dc:creator>cbd</dc:creator><description>&lt;p&gt;If you&amp;#39;re using one of the latest versions of SES, you may need to set NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0 to get the logging to work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Assuming that you have a pre-processor define of CUSTOM_BOARD instead of the DK board, does your code run and advertise if you switch it back?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement not working on custom NRF52810 board</title><link>https://devzone.nordicsemi.com/thread/232888?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 15:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44b6dbd1-cda7-4395-8b39-dea5d7dc0c16</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Could you try to &lt;a href="https://www.youtube.com/watch?v=uP8RYgYGRvI&amp;amp;list=PLx_tBuQ_KSqGHmzdEL2GWEOeix-S5rgTV&amp;amp;index=7"&gt;debug your project&lt;/a&gt;, and figure out exactly where the error happens? What function and what line specifically is failing?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement not working on custom NRF52810 board</title><link>https://devzone.nordicsemi.com/thread/232703?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 03:06:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ea45715-35ea-4b45-85e0-9d5ec8eab0e1</guid><dc:creator>cory123</dc:creator><description>&lt;p&gt;I&amp;#39;m also uploading my main.c. I comment out any BPS functions because my board has no buttons. I have one LED but I&amp;#39;m not using it right now with BPS.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/15174.main.c"&gt;devzone.nordicsemi.com/.../15174.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>