<?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>How to run ble_app_hrs project with IAR?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4072/how-to-run-ble_app_hrs-project-with-iar</link><description>Hi, 
 
 I have nRF51822 DK with (s110_nrf51822_7.0.0, nRF51 SDK_v6.1.0.0) and when i try to run the project in IAR 7.20.2 i receive an error. 
 
 
 
 2 ) My icf file 
 ble_app_hrs.icf 
 
 Error after i added &amp;quot;--drv_vector_table_base=0x0&amp;quot; it is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Oct 2014 06:43:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4072/how-to-run-ble_app_hrs-project-with-iar" /><item><title>RE: How to run ble_app_hrs project with IAR?</title><link>https://devzone.nordicsemi.com/thread/14612?ContentTypeID=1</link><pubDate>Wed, 15 Oct 2014 06:43:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d706d36-7a4a-40f1-8e69-93fbbe48d863</guid><dc:creator>max</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for help, i erased all and programmed softdevice again and it starts to work, now i migrate my Keil project to IAR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project with IAR?</title><link>https://devzone.nordicsemi.com/thread/14611?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 17:32:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48edc715-5417-4dab-84de-312d17fab529</guid><dc:creator>Matt Barr</dc:creator><description>&lt;p&gt;Hi max, I&amp;#39;ve updated my answer, short story is this recipe works for me. I&amp;#39;ve uploaded my modified iar project+workspace directory for your reference. BR, Matt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project with IAR?</title><link>https://devzone.nordicsemi.com/thread/14610?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 06:34:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f49beb1e-861a-46de-b5c9-9ca3e77c5250</guid><dc:creator>max</dc:creator><description>&lt;p&gt;I added a screen shot (in is now not stops in &amp;quot;main&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project with IAR?</title><link>https://devzone.nordicsemi.com/thread/14609?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 06:30:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9848297d-242d-4601-a7e1-d66a2ca07ebb</guid><dc:creator>max</dc:creator><description>&lt;p&gt;not works.&lt;/p&gt;
&lt;p&gt;i added my *.icf&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project with IAR?</title><link>https://devzone.nordicsemi.com/thread/14607?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 06:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f77ff4e9-a4c9-4afc-89b2-b94b20b2e6bf</guid><dc:creator>max</dc:creator><description>&lt;p&gt;I not migrated.
There are to hrs projects(IAR,Keil). Keil project is work fine in DK but IAR has an error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project with IAR?</title><link>https://devzone.nordicsemi.com/thread/14608?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 19:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b75c3fe2-ac7c-4f9c-aac1-a758056a5768</guid><dc:creator>Matt Barr</dc:creator><description>&lt;p&gt;The softdevice will specify base addresses for CODE and RAM in the SoftDevice resource requirements section of the specification. These need to be reflected in the linker control file (.icf) in ICFEDIT_intvec_start__, ICFEDIT_region_ROM_start__ and ICFEDIT_region_RAM_start__.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll also want to add --drv_vector_table_base=0x0 to the Extra Options tab of the project options Debugger setup, as described &lt;a href="https://devzone.nordicsemi.com/question/6257/nrf51822-softdevice-cant-work-properly-with-iar/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hope this helps,
Matt&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Hi max, I&amp;#39;m not sure why this isn&amp;#39;t working for you, your .icf looks correct. I just verified for myself by going through the following steps on a PCA10004 (nRF51822):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Unpack nrf51_sdk_v6_1_0_b2ec2e6.zip and s110_nrf51822_7.0.0.zip.&lt;/li&gt;
&lt;li&gt;Use nRFgo Studio to Erase All, then program s110_nrf51822_7.0.0_softdevice.hex and verify.&lt;/li&gt;
&lt;li&gt;Edit nrf51_sdk_v6_1_0_b2ec2e6/nrf51822/Board/nrf6310/s110/ble_app_hrs/iar/ble_app_hrs.icf and change intvec_start and ROM start to 0x00016000, it looks just like your .icf at this point.&lt;/li&gt;
&lt;li&gt;Open the IAR workspace in that same directory, I&amp;#39;m using EWARM 7.20.2.7431 w/ Windows 7 x64.&lt;/li&gt;
&lt;li&gt;Change Project Options:
Debugger Setup tab: Set Diver to J-Link/J-Trace (Run to main is checked)
Debugger Download tab: check Verify Download and Use flash loader(s)
Debugger Extra Options tab: check Use command line options and add --drv_vector_table_base=0x0&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I left the J-Link/J-Trace settings as they were, except for enabling Log communication in the Connection tab. After doing a Rebuild All I am able to successfully Download and Debug:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2055.Capture.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;The Go (-&amp;gt;-&amp;gt;-&amp;gt;) button starts application execution, I can connect using the Master Control Panel app on my android phone. Here is &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0363.ble_5F00_app_5F00_hrs.zip"&gt;ble_app_hrs.zip&lt;/a&gt; from my nrf51_sdk_v6_1_0_b2ec2e6/nrf51822/Board/nrf6310/s110/ for your reference.&lt;/p&gt;
&lt;p&gt;Again, I hope this helps.&lt;/p&gt;
&lt;p&gt;Best Regards, Matt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project with IAR?</title><link>https://devzone.nordicsemi.com/thread/14606?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 19:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38acb779-f63e-45c0-a1f1-9d211119f722</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I haven&amp;#39;t migrated from Keil to IAR and do not have an answer for you on that question. Maybe someone else can help you out&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project with IAR?</title><link>https://devzone.nordicsemi.com/thread/14605?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 16:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d9d013b-204b-4775-b109-0615c7562f36</guid><dc:creator>max</dc:creator><description>&lt;p&gt;If i use same code with Keil all works fine.&lt;/p&gt;
&lt;p&gt;Or i miss something?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project with IAR?</title><link>https://devzone.nordicsemi.com/thread/14604?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 16:10:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00336106-def6-477c-a1e0-f9baee52bcaa</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I edited your code snippet to use the code formatting. I&amp;#39;ve seen that call lock up when there was a bad clock on the 32KHz external oscillator pins. What are you using for a low frequency clock? If it isn&amp;#39;t an external oscillator with 20PPM of error, you could see this problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project with IAR?</title><link>https://devzone.nordicsemi.com/thread/14603?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 16:04:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7648a50-6863-4108-b83b-0c8643e8e349</guid><dc:creator>max</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I changed(start adress 0x16000), it is now goes to main but stack on&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Initialize SoftDevice.
    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You know how solve it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project with IAR?</title><link>https://devzone.nordicsemi.com/thread/14602?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 15:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55f70009-71e5-4081-adf7-fd2ee83b2613</guid><dc:creator>max</dc:creator><description>&lt;p&gt;Witch parameters i need to change?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project with IAR?</title><link>https://devzone.nordicsemi.com/thread/14601?ContentTypeID=1</link><pubDate>Mon, 13 Oct 2014 15:23:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4485203c-5cc5-47d6-8be8-cfe32c1dd8c4</guid><dc:creator>John</dc:creator><description>&lt;p&gt;The error window is indicating you are trying to program address 0x15000 which is 84K. With SDS 7.0.0 the stack goes up to 88K. I suspect you need to edit your linker config file for the proper start and size of your projects code space. You can do that by selecting projects-&amp;gt;options-&amp;gt;linker-&amp;gt;config in your IDE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>