<?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>Application Never Reaches main()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37205/application-never-reaches-main</link><description>Hi 
 I have been trying to get example ble_app_hrs to run after compilation on my 52832 dev board (pca10040). 
 The specific example is: C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Examples\11.0.0-2.alpha\ble_peripheral\ble_app_hrs\pca10040\s132\arm5</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Aug 2018 07:47:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37205/application-never-reaches-main" /><item><title>RE: Application Never Reaches main()</title><link>https://devzone.nordicsemi.com/thread/144263?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 07:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f2e59ed-9982-47da-afad-d4f010082cd9</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Good to hear that you are getting smarter one step at the time, and yell out if you get more stuck.&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application Never Reaches main()</title><link>https://devzone.nordicsemi.com/thread/144216?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 14:25:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14768f65-2d94-4913-95aa-d57d571d7e44</guid><dc:creator>veletron</dc:creator><description>&lt;p&gt;Thanks, yes, coming at this with zero knowledge I could not see the woods for the trees... The application that I inherited from a colleague failed to run for a very simple reason, he was using SDK 14.2,&amp;nbsp;which includes soft device 132 V5.0.x - he had dumped&amp;nbsp;a new soft device V5.1.x into the SDK 14.2 softdevice folder, and switched to using 5.1 I never had this in my standard 14.2 install, so the project I inherited was looking in the wrong place for the functions in my softdevice V5.0!! After lots of swearing I found out the reason his dev environment worked and mine did not!&lt;/p&gt;
&lt;p&gt;You live and learn - don&amp;#39;t hack SDK folders!&lt;/p&gt;
&lt;p&gt;Nigel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application Never Reaches main()</title><link>https://devzone.nordicsemi.com/thread/144203?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 13:49:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6eb9251-05c2-4dd1-9528-419c43493934</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I think you are making harder than it needs to be. Simply download the link provided by Håkon, extract it into e.g. the desktop, and open the the file located in&amp;nbsp; ....\Desktop\nRF5_SDK_15.0.0_a53641a\examples\ble_peripheral\ble_app_hrs\pca10040\s132\arm5_no_packs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application Never Reaches main()</title><link>https://devzone.nordicsemi.com/thread/143252?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 15:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c11326c1-ff29-4263-972a-637c641325cf</guid><dc:creator>veletron</dc:creator><description>&lt;p&gt;So, I removed the keil packs for nordic (by deleting the folder under packs as there is no &amp;#39;remove group&amp;#39; option in the keil pack installer)., with the intention of the example using only the methods provided by SDK15. As soon as I remove the pack, Keil moans that the pack is not installed, and refuses to build the example:&lt;/p&gt;
&lt;p&gt;Error instantiating RTE components&lt;br /&gt;Error #544: Required Software Pack &amp;#39;NordicSemiconductor.nRF_DeviceFamilyPack.8.16.0&amp;#39; is not installed&lt;br /&gt;Error #543: Device nRF52832_xxAA(Nordic Semiconductor) not found, pack &amp;#39;NordicSemiconductor.nRF_DeviceFamilyPack.8.16.0&amp;#39; is not installed&lt;br /&gt;Error #541: &amp;#39;NordicSemiconductor::Device:Startup:8.16.0&amp;#39; component is missing (previously found in pack &amp;#39;NordicSemiconductor.nRF_DeviceFamilyPack.8.16.0&amp;#39;)&lt;br /&gt;Target not created.&lt;br /&gt;Build Time Elapsed: 00:00:01&lt;/p&gt;
&lt;p&gt;It also pops up the following dialog box when I load the example from the SDK:&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/pastedimage1533654812680v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Appears that I have no option but to use the Keil-Supplied packs for Nordic if I wish to build the examples??&lt;/p&gt;
&lt;p&gt;I have pointed the Nordic pack installed at the SDK15 via File--&amp;gt;Import From Folder, refreshed and then re-installed the Packs in order to get the example working again --- is this what you meant re &amp;#39;don&amp;#39;t use the keil packs&amp;#39;, eg I am not using the SDK15 &amp;#39;as is&amp;#39;, but rather importing it as packs into Keil??&lt;/p&gt;
&lt;p&gt;Looks like I am &amp;#39;lost&amp;#39; once more...&lt;/p&gt;
&lt;p&gt;Nigel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application Never Reaches main()</title><link>https://devzone.nordicsemi.com/thread/143217?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 12:17:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44141e1a-a0eb-4aab-9309-1ffdc8a4084c</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;No problem. Keep asking, that is the best way to learn.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application Never Reaches main()</title><link>https://devzone.nordicsemi.com/thread/143215?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 12:10:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0739d299-245d-4e6f-b1fa-d835868f9f84</guid><dc:creator>veletron</dc:creator><description>&lt;p&gt;Thanks, I am a software dev really (windows device drivers), been dumped in at deep end here hence the silly questions. As I gain knowledge I am sure the questions will become less stupid!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application Never Reaches main()</title><link>https://devzone.nordicsemi.com/thread/143214?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 12:06:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fdca944-fddb-4a07-9778-436a7736f872</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;The reason you are not able to build and compile the softdevice is because it is already an executable hex file ready to be loaded into the microcontroller. Building works by creating object files (.o) from .c and .h files, before assembling it all together into an executable file (e.g. hex file), which can be loaded into the microcontroller&lt;/p&gt;
&lt;p&gt;The solution is to&amp;nbsp;just flash the softdevice hex file directly into the microcontroller&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regarding IROM and IRAM size and start values, the default values should work fine. However, if wrong values are used, you will be provided with the right values when debugging.&lt;/p&gt;
&lt;p&gt;Best regards Simon Iversen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application Never Reaches main()</title><link>https://devzone.nordicsemi.com/thread/143190?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 10:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f53a1eb3-ddb1-40e5-ad78-40d2dd988ffb</guid><dc:creator>veletron</dc:creator><description>&lt;p&gt;Hi, thanks for the response,&lt;/p&gt;
&lt;p&gt;Yep, there is actually an error in my text above (as I mentioned I solved bits of my original question as I was typing out the forum post!). The actual example I have built/run is:&lt;/p&gt;
&lt;p&gt;E:\nRF5_SDK_15.0.0_a53641a\examples\ble_peripheral\ble_app_hrs\pca10040\s132\arm5_no_packs&lt;/p&gt;
&lt;p&gt;I still cannot compile the S132 softdevice that is included as a target in the above project though, gives the error:&lt;/p&gt;
&lt;p&gt;Rebuild target &amp;#39;flash_s132_nrf52_6.0.0_softdevice&amp;#39;&lt;br /&gt;error - cannot create command input file &amp;#39;..\..\..\..\..\..\components\softdevice\s132\hex\main.__i&amp;#39;&lt;br /&gt;Target not created.&lt;/p&gt;
&lt;p&gt;Also, I seem to have to change the IRAM1/IROM1 settings to get the main target to compile/run under Flash --&amp;gt; Configure Flash Tools -- Target.&lt;/p&gt;
&lt;p&gt;Do you know the CORRECT values I should put in here, where the S132 soft device is being used with the application, but no bootloader?&lt;/p&gt;
&lt;p&gt;Nigel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application Never Reaches main()</title><link>https://devzone.nordicsemi.com/thread/143186?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 10:16:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ad6102d-128d-462f-b201-9a7422886d1e</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Your mixing SDK11 with the S132 V6 from SDK15, they are not API compatible.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I strongly urge you not to use the Keil Packs, but rather download and use &lt;a href="https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v15.x.x/nRF5_SDK_15.0.0_a53641a.zip"&gt;SDK15 &lt;/a&gt;as is.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application Never Reaches main()</title><link>https://devzone.nordicsemi.com/thread/143078?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 16:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:258bd64c-22c4-4e31-a3b6-5b9499f9c534</guid><dc:creator>veletron</dc:creator><description>&lt;p&gt;Should clarify the title... My question evolved as I was typing - and I solved some of it. The reason (I think) that I was not getting to main() was due to a missing/invalid softdevice.&lt;/p&gt;
&lt;p&gt;The other thing I don&amp;#39;t entirely get are the &amp;#39;correct&amp;#39; values for IROM1 and IRAM1 ... currently I appear to be plucking values out of a hat!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>