<?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>nRF52840 + nRF SDK v17.009 Project with SDK as library</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68138/nrf52840-nrf-sdk-v17-009-project-with-sdk-as-library</link><description>Hi, 
 I want to create a fresh project in Keil with nRF SDK as static library included into application. I have created the project, but when I run, the code always stuck into &amp;quot;wait_for_flash_ready()&amp;quot; while the file is present in library, if I do &amp;quot;go</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Nov 2020 15:54:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68138/nrf52840-nrf-sdk-v17-009-project-with-sdk-as-library" /><item><title>RE: nRF52840 + nRF SDK v17.009 Project with SDK as library</title><link>https://devzone.nordicsemi.com/thread/281388?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 15:54:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa997bbc-fe1f-4ebc-8dec-e8fb40a53bc6</guid><dc:creator>PriyeshN</dc:creator><description>&lt;p&gt;Ok&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 + nRF SDK v17.009 Project with SDK as library</title><link>https://devzone.nordicsemi.com/thread/281322?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 13:25:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5013da91-ed47-48c5-a670-f6ce0f46d2df</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Priyesh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the delay.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The &lt;span&gt;&lt;a title="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_softdevice_handler.html?cp=7_1_3_48" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_softdevice_handler.html?cp=7_1_3_48" rel="noopener noreferrer" target="_blank"&gt;SoftDevice Handler library&lt;/a&gt; module doesn&amp;#39;t always work well with custom build setups like this.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 + nRF SDK v17.009 Project with SDK as library</title><link>https://devzone.nordicsemi.com/thread/280030?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 03:14:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11e41ecc-1fd4-45a2-8298-a7f47ffe0187</guid><dc:creator>PriyeshN</dc:creator><description>&lt;p&gt;Just confirmed, SOFTDEVICE_PRESENT is defined for library build. Can you guys try out this same at your end?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 + nRF SDK v17.009 Project with SDK as library</title><link>https://devzone.nordicsemi.com/thread/280029?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 03:08:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75bf0c3e-1b76-410e-a3bf-86575664db49</guid><dc:creator>PriyeshN</dc:creator><description>&lt;p&gt;Yes, I agree, maybe the reason why I could not find any material for library SDK on internet. I will also suggest the same to Nordic to provide project template with SDK as library as this will provide developers a clean and modular dev environment.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll check on SOFTDEVICE macro and will revert. Mostly I have kept the pre-processor definitions for application and library as same, but will again verify.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 + nRF SDK v17.009 Project with SDK as library</title><link>https://devzone.nordicsemi.com/thread/279856?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2020 08:38:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcd4e8cc-e049-4a96-86ce-dc3c1853bf8c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Priyesh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the mistake.&amp;nbsp;Please let me correct the answer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Not sure what causes the issue. I have never heard about anyone putting the whole SDK into a lib-file before.&lt;/span&gt;&lt;br /&gt;Looks like the wait_for_flash_ready() function puts the chip in the system on mode, could be that something in the library prevents it from waking up again, but that is just speculations, I don&amp;#39;t know what could cause that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe the library was compiled without SOFTDEVICE present flag set, while project, where lib is included, has this flag set? (or the other way around):&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**@brief Sleep until an event is received. */
static void power_manage(void)
{
#ifdef SOFTDEVICE_PRESENT
(void) sd_app_evt_wait();
#else
__WFE();
#endif
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; The #ifdef part is handled during compilation if I&amp;#39;m not mistaken, maybe that one of the options is removed when compiled into a library.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 + nRF SDK v17.009 Project with SDK as library</title><link>https://devzone.nordicsemi.com/thread/279210?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 11:30:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:088ee126-f750-49c2-9632-12b30cb90fe4</guid><dc:creator>PriyeshN</dc:creator><description>&lt;p&gt;Can you elaborate it further? Not sure what does &amp;quot;base&amp;quot; mean.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 + nRF SDK v17.009 Project with SDK as library</title><link>https://devzone.nordicsemi.com/thread/279208?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 11:28:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c113c949-1c63-4ac9-b75b-a182621a25ff</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Priyesh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not sure what causes the issue. Is it possible to duplicate the project as the base?&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 + nRF SDK v17.009 Project with SDK as library</title><link>https://devzone.nordicsemi.com/thread/279192?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 10:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d79d4d6b-5c3b-43eb-98bf-08a2794c6d21</guid><dc:creator>PriyeshN</dc:creator><description>&lt;p&gt;Yes, I have already added the required files and library. It compiles successfully.&lt;/p&gt;
&lt;p&gt;I have created a Keil project where I have added all the nRF related files from SDK and compiled them to form .lib file. I then included this .lib file in my application. Compiles successfully, but, during run-time, it always stuck in only one function &amp;quot;&lt;span&gt;&amp;quot;wait_for_flash_ready()&amp;quot;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 + nRF SDK v17.009 Project with SDK as library</title><link>https://devzone.nordicsemi.com/thread/279184?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 10:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41cda84b-5647-4354-8b8e-2e2f9641b82b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Priyesh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you include the path as the following figure?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3531.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;This video shows how to add library and header file to KeiluVision5&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=Zj-D5M6rH-k&amp;amp;ab_channel=MarianoCoromac"&gt;https://www.youtube.com/watch?v=Zj-D5M6rH-k&amp;amp;ab_channel=MarianoCoromac&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>