<?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?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/344/how-to-run-ble_app_hrs-project</link><description>Hello, I have major problem trying to debug/run ble_app_hrs example. The thing is that when I enter debug mode the code is stuck here: 
 
0x000001B4 4908 LDR r1,[pc,#32] ; @0x000001D8
0x000001B6 68C9 LDR r1,[r1,#0x0C]
0x000001B8 2900 CMP r1,#0x00</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Aug 2013 12:15:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/344/how-to-run-ble_app_hrs-project" /><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1825?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 12:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a86f22d8-e180-4aec-b238-78434f48c152</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;You have to unmark the question as resolved, and then a button &amp;quot;Accept as answer&amp;quot; will show up below the question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1824?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 12:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8344dc03-9d44-4f3a-b439-e915b5bd139c</guid><dc:creator>Karolina</dc:creator><description>&lt;p&gt;where can I accept this answer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1823?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 12:12:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f96be82-2b4f-425a-b1b8-1ad8ce4473fa</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Good! If you could accept this answer, instead of just marking the discussion as resolved, I&amp;#39;d be happy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1812?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 12:10:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94642b2b-fd06-4af8-a612-cbae34f86122</guid><dc:creator>Karolina</dc:creator><description>&lt;p&gt;thank you, now it works!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1822?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 12:10:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76a74e58-f68c-488f-8393-52fa88d31dc3</guid><dc:creator>Karolina</dc:creator><description>&lt;p&gt;Thank you, now it finally works!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1821?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 12:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08dcb282-c623-4157-b191-7cb9e78475da</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;As I wrote in my previous comment, you need to enter the product key written on the bag of your Evaluation Kit into the Product Key box on My Keys page after signing in to&lt;a target="_blank" href="http://www.nordicsemi.com" rel="nofollow"&gt;www.nordicsemi.com&lt;/a&gt;. The My Keys page is here: &lt;a target="_blank" href="https://www.nordicsemi.com/eng/product/addproductkeys/5676" rel="nofollow"&gt;https://www.nordicsemi.com/eng/product/addproductkeys/5676&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After doing this, as is also explained in the user guide, you should have the access you need.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1820?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 11:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d825c0ce-8766-48a1-bfb5-95fc45c4c930</guid><dc:creator>Karolina</dc:creator><description>&lt;p&gt;I can&amp;#39;t remember (but I don&amp;#39;t think so). Where can I change 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?</title><link>https://devzone.nordicsemi.com/thread/1819?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 11:55:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a0da7fa-10b7-4e44-87de-9985e9b26f29</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Have you entered the product key from the nRF51822 Evaluation Kit bag into the My Keys page when logging in to&lt;a target="_blank" href="http://www.nordicsemi.com" rel="nofollow"&gt;www.nordicsemi.com&lt;/a&gt;? You also need to be signed in to this account, if not, you won&amp;#39;t get access.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1818?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 11:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:232f536a-a971-4409-9776-7308e13584f4</guid><dc:creator>Karolina</dc:creator><description>&lt;p&gt;I can&amp;#39;t.&lt;/p&gt;
&lt;p&gt;Access denied
You do not have permission to access this area.
Possible reasons for this are:
Your current user does not have the proper privileges to access this page.
You misspelled some parts of your URL, try changing 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?</title><link>https://devzone.nordicsemi.com/thread/1814?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 11:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21cba840-a059-47ff-b8db-e28041be0a1f</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;The softdevice is available here:
&lt;a target="_blank" href="https://www.nordicsemi.com/eng/nordic/Products/nRF51822-Evaluation-Kit/nRF51822-SD/19505" rel="nofollow"&gt;https://www.nordicsemi.com/eng/nordic/Products/nRF51822-Evaluation-Kit/nRF51822-SD/19505&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1817?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 11:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3533737-d124-42c9-b41a-8d0b12e259b0</guid><dc:creator>Karolina</dc:creator><description>&lt;p&gt;Where can I download it? I tried google it, but no match (instead of x.x.x was put 5.1.0)...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1816?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 11:15:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0809f70c-524f-4211-89e8-b6f56add3793</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;You will get this error if you try to program an application from the &amp;quot;Program SoftDevice&amp;quot; tab, since an application is not a softdevice. You need to download the softdevice zip separately, program the hex file from the zip, called something like s110_nrf51822_x.x.x_softdevice.hex, and after this you can program the application as usual from Keil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1815?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 11:13:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c58e04cb-dba2-4f21-a1a7-90329143d9d5</guid><dc:creator>Karolina</dc:creator><description>&lt;p&gt;When I did as it is in manual then this window pops out:&lt;/p&gt;
&lt;p&gt;&amp;quot;Running application C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/nrf51Studio/nrfjprog.exe --snr 480203645 --programs C:/Keil/ARM/Device/Nordic/nrf51822/Board/pca10001/ble/ble_app_hrs/arm/_build/ble_app_hrs.hex --clenr0 0x0 --reset
Loaded JLinkARM.dll
--clenr0 option should be used with --programs to protect softdevice (hex file did not have this info)
ERROR: program file to flash failed!!  &amp;quot;&lt;/p&gt;
&lt;p&gt;But when I switch tab &amp;quot;program softdevice&amp;quot; to &amp;quot;program application&amp;quot; then everything goes ok...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1811?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 11:12:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebd746dd-ff53-4093-bab1-a45c1d9f1c90</guid><dc:creator>willi</dc:creator><description>&lt;p&gt;I am using softdevice 5.2.0, I can&amp;#39;t see any reason now why it shouldn&amp;#39;t be working for you. Did you at least get to debug a bit better when turning off optimization? Remember that you have to rebuild your project after changing these settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1813?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 11:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ddaeedc-24a0-4a83-9578-faa126e228dc</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;My best guess is that you haven&amp;#39;t flashed the softdevice. This must be done with nRFgo Studio before trying to use any applications on top of it. The procedure is described in the user guide for your kit, for example in section 3.2 of the &lt;a href="https://www.nordicsemi.com/eng/content/download/13641/219547/file/nRF51822_Evaluation_Kit_User_Guide%20v1.1.pdf"&gt;Evaluation Kit User Guide&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1810?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 11:01:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6a26bcc-2be6-4b60-b606-c10d151928c5</guid><dc:creator>Karolina</dc:creator><description>&lt;p&gt;it still doesn&amp;#39;t work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1809?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 10:50:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0035cb76-1c58-4e39-8c2a-86e5f91615f7</guid><dc:creator>willi</dc:creator><description>&lt;p&gt;I didn&amp;#39;t read through the code properly, but I saw that it was going to system off the first time. To make it work:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Program your device&lt;/li&gt;
&lt;li&gt;Unplug the USB and plug it back in&lt;/li&gt;
&lt;li&gt;Then push any of the buttons&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now, the next time you plug out/in your USB it will work after you press a button.&lt;/p&gt;
&lt;p&gt;Also, you are getting debugging problems because of optimization. Go to&lt;/p&gt;
&lt;p&gt;Project options (ALT+F7) -&amp;gt; C/C++ tab -&amp;gt; Turn off optimization (Set to Level 0). Then you should be able to step through main as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1808?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 10:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b1f8dc2-b5af-414f-945e-80dbb705c656</guid><dc:creator>Karolina</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1807?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 10:09:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4674bd7-605a-4490-8291-a17e447d7408</guid><dc:creator>willi</dc:creator><description>&lt;p&gt;Yes, it looks like the chip is going to sleep immidately.&lt;/p&gt;
&lt;p&gt;Regarding your other question, post it as a new one so it gets more attention. Also, I think it has been answered before, that Nordic don&amp;#39;t have docs right now on the matter, and even then I don&amp;#39;t think you will get something for &amp;quot;total beginners&amp;quot;. I guess you should learn how structs and pointers work to at least get the basic knowledge. Then you need to go step by step through the main function and look at the initializations that is being done.&lt;/p&gt;
&lt;p&gt;Regardless, the proximity example works, so that is good to know. I went through all the project settings and couldn&amp;#39;t see anything particular that should make a difference that causes these problems. Lets hope someone has an answer for this :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1806?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 09:54:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b5af0ef-b471-4fec-bc81-376f90de7fc5</guid><dc:creator>Karolina</dc:creator><description>&lt;p&gt;Finally someone has a problem like me! (sorry but that rarely happens, almost never)&lt;/p&gt;
&lt;p&gt;The biggest nonsense is that it doesn&amp;#39;t even gets to the first function in main (I&amp;#39;m not even sure does it even gets to the main).&lt;/p&gt;
&lt;p&gt;Also have another question, where can I find something more about heart rate profile? But it has to be written for total beginners. I have already understood low level registers and all communication in this chip (nrf51822) but I simply can not find anything that has simple explanations how to understand and implement ble functions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1803?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 09:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:458d70fa-15fe-42ee-85f3-6889dc4733d1</guid><dc:creator>willi</dc:creator><description>&lt;p&gt;Well, I tested it the same way as you right now and got the same problem. Had to recover the device from nRFGo studio to be able to flash it again. Seems like it is something wrong with the example. Could have sworn I had it working earlier :P&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1805?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 09:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d79f13b7-fab0-482d-9b3b-3af4f47080af</guid><dc:creator>Karolina</dc:creator><description>&lt;p&gt;I have those evaluation boards. They work perfectly, but I also had a problem with one of them this one example for smaller board (pca10000) led_radio_example. The problem was in definitions of uart pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1804?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 09:32:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49522a6a-a1f0-48c0-a490-90fbf16b0302</guid><dc:creator>willi</dc:creator><description>&lt;p&gt;How about non-ble examples? Do they work? E.g blinky_example? It sound to me like you are using the evaluation kit, do you pick the examples from the &amp;quot;nrf8122\Board\pca10001&amp;quot; directory and not the &amp;quot;nrf8122\Board\nrf6310&amp;quot; dir?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to run ble_app_hrs project?</title><link>https://devzone.nordicsemi.com/thread/1802?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2013 09:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7deba1b2-b4d7-424c-9805-1e891ffe3128</guid><dc:creator>willi</dc:creator><description>&lt;p&gt;Did you flash the SoftDevice before flashing the .hex? I don&amp;#39;t think it would matter, but when I did this on my evaluation kit everything worked. Can you test it on other chips?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>