<?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>nrf51822 uart example doesn´t work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13156/nrf51822-uart-example-doesn-t-work</link><description>Hey pro&amp;#180;s,
first thanks for this great community! I&amp;#180;ve read a lot of conntents here, and there is a huge amount of knowledge in this forum!
But since 2 weeks i&amp;#180;ve got a problem i can&amp;#180;t solve... 
 I use a small board with a 51822 on it, programmed by</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Apr 2016 10:29:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13156/nrf51822-uart-example-doesn-t-work" /><item><title>RE: nrf51822 uart example doesn´t work</title><link>https://devzone.nordicsemi.com/thread/50148?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2016 10:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d958fb9-a395-4cc8-99d5-0be1181d0bc9</guid><dc:creator>tobias.poppe</dc:creator><description>&lt;p&gt;Hi metch, thanks for your response!
I didn´t set up eclipse and gdb yet, will try this today.
In the meantime i tried the HTS-Example, works fine...&lt;/p&gt;
&lt;p&gt;Here is what i do:
-Edit the linker script to ram-length 2000 in the armgcc folder (of the example)
-Terminal to the armgcc-folder (of the example)
-make
-copy the s110.hex from the components folder into the build folder
-&amp;quot;mergehex -m s110.hex build.hex -o merged-hex&amp;quot;  (where build.hex is the freshly made)
-&amp;quot;openocd -s /usr/local/Cellar/open-ocd/0.8.0/share/openocd/scripts/ -f interface/stlink-v2.cfg -f target/nrf51.cfg&amp;quot;
-second terminal &amp;quot;telnet 127.0.0.1 4444&amp;quot;
-&amp;quot;halt&amp;quot;, &amp;quot;nrf51 mass_erase&amp;quot;, &amp;quot;flash write_image erase mergerd.hex 0&amp;quot;, &amp;quot;reset&amp;quot;
-connect the iphone app&lt;/p&gt;
&lt;p&gt;Surely this takes longer upload time due to the softdevice flashed everytime, but for the first examples i can live with that wait-time...&lt;/p&gt;
&lt;p&gt;I´ve done this procedure with the :
&amp;quot;ble_app_hrs&amp;quot; example, works fine
&amp;quot;ble_app_hts&amp;quot; example, works fine
&amp;quot;ble_app_uart&amp;quot; example, can´t find the device in the iphone app&lt;/p&gt;
&lt;p&gt;While i trying to set up eclipse, can you maybe try out the uart-example in your toolchain? Maybe the problem is in the SDK10...&lt;/p&gt;
&lt;p&gt;Thanks,
Tobias&lt;/p&gt;
&lt;p&gt;UPDATE: tried the same procedure with the ble_app_rsc example, works fine....&lt;/p&gt;
&lt;p&gt;Second UPDATE: i´ve tested the procedure now with SDK11 and S130 instead of S110. The RamLength in the makefile should be 1F80. HRM and HTS works fine, UART no device found....&lt;/p&gt;
&lt;p&gt;Third UPDATE: i´ve downloaded SDK 8.0.0, and with this SDK the UART example works as it should...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 uart example doesn´t work</title><link>https://devzone.nordicsemi.com/thread/50147?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2016 18:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc5ee329-5f95-46dd-9a93-85766f4c40d2</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;It is hard/impossible to help you without any code or error logs, sorry. You should debug the application. To do this, my advice would be:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Program the S110 SoftDevice &lt;strong&gt;once&lt;/strong&gt; on the device. You can use nRFgo Studio or the nRF5x-Command-Line-Tools (only compatible with a Segger tools) or OpenOCD with any compatible SWD probe. &lt;a href="https://devzone.nordicsemi.com/question/14761/programming-nrf51822-using-swd/?answer=45965#post-id-45965"&gt;Have a look at my answer&lt;/a&gt; if you are looking to do this with OpenOCD and &lt;code&gt;make&lt;/code&gt;.
It will be much more faster if you do not need to program the SD each time.&lt;/li&gt;
&lt;li&gt;Enable GDB to debug your application (without merging with the SD) using &lt;a href="https://github.com/gnuarmeclipse"&gt;the GNU ARM Eclipse plugin&lt;/a&gt;. You will find many tutorial on how configure gdb.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I used the same toolchain as you (I am running Linux). Please post here more details on the error or stack trace.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>