<?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>Unable to upload to custom nRF51 board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37053/unable-to-upload-to-custom-nrf51-board</link><description>Hello, 
 I have been developing firmware on a custom nRF51 board. 
 Upon testing firmware that involved BLE advertising,scanning, UART communication over BLE and FDS, i observed that uploading resulted in the following error from nRFgo studio- 
 
 For</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Aug 2018 08:31:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37053/unable-to-upload-to-custom-nrf51-board" /><item><title>RE: Unable to upload to custom nRF51 board</title><link>https://devzone.nordicsemi.com/thread/143504?ContentTypeID=1</link><pubDate>Thu, 09 Aug 2018 08:31:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b88269c-0bd8-47b3-a897-24ae5165e6fe</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which version of the nRF51822 do you have? There&amp;#39;s 3 different one&amp;#39;s in terms of flash/RAM. The example is by default setup for the nRF51x22_QFAC device, which has 256 kB flash and 32 kB RAM.&lt;/p&gt;
&lt;p&gt;If you have the nRF51822_QFAAxx device, it is a 256 kB flash and 16 kB RAM, thus you need to adjust your settings:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7283bbcf59ae4d7a92b14ecb65a834cd/pastedimage1533803185009v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note: there&amp;#39;s also a version QFAB that has 128 kB flash and 16 kB RAM. See this page for more information about this:&amp;nbsp;&lt;strong&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/compatibility_matrix/nRF51822_ic_revision_overview.html"&gt;nRF51822 IC revision overview&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you&amp;#39;re able to program, and if the device is still not working, you might have problems with the CLK configuration.&lt;/p&gt;
&lt;p&gt;If you do not have a external 32kHz LFCLK, you need to use the internal 32 kHz RC oscillator instead, as described here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/23210/sd_softdevice_enable-loop/91289#91289"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/23210/sd_softdevice_enable-loop/91289#91289&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to upload to custom nRF51 board</title><link>https://devzone.nordicsemi.com/thread/143387?ContentTypeID=1</link><pubDate>Wed, 08 Aug 2018 13:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ba98d5d-d3d2-4320-adf6-dbb197c77793</guid><dc:creator>DMS</dc:creator><description>&lt;p&gt;&amp;gt;&lt;span&gt;If you have loaded the incorrect softdevice version, or used the one aimed for nRF52832, your application is likely to overlap with the softdevice area.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I am using the softdevice s130 v2.0.0 that comes with SDK11.0, this has worked in the past for all of my uploads&lt;/p&gt;
&lt;p&gt;&amp;gt;&lt;span&gt;First, press the &amp;quot;Erase All&amp;quot; button in nRFgo Studio, then be sure you load the s130 v2 (Select &amp;quot;Program SoftDevice&amp;quot; tab in nRFgo Studio), then the application (Select the &amp;quot;Program Application&amp;quot; tab).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I also followed the same steps during the upload process, which results in the error message i posted earlier.&lt;/p&gt;
&lt;p&gt;I tried tweaking the IROM settings under target options to deal with potential softdevice overlap.&lt;/p&gt;
&lt;p&gt;It was originally-&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1533735824729v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;After referring to&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27611/configuration-nrf51822-with-s130"&gt;this&lt;/a&gt;&amp;nbsp;i set it to-&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1533735920723v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But even this did not fix my issue.&lt;/p&gt;
&lt;p&gt;Any other potential solutions to my problem would be appreciated.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to upload to custom nRF51 board</title><link>https://devzone.nordicsemi.com/thread/142584?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 11:23:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1ab920c-17f9-42ae-8151-fa321a1ffca6</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Could it be that my hex file+softdevice exceeds the total flash storage capacity of the board?[/quote]
&lt;p&gt;If you have loaded the incorrect softdevice version, or used the one aimed for nRF52832, your application is likely to overlap with the softdevice area.&lt;/p&gt;
&lt;p&gt;First, press the &amp;quot;Erase All&amp;quot; button in nRFgo Studio, then be sure you load the s130 v2 (Select &amp;quot;Program SoftDevice&amp;quot; tab in nRFgo Studio), then the application (Select the &amp;quot;Program Application&amp;quot; tab).&lt;/p&gt;
[quote user=""]I found out from my supervisor that the total flash storage of the device was 256KB, but observed that softdevice 130 itself was 298KB, since uploading worked with 298+51KB I&amp;#39;m guessing either some compression occurs or the total flash storage on the custom board is higher than I was told.[/quote]
&lt;p&gt;A .hex file includes overhead compared to a pure binary .bin file. 298kB .hex file will not be equal to a 298 kB binary file.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>