<?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>how to add a ncs/nrf library to my project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80182/how-to-add-a-ncs-nrf-library-to-my-project</link><description>For example, I&amp;#39;d like to add library at_cmd_parser to my project. (It&amp;#39;s under /ncs/nrf/lib/at_cmd_parser.) 
 My project is out-of-tree in its own directory. I tried in CMakeLists to use: add_subdirectory(), include(), or add_library(). None of these works</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Oct 2021 08:20:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80182/how-to-add-a-ncs-nrf-library-to-my-project" /><item><title>RE: how to add a ncs/nrf library to my project</title><link>https://devzone.nordicsemi.com/thread/332750?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 08:20:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1628581-cf33-4091-8654-7abf5754b9cd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, that explains it - the library depends on Newlib.The reason you don&amp;#39;t find anything about this kconfig symbol in the Zephyr documentation is that the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/include/modem/at_cmd_parser.html"&gt;AT command parser&lt;/a&gt; library is part of nrf repository and not Zephyr. &lt;/p&gt;
&lt;p&gt;I see the url given in the warning is wrong, it should have directed you to this page where the nRF symbols are included:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/kconfig/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/kconfig/index.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add a ncs/nrf library to my project</title><link>https://devzone.nordicsemi.com/thread/332733?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 07:01:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee8eeacd-1192-42da-9222-0e1f0bf1f642</guid><dc:creator>bluebeam</dc:creator><description>&lt;p&gt;Now you mentioned it, I did find such warning about AT_CMD_PARSER. I didn&amp;#39;t pay attention to it before. So I added CONFIG_NEWLIB_LIBC=y to prj.conf. That seems to solve the problem. Is this the right solution for it?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using NCS1.6 and installed manually.&lt;/p&gt;
&lt;p&gt;Also I can&amp;#39;t find any doc about CONFIG_AT_CMD_PARSER on Zephyr&amp;#39;s web. A search always result in nothing found.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-------------------------------&lt;/p&gt;
&lt;p&gt;warning: AT_CMD_PARSER (defined at C:/work/ncs/nrf\lib\at_cmd_parser/Kconfig:7) was assigned the&lt;br /&gt;value &amp;#39;y&amp;#39; but got the value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: (NEWLIB_LIBC ||&lt;br /&gt;EXTERNAL_LIBC) (=n). See&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_AT_CMD_PARSER.html"&gt;docs.zephyrproject.org/.../CONFIG_AT_CMD_PARSER.html&lt;/a&gt; and/or look up&lt;br /&gt;AT_CMD_PARSER in the menuconfig/guiconfig interface. The Application Development Primer, Setting&lt;br /&gt;Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful&lt;br /&gt;too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add a ncs/nrf library to my project</title><link>https://devzone.nordicsemi.com/thread/332313?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 11:27:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f364ee3e-7b51-49d5-8ead-1749d116bc7b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure why Cmake finds the Zephyr package when you build the test sample, but seemingly not when you build your sample out-of-three. Maybe you should try to delete the build folder and try again.&lt;/p&gt;
&lt;p&gt;What version of nRF connect SDK are you using, and how did you install it (i.e., via nRF connect toolchain manager or a manual installation)? Also, with your original CmakeList.txt, did you check if there were any warnings in the build log regarding the AT_CMD_PARSER setting?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add a ncs/nrf library to my project</title><link>https://devzone.nordicsemi.com/thread/332194?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 17:38:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04862692-cbf8-4e5b-a442-f6e405fbe7b4</guid><dc:creator>bluebeam</dc:creator><description>&lt;p&gt;I don&amp;#39;t see CONFIG_AT_CMD_PARSER&amp;nbsp; in the .config file.&lt;/p&gt;
&lt;p&gt;The test project builds fine. I compare the CMakeLists file with mine. It has this line at the top of the file:&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;find_package&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;(Zephyr&amp;nbsp;REQUIRED&amp;nbsp;HINTS&amp;nbsp;&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;$ENV{ZEPHYR_BASE}&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;while mine has this line:&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;include&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;(&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;$ENV{ZEPHYR_BASE}&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;/cmake/app/boilerplate.cmake&amp;nbsp;NO_POLICY_SCOPE)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;So I try to add the find_package() to my CMakeLists. But that generated more errors.&lt;span style="color:#569cd6;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I think the build system can&amp;#39;t find where ncs/nrf is located.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add a ncs/nrf library to my project</title><link>https://devzone.nordicsemi.com/thread/332120?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 11:24:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82a02f76-87c9-4d3a-a01c-2c1e0e5858fe</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please check if CONFIG_AT_CMD_PARSER is set to &amp;#39;y&amp;#39; in your &amp;lt;build directory&amp;gt;\zephyr\.config file. You can also use the configuration for the test sample in nrf\tests\lib\at_cmd_parser\at_cmd_parser as a reference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add a ncs/nrf library to my project</title><link>https://devzone.nordicsemi.com/thread/332077?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 08:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8886f63-13dc-4cbc-ae70-5831614025f5</guid><dc:creator>bluebeam</dc:creator><description>&lt;p&gt;This doesn&amp;#39;t seem to work for me.&lt;/p&gt;
&lt;p&gt;I got error message: &amp;quot;undefined reference to `at_params_list_init&amp;#39; &amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#include&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;lt;modem/at_cmd_parser.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#include&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;lt;modem/at_params.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;&lt;/div&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;...&lt;/div&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;&lt;span style="color:#569cd6;"&gt;struct&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;at_param_list&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;params_list&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;&lt;span style="color:#d4d4d4;"&gt;&lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;at_params_list_init&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;(&amp;amp;&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;params_list&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;10&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;&lt;span style="color:#d4d4d4;"&gt;...&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add a ncs/nrf library to my project</title><link>https://devzone.nordicsemi.com/thread/332050?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 06:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20ebc527-89d2-4730-9c10-740b97d768b9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can include the library simply by adding &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/kconfig/CONFIG_AT_CMD_PARSER.html#std-kconfig-CONFIG_AT_CMD_PARSER"&gt;CONFIG_AT_CMD_PARSER=y&lt;/a&gt; to the prj.conf file in your project directory. This will make the CmakeList file in \nrf\lib include the at_cmd_parser folder:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633069524652v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Tip: we recently launched our &lt;a href="https://nordicplayground.github.io/vscode-nrf-connect/"&gt;VS code extension&lt;/a&gt; for the nRF connect SDK which supports auto-completion and jump to definition for kconfig symbols. It&amp;#39;s very convenient when you try to navigate through the various configuration settings.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633069642591v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1633069720971v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>