<?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>Should ble_app_blinky_pca10059_s149 work out of the box?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61740/should-ble_app_blinky_pca10059_s149-work-out-of-the-box</link><description>I received my NRF52840 dongles and downloaded SDK 16.0.0 and SES 4.52c. I found some old documentation that said how to convert ble_app_blinky to the dongle but then exploring the SDK it looks like there&amp;#39;s a project already configured for the dongle:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 May 2020 01:40:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61740/should-ble_app_blinky_pca10059_s149-work-out-of-the-box" /><item><title>RE: Should ble_app_blinky_pca10059_s149 work out of the box?</title><link>https://devzone.nordicsemi.com/thread/251581?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 01:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f66e3144-9c89-4a3f-9456-ca6c0a35f8c0</guid><dc:creator>wz2b</dc:creator><description>&lt;p&gt;That summary is right.&amp;nbsp; Based on you asking if I modified any of the rest of the SDK, I removed the entire SDK, and re-unzipped it.&amp;nbsp; Now it works.&amp;nbsp; So I guess the answer is &amp;quot;I must have&amp;quot; though I don&amp;#39;t know what I could have touched.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Should ble_app_blinky_pca10059_s149 work out of the box?</title><link>https://devzone.nordicsemi.com/thread/251548?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 15:19:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff441245-200c-4cc7-8413-e23aa72fa888</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Summing up:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The prebuilt hex file works as expected&lt;/li&gt;
&lt;li&gt;The unmodified SDK 16 example that you build yourself advertises, but there is an error after connecting to it.&lt;/li&gt;
&lt;li&gt;You build with&amp;nbsp;SES 4.52c&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As you have reverted all changes (extracted a fresh SDK zip), then the only difference on the nRF side is the toolchain. However, I just tested now building with&amp;nbsp;SES 4.52c, and it still works as expected. This leaves a few possible explanations.&lt;/p&gt;
&lt;p&gt;Can you clarify if you have made sure the entire SDK is unmodified, or if you just made sure that the BLE blinky application is unmodified? Could it be that you (accidentally or purposely) modified an SDK file that causes misbehavior?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Should ble_app_blinky_pca10059_s149 work out of the box?</title><link>https://devzone.nordicsemi.com/thread/251526?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 14:15:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9c1950c-1b4a-4fc0-9938-585b98132133</guid><dc:creator>wz2b</dc:creator><description>&lt;p&gt;OK.&amp;nbsp; I took the SDK zip file and unpacked the ble peripheral blinky app again, and this time I just compiled it with ZERO modifications.&amp;nbsp; It behaves exactly the same - I can see that it&amp;#39;s running, it&amp;#39;s sending out advertisements, but I can&amp;#39;t connect to it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, I ordered a DK, but it would be nice to figure this out before it gets here, if I can.&amp;nbsp; Is there a .map file for the pre-compilex .hex in the SDK (in the ble_app_blinky/hex folder) that I can compare to mine?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Should ble_app_blinky_pca10059_s149 work out of the box?</title><link>https://devzone.nordicsemi.com/thread/251523?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 14:04:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:372faf36-d755-4326-a153-29301f7674ec</guid><dc:creator>wz2b</dc:creator><description>&lt;p&gt;I don&amp;#39;t have a DK but I&amp;#39;ll get one.&amp;nbsp; I figured out the app doesn&amp;#39;t actually crash, it&amp;#39;s still sending out advertisements.&amp;nbsp; But I can&amp;#39;t &amp;quot;Connect&amp;quot; from nRF connect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Should ble_app_blinky_pca10059_s149 work out of the box?</title><link>https://devzone.nordicsemi.com/thread/251522?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 14:02:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71ab9fb0-7366-4662-a75a-8c18bffbf4e5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The memory layout needs to be correct (which it is in the unmodified SDK example). The MBR is on the first page, then the SoftDevice starts on page 1 (address 0x1000), and the application must start immediately after SoftDevice. So for S140 7.0.1 the size is&amp;nbsp;0x27000 bytes including the MBR, meaning that the application start address also has to be&amp;nbsp;0x27000. So this is correct. The FLASH_SIZE should be set so that FLASH_START + FLASH_SIZE is lower than the start address of the bootloader.&lt;/p&gt;
&lt;p&gt;When it comes to RAM, the RAM start address and size is dictated by the SoftDevice configuration, as described &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;here&lt;/a&gt;. But again, if you use an unmodified example you can use the configuration as is without changing anything. But setting a higher RAM start address and lower size as you do is not a problem (unless you need the additional RAM).&lt;/p&gt;
[quote user="wz2b"]The application runs now, but not for very long - I can see it advertise but when I try to connect it just crashes / stops sending advertisements / stops responding.[/quote]
&lt;p&gt;In such cases, having a DK to test on is very helpful, since using the onboard debugger will give you a good insight into what is happening. Do you have a DK? If so you can use the exact same firmware you use on the dongle on the DK to test on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Should ble_app_blinky_pca10059_s149 work out of the box?</title><link>https://devzone.nordicsemi.com/thread/251514?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 13:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2f5f595-20ae-4eae-8ad2-d0be540e11ac</guid><dc:creator>wz2b</dc:creator><description>&lt;p&gt;Yeah.&amp;nbsp; I think that&amp;#39;s right, the startup address for s140&amp;nbsp; 7.0.1 should be 0x27000.&amp;nbsp; I couldn&amp;#39;t find that in the release notes so I&amp;#39;m not sure where I should be looking.&amp;nbsp; I&amp;#39;m guessing on the RAM but this is blinky so it shouldn&amp;#39;t need much, so I guessed:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; FLASH_START=0x27000&lt;br /&gt;&amp;nbsp; &amp;nbsp; FLASH_SIZE=0xD9000&lt;br /&gt;&amp;nbsp; &amp;nbsp; RAM_START=0x20004000&lt;br /&gt;&amp;nbsp; &amp;nbsp; RAM_SIZE=0x3C000&lt;/p&gt;
&lt;p&gt;which probably give SoftDevice more RAM than it actually needs.&amp;nbsp; The application runs now, but not for very long - I can see it advertise but when I try to connect it just crashes / stops sending advertisements / stops responding.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Should ble_app_blinky_pca10059_s149 work out of the box?</title><link>https://devzone.nordicsemi.com/thread/251502?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 13:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a430aa37-d2f3-49f2-8f76-d306f4849d97</guid><dc:creator>wz2b</dc:creator><description>&lt;p&gt;I answered this question myself: PH means physical.&amp;nbsp; So it looks like you&amp;#39;re defining the physical limits first, then the remainder tells what memory your application can use.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Should ble_app_blinky_pca10059_s149 work out of the box?</title><link>https://devzone.nordicsemi.com/thread/251494?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 12:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34828459-1eca-49c2-8b2a-2499d69b940d</guid><dc:creator>wz2b</dc:creator><description>&lt;p&gt;OK, that explains why the conflict in the programmer.&amp;nbsp; Mine still doesn&amp;#39;t run, though.&amp;nbsp; Does the entry point of my application need to be at an exact address in order for the bootloader to detect it?&amp;nbsp; I&amp;#39;m following the out-of-the-box compiled one which places the flash at 0x27000.&amp;nbsp; I did that, my map shows this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;*(.vectors .vectors.*)&lt;br /&gt; .vectors 0x0000000000027000 0x200 Output/ble_app_blinky_pca10059_s140 Release/Obj/ses_startup_nrf52840.o&lt;br /&gt; 0x0000000000027000 _vectors&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Should ble_app_blinky_pca10059_s149 work out of the box?</title><link>https://devzone.nordicsemi.com/thread/251407?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 08:42:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58bd5092-bec8-4ea1-bd0e-a8e42a571720</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The example (&amp;lt;SDK16&amp;gt;examples\ble_peripheral\ble_app_blinky\hex\ble_app_blinky_pca10059_s140.hex) works out of the box. The only difference between this and the example you build yourself is that the examples in the hex&amp;nbsp;folder are merged with the SoftDevice. So you will get the same result by merging the SoftDevice hex (&amp;lt;SDK16&amp;gt;\nRF5_SDK_16.0.0_98a08e2\components\softdevice\s140\hex\s140_nrf52_7.0.1_softdevice.hex), or by simply adding both files to the nRF Connect programmer.&lt;/p&gt;
&lt;p&gt;The reason you are getting a conflict when adding the MBR hex file as well is that the SoftDevice hex file contains the MBR, so there will be overlap. And in any case, adding the MBR has no point, since it is already present and is anyway stripped away before programming (via USB DFU).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Should ble_app_blinky_pca10059_s149 work out of the box?</title><link>https://devzone.nordicsemi.com/thread/251360?ContentTypeID=1</link><pubDate>Sun, 24 May 2020 18:05:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:256db7f2-c5c2-49e9-a79a-340b52c4175a</guid><dc:creator>wz2b</dc:creator><description>&lt;p&gt;Reading this document&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory&lt;/a&gt;&amp;nbsp;it seems like I have this wrong.&amp;nbsp; So I changed it based on this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="78"&gt;
&lt;p&gt;S140&lt;/p&gt;
&lt;/td&gt;
&lt;td width="147"&gt;
&lt;p&gt;7.0.0&lt;/p&gt;
&lt;/td&gt;
&lt;td width="96"&gt;
&lt;p&gt;0x20001678&lt;/p&gt;
&lt;/td&gt;
&lt;td width="104"&gt;
&lt;p&gt;0x27000&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve actually got 7.0.1 but I figured this would at least get me closer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1590343459208v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;S140 7.0.1 seems to have a bootloader in it, so I specified blinky plus s140 7.0.1 and the programmer is happy and flashes it ... but it doesn&amp;#39;t run.&amp;nbsp; So it&amp;#39;s still not right, but I feel like I&amp;#39;m on the right track.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Should ble_app_blinky_pca10059_s149 work out of the box?</title><link>https://devzone.nordicsemi.com/thread/251354?ContentTypeID=1</link><pubDate>Sun, 24 May 2020 14:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faadf853-1508-4084-8001-2ffe2c518735</guid><dc:creator>wz2b</dc:creator><description>&lt;p&gt;By the way, I noticed in that sample project that flash_placement.xml refers to a bunch of variables that didn&amp;#39;t seem to be set anywhere, so I went into settings / common / linker and set placement macros:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;FLASH_PH_START=0x0&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;FLASH_PH_SIZE=0x100000&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;RAM_PH_START=0x20000000&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;RAM_PH_SIZE=0x40000&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;FLASH_START=0x1000&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;FLASH_SIZE=0xDF000&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;RAM_START=0x20000008&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;RAM_SIZE=0x3FFF8&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What does PH stand for?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>