<?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/"><channel><title>Step by Step Guide to Setup and Start Developemt with nRF51 or nRF52 DK and IAR</title><link>/nordic/nordic-blog/b/blog/posts/step-by-step-guide-to-setup-and-start-developemt-w</link><description>The purpose of this blog is to provide a step by step guide to help a developer, starting off with the Nordic Semiconductor nRF51 DK, to get the necessary tools installed and get the software (SW) development environment setup so that the user can st</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><item><title>RE: Step by Step Guide to Setup and Start Developemt with nRF51 or nRF52 DK and IAR</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/step-by-step-guide-to-setup-and-start-developemt-w</link><pubDate>Wed, 29 Mar 2017 13:24:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:356595fd-f128-4903-9415-845ec5c1e230</guid><dc:creator>lbehhhh</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello,
Thanks for the tutorial.&lt;/p&gt;
&lt;p&gt;I have a question/issue.  I have successfully flashed nRF52840 preview DK with the s140_nrf52840_5.0.0-2.alpha_softdevice.hex and with the ble_app_hrs_pca10056_s140.hex files provided with SDK v13 via nRFgo Studio.&lt;/p&gt;
&lt;p&gt;I have written a simple phone app that detects the device and counts bytes of data being passed between the devices.&lt;/p&gt;
&lt;p&gt;However, when I compile the example project from within IAR and start a debug session I cannot find the device any more.&lt;/p&gt;
&lt;p&gt;I have:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Prior to starting debug in IAR studio erased the device and flashed the nRF52840 DK with the softdevice hex file&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Compared the hex file generated by IAR against the one provided in the SDK.  They are different.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I then tried to flash the .hex file compile by IAR using nRFgo Studio to narrow down if it was an IDE issue.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Nothing I tried resulted in me being able to find the device when I used code generated by IAR.  That being said I have successfully got he board talking with Eclipse and GCC toolchain, but abandoned that for various reasons.&lt;/p&gt;
&lt;p&gt;Any help would be great.&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;
&lt;p&gt;UPDATE:  Odd as it may be, I also have access to the ARM KEIL IDE/Toolchain, and was able to flash/debug the example from there as well.  So out of 4 options to get code onto the device (1. nRFgo Studio and SDK .hex files, 2. Eclipse/GCC, 3. KEIL, 4. IAR) IAR is the only one that I cannot get to work (meaning I cannot see the device advertising or connect to it with my phone app).&lt;/p&gt;
&lt;p&gt;Any help would be great before getting in touch with IAR directly.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=842&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>