<?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>Migrate from Eclipse to Keil</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22921/migrate-from-eclipse-to-keil</link><description>Hello!
I work with nRF52. I have a code developed in Eclipse Neon and I have to switch to Keil. I tried to create a new project from the template_project example found in the sdk13 by copying the main.c and the sdk_config.h into the project folder. When</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Jun 2017 13:32:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22921/migrate-from-eclipse-to-keil" /><item><title>RE: Migrate from Eclipse to Keil</title><link>https://devzone.nordicsemi.com/thread/90158?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 13:32:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46bf43d7-5212-4077-804f-ea1335075982</guid><dc:creator>stefano.luna</dc:creator><description>&lt;p&gt;Thank you again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate from Eclipse to Keil</title><link>https://devzone.nordicsemi.com/thread/90157?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 12:27:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cc18995-0f84-4ce8-985d-6a3b2f4cc3ae</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, you will now need to add the &lt;code&gt;ARM_MATH_CM4&lt;/code&gt; define to the preprocessor symbols list:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/number3.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;You will also need to add a arm math lib:&lt;/p&gt;
&lt;p&gt;Right click on the nRF_Libraries folder, and click on &amp;quot;Add Existing Files to Group:&lt;/p&gt;
&lt;p&gt;Add the file &lt;code&gt;arm_cortexM4lf_math.lib&lt;/code&gt;. Its located in the folder:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SDK_folder\components\toolchain\cmsis\dsp\ARM\arm_cortexM4lf_math.lib
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate from Eclipse to Keil</title><link>https://devzone.nordicsemi.com/thread/90160?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 12:05:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:817519ba-98b3-426c-8251-52c739054ddc</guid><dc:creator>stefano.luna</dc:creator><description>&lt;p&gt;I edited the question with another main.c where I have the same problem of the first one. Could you suggest me which libraries are missing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate from Eclipse to Keil</title><link>https://devzone.nordicsemi.com/thread/90159?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 10:47:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0acf1f9-a992-4356-b26e-8cff73498148</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, you need to set &lt;code&gt;NRF_LOG_ENABLED&lt;/code&gt; to 1 in sdk_config.h&lt;/p&gt;
&lt;p&gt;If you want to use UART for logging, set &lt;code&gt;NRF_LOG_BACKEND_SERIAL_USES_UART&lt;/code&gt; to 1. If you want to use RTT instead, set &lt;code&gt;NRF_LOG_BACKEND_SERIAL_USES_RTT&lt;/code&gt; to 1.&lt;/p&gt;
&lt;p&gt;I also recommend using the &amp;quot;Configuration Wizard&amp;quot;, see this &lt;a href="https://devzone.nordicsemi.com/question/107568/nrf_log_debug-doesnt-produce-output/"&gt;answer&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate from Eclipse to Keil</title><link>https://devzone.nordicsemi.com/thread/90161?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 10:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04f203b9-a276-48e4-9693-ee0fc35c0763</guid><dc:creator>stefano.luna</dc:creator><description>&lt;p&gt;I just realized that I can&amp;#39;t see anything neither from the UART nor RTT. Is this because of the settings changing in the sdk_config.h file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate from Eclipse to Keil</title><link>https://devzone.nordicsemi.com/thread/90156?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 09:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7af350d2-d603-4f93-a489-5ff3e0b1f903</guid><dc:creator>stefano.luna</dc:creator><description>&lt;p&gt;Many Thanks! That&amp;#39;s was very helpful and straightforward!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate from Eclipse to Keil</title><link>https://devzone.nordicsemi.com/thread/90155?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 09:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a001a05-73f4-48d8-9311-1cf026523503</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are some modules that you are using that are not added by default in the template_project.
You will need to add the following paths to the “Include Paths” in the &lt;code&gt;Options for target -&amp;gt; C/C++&lt;/code&gt; tab:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;..\..\..\..\..\..\components\libraries\pwr_mgmt
..\..\..\..\..\..\components\libraries\experimental_section_vars
..\..\..\..\..\..\components\libraries\mutex
..\..\..\..\..\..\components\libraries\atomic
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/number1.png" alt="image description" /&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Then you need to add the &lt;code&gt;nrf_pwr_mgmt.c&lt;/code&gt; and &lt;code&gt;nrf_section_iter.c&lt;/code&gt; to the project.
Right click on the nRF_Libraries folder, and click on &amp;quot;Add Existing Files to Group &amp;quot;nRF_Libraries&amp;quot;..&lt;/p&gt;
&lt;p&gt;The files are located in the these folders:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SDK_folder\components\libraries\pwr_mgmt
SDK_folder\components\libraries\experimental_section_vars
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/number2.png" alt="image description" /&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;You will also need to add the Power management defines and the Section variables iterator define to the sdk_config.h.&lt;/p&gt;
&lt;p&gt;I have added these to the sdk_config.h you uploaded:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3377.sdk_5F00_config.h"&gt;sdk_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I also changed &lt;code&gt;PWM3_ENABLED&lt;/code&gt; to 0 in the sdk_config.h you uploaded, since PWM3 is only available on nRF52840. If you need a complete sdk_config.h file, you can find it in &lt;a href="https://devzone.nordicsemi.com/question/121794/sdk1300-please-provide-complete-version-of-sdk_configh/"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>