<?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>No SOURCES given to Zephyr library</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95283/no-sources-given-to-zephyr-library</link><description>We have a custom nRF9160 board which in Zephyr v1.7.1 defined in the boards\arm tree. It is a near copy of the nrf9160dk_nrf9160 folder with hardware changes and additions.We are now trying to implement a MQTT client as a proof of concept for a customer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Jan 2023 09:12:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95283/no-sources-given-to-zephyr-library" /><item><title>RE: No SOURCES given to Zephyr library</title><link>https://devzone.nordicsemi.com/thread/402910?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 09:12:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9adb558-06c3-45b3-93d1-8e55f42af221</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Happy to know that your problem is resolved.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No SOURCES given to Zephyr library</title><link>https://devzone.nordicsemi.com/thread/402909?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 09:03:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4fcfcca-03df-4a7a-8802-4dfb4f8d6545</guid><dc:creator>DavidKaplan</dc:creator><description>&lt;p&gt;Thanks David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No SOURCES given to Zephyr library</title><link>https://devzone.nordicsemi.com/thread/402908?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 08:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad224208-14f1-43c0-951c-077109d6d6a0</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;All your board files to be added in this folder, like this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1672736234780v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No SOURCES given to Zephyr library</title><link>https://devzone.nordicsemi.com/thread/402907?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 08:53:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:166b62f0-33c9-4dca-8618-2e90add68b48</guid><dc:creator>DavidKaplan</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;I deleted the &lt;span&gt;CMakeLists.txt lib text and added your define additions and the project compiled successfully.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You added the board locally in&amp;nbsp;the project instead of the main Zephyr project tree, I understand by adding&lt;/p&gt;
&lt;p&gt;./boards/arm/nrf9160_vaporc20/&amp;nbsp; .&lt;/p&gt;
&lt;p&gt;Which project file did you add this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No SOURCES given to Zephyr library</title><link>https://devzone.nordicsemi.com/thread/402901?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 08:27:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96e2c5f4-5afb-48ba-b1c1-38c45c2c49d7</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;The problem of &amp;quot;No sources given&amp;quot; is related to the commands given in the CMakeLists.txt where we are instructing to add the library but are not including any library / source (solution below).&lt;/p&gt;
&lt;p&gt;Other problems (pin control and pm_config) are related to the project configurations. We have to enable the PINCTRL and PM in the proj.conf (see below).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is what I did and it was compiled successfully:&lt;/p&gt;
&lt;p&gt;1) I updated the folder structure by including the contents of the board files here:&amp;nbsp;&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;strong&gt; ./boards/arm/nrf9160_vaporc20/&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2) I removed the contents of&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;strong&gt;CMakeLists.txt present in ./boards/arm/nrf9160_vaporc20/&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;3) Updated the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;strong&gt;proj.conf&lt;/strong&gt; &lt;/span&gt;by including following:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PINCTRL=y
CONFIG_BUILD_WITH_TFM=y
CONFIG_PARTITION_MANAGER_ENABLED=y
CONFIG_PM=y
CONFIG_MQTT_LIB_TLS=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;No error / successful compilation.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1672734355202v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No SOURCES given to Zephyr library</title><link>https://devzone.nordicsemi.com/thread/402864?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2023 16:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d5ad77b-e028-4026-bc37-d9ad9c195697</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi David&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;I have been assigned this case and I will look into this problem and will update you accordingly.&lt;/p&gt;
&lt;p&gt;Thanks for sending in your files.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>