<?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>Can the same SW run on a 422 &amp;amp; a 822?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14445/can-the-same-sw-run-on-a-422-a-822</link><description>Hi, 
 we integrated in a board design the one of the nRF51822 proposed by Nordic. It is written on the chip: 
 
 N51822 
 CEAAO1 
 1401AA 
 
 I can flash my board using the nRF51 DK without problem. It detects that an external board is plugged</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jun 2016 11:47:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14445/can-the-same-sw-run-on-a-422-a-822" /><item><title>RE: Can the same SW run on a 422 &amp; a 822?</title><link>https://devzone.nordicsemi.com/thread/55178?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 11:47:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f12ce89-c7c5-4755-b2e3-c97024a89fcd</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Good that you were able to solve the problem!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the same SW run on a 422 &amp; a 822?</title><link>https://devzone.nordicsemi.com/thread/55177?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 17:21:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:345d1653-2e29-496f-8589-2c6cc79d026d</guid><dc:creator>Bernard Perrin</dc:creator><description>&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;Yes, our board has an external 32 kHz and it doesn&amp;#39;t oscillate too (as the 16 MHz).&lt;/p&gt;
&lt;p&gt;I did a mistake: it is written CEAAD1 (and not CEAAO1) on the chip and it seems to be a second release.&lt;/p&gt;
&lt;p&gt;I wrote the very simple program below. It works as expected on the demo board (P0.1 300ns @ 1 and 600ns @ 0). No one oscillator runs too. But when I use it with our board, P0.1 stay at 0 and I have the impression it is turned as an input.&lt;/p&gt;
&lt;p&gt;On our board, DCC is left unconnected. Could it be a problem? The used schematic is below.&lt;/p&gt;
&lt;p&gt;Bernard&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#include &amp;lt;stdbool.h&amp;gt;
#include &amp;lt;stdint.h&amp;gt;
#include &amp;quot;nrf_gpio.h&amp;quot;

/**
 * @brief Function for application main entry.
 */
int main(void)
{
	NRF_GPIO-&amp;gt;PIN_CNF[1] = NRF_GPIO_PIN_DIR_OUTPUT &amp;lt;&amp;lt; GPIO_PIN_CNF_DIR_Pos;

    while (true) {
		NRF_GPIO-&amp;gt;OUTCLR =  (1&amp;lt;&amp;lt;1);
		NRF_GPIO-&amp;gt;OUTSET = ~(1&amp;lt;&amp;lt;1);
		NRF_GPIO-&amp;gt;OUTCLR =  (1&amp;lt;&amp;lt;1);
		NRF_GPIO-&amp;gt;OUTSET = ~(1&amp;lt;&amp;lt;1);

		NRF_GPIO-&amp;gt;OUTCLR = ~(1&amp;lt;&amp;lt;1);
		NRF_GPIO-&amp;gt;OUTSET =  (1&amp;lt;&amp;lt;1);
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3617.Schematic.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Finally the bug has been fixed: we have a chip with 16k of RAM. Changing the map file solved the problem.&lt;/p&gt;
&lt;p&gt;It was not easy to see what our chip is supporting when we ordered it and it wasn&amp;#39;t better when we got it. The 3 lines written on top of it was not clearly identifying the release, the memory size. So a hex file which run on the demo board cannot run on our board. Only the reverse way is true.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can the same SW run on a 422 &amp; a 822?</title><link>https://devzone.nordicsemi.com/thread/55176?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 12:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbeae7ba-9bac-42b8-a896-9a41493fd6c9</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Yes, you can run the same code on nRF51822/nRF51422.&lt;/p&gt;
&lt;p&gt;The nRF51-DK has an external 32 kHz crystal, does your board have it as well? If not, did you remember to set the LFCLK clock source to the internal RC oscillator?&lt;/p&gt;
&lt;p&gt;Update 14.06.16:
@Bernard Perrin found the problem: The chip on the external board had 16 kB of RAM, while the nRF51-DK has 32 kB of RAM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>