<?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 parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66780/how-to-parse-and-read-json-file-correctly</link><description>Hi guys, 
 I am using the nRF52832 board and I want to parse and read my JSON file. I don&amp;#39;t have too much experience working with cJSON and here you will find my simple code where I try to understand how to define things properly. I will appreciate a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Oct 2020 14:12:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66780/how-to-parse-and-read-json-file-correctly" /><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/277419?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 14:12:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d549293-e6da-498b-bc61-c86f966d7ea9</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;Good to hear. West is the tool that is used to handling things like dependencies, so when using west init for the sdk-nrf, Zephyr should be installed along with it. What was the output of &amp;quot;west update&amp;quot;?&lt;br /&gt;&lt;br /&gt;For your second query I suggest that you open a new ticket.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/277376?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 12:12:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74db6012-482f-4b4d-8b9f-00b1c6f3c484</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I added the new lines in my configuration file and now it works properly. Thanks a lot! I know I installed sdk-nrf, but I think that the Zephyr SDK is mentioned in the error...or I am missing something? Also, do you maybe have some examples where I can find how to use non-volatile memory?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Adnan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/277349?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 10:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3788397-11f9-499d-897f-6485367598ea</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again.&lt;br /&gt;&lt;br /&gt;If you add the config lines from my previous comment to your prj.conf I believe it should work.&lt;br /&gt;&lt;br /&gt;When it comes build problems. Can you try to run the command &amp;quot;West update&amp;quot; and provide me the output? And to repeat myself, the SDK is necessary, but it&amp;#39;s installed in the NCS folder when running&amp;nbsp;&lt;strong&gt;west init -m &lt;a href="https://github.com/nrfconnect/sdk-nrf"&gt;github.com/.../sdk-nrf&lt;/a&gt; --mr &lt;em&gt;&amp;lt;ncs_revision_here&amp;gt;.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/277324?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 09:56:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38051971-f63f-4191-abe0-f73f118c43f8</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Hi Carl,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for this advice related to my proj.conf file! I will send you my proj.conf file to check. I have followed all the NCS installation steps, as we talked about before. Also, I installed Zephyr inside the same folder as nrf, but I think the main problem is in Zephyr-SDK...I did not install it because you told me before that&amp;#39;s not necessary to have. But, I send you my error, and then maybe you will be able to see more clearly what the issue is.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;proj.conf file:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_SMP=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_GATT_DIS=y
CONFIG_BT_GATT_DIS_PNP=n
CONFIG_BT_GATT_BAS=y
CONFIG_BT_DEVICE_NAME=&amp;quot;Zephyr Health Thermometer&amp;quot;
CONFIG_BT_DEVICE_APPEARANCE=768
CONFIG_BT_ATT_ENFORCE_FLOW=n
CONFIG_ADC=y
CONFIG_LOG=y
CONFIG_LOG_PRINTK=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_NEWLIB_LIBC=y


&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/122809914_5F00_3933315860016498_5F00_2565714378763963750_5F00_n.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/277302?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 09:01:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdbd3310-bd4a-4cec-b710-749641f77775</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again, Adnan!&lt;br /&gt;&lt;br /&gt;Could you share your prj.conf? In other to achieve proper RTT the following should be present:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#Activate serial
CONFIG_SERIAL=y

#Deactivate UART
CONFIG_UART_CONSOLE=n

#Use RTT for logging
CONFIG_RTT_CONSOLE=y
CONFIG_USE_SEGGER_RTT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;----&lt;/p&gt;
&lt;p&gt;What kind of error are you getting? One of the steps in the installation guides I have shared earlier is installing west, so If you&amp;#39;ve followed those I don&amp;#39;t believe that&amp;#39;s the problem.&lt;br /&gt;&lt;br /&gt;As I&amp;#39;ve said earlier, when following the NCS installation guidelines, Zephyr will be installed.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/277126?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 12:14:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cb5747f-e3bf-42ff-b78b-da82f5aec9fd</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Hi Carl, &lt;/p&gt;
&lt;p&gt;I have already done that, but I am still not able to see outputs in my JLinkRTTViewer. Is there some another way, because I found on the web that I need to install something specific for RTT Viewer? Also, at the end I installed again everything on my Ubuntu. Now my question is related to west function, because I will probably use Ubuntu terminal, not Segger. When I tried to run the command: &lt;strong&gt;west build -b nrf52dk_nrf52832 -p, &lt;/strong&gt;I got an error related to my SDK. Before, you told me that I don&amp;#39;t need to install Zephyr SDK. Do I need to install it at the end in order to run the west function or I made mistakes somewhere else? &lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Adnan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/276905?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 14:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9531cf0-1cbb-45cc-be43-44e003a514ab</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi, Adnan!&lt;br /&gt;&lt;br /&gt;You are correct, my apologies. To be able to use &amp;quot;printf&amp;quot; and print float values you must add &lt;strong&gt;#include &amp;lt;stdio.h&amp;gt;&amp;nbsp;&lt;/strong&gt;your main, as well as the following configs in prj.conf:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Hope this works for you!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/276895?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 13:48:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16de17f5-9146-4e28-a041-305dfd75f076</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;Yes, I know how to use it, but in my example I need to print out the float values, which is not possible with the printk function I think? Correct me if I am wrong.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Adnan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/276892?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 13:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d214c274-5439-450f-aecc-8da83f4c03a2</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi Adnan!&lt;br /&gt;&lt;br /&gt;To print out to terminal in Zephyr I recommend using the &amp;quot;printk&amp;quot; function, which essentially does the same as &amp;quot;printf&amp;quot;. There is a usage example in my previous attachment.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/276870?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 13:11:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebcac717-4d04-4f77-bec9-f1666a2fd984</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Hi Carl,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My main problem is related to the printf function because when I want to print out the temperature value, I am not able to do that. I checked all libraries that I used before, and also added some things in CMakeLists.txt as you sent me before, but still without results. Do you maybe know how can I fix this issue related to printf function inside my Segger sample?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Adnan.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/276409?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 10:33:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e5498a0-18e0-4119-b2ab-65aeef764234</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi again, Adnan!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Sorry to hear that the Linux installation did not work out. Glad to hear that you&amp;#39;re trying on windows!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;To include header files in Zephyr (and the nRF Connect SDK) you have to use edit CMakeLists.txt so that CMake is aware of your other files. Have a look at the sample I&amp;#39;ve attached, where a module &amp;quot;mult.h&amp;quot; has been included in the hello_world sample.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6136.header_5F00_sample.zip"&gt;3704.header_sample.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;When editing CMakeLists.txt, make sure to reload the project in SES afterwards.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Carl Richard&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/276077?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 07:12:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bbef205-3ea1-4d4b-9666-3836e65aba4d</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Hi Carl again,&lt;/p&gt;
&lt;p&gt;Thanks a lot for this information. I tried it, but again without success. I installed everything on my Windows, but now I have a problem with header files, how to include them in Segger? I can run the samples and open JLinkRTTViewer to see outputs, but for example &amp;quot;battery.h&amp;quot; or &amp;quot;hts.h&amp;quot; header files are not included. Do you maybe know how can I fix this problem?&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Adnan.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/275388?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 13:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1571dde-725b-4896-b033-66b19ea6e7f5</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;&lt;br /&gt;Can you try to call:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;env | grep ZEPHYR_BASE&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and write the output here?&amp;nbsp;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Could you also try the following steps:&lt;br /&gt;1. Uninstall west from your system (pip uninstall west)&lt;br /&gt;2. Find any folder named .west and delete it&lt;br /&gt;3. Reinstall west (pip install west)&lt;br /&gt;4. Follow the NCS installation guide once more&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/275308?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 10:12:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fb5ceaf-6514-4fea-bfe1-721c123eebde</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;I tried to unset this variable, but there is still the same error when I try to run this command:&lt;/p&gt;
&lt;pre class="highlight literal-block"&gt;&lt;strong&gt;west init -m &lt;a href="https://github.com/nrfconnect/sdk-nrf"&gt;github.com/.../sdk-nrf&lt;/a&gt; --mr v1.3.2&lt;br /&gt;&lt;br /&gt;Error:&lt;br /&gt;&lt;br /&gt;FATAL ERROR: already initialized in /home/adnan, aborting.&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Now I only see the chance to reboot the whole Ubuntu and start from scratch everything. Do you see&lt;br /&gt;any possible solution of this error? &lt;br /&gt;&lt;br /&gt;Best regards, &lt;br /&gt;&lt;br /&gt;Adnan.&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/275298?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 09:29:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a39933f-d0cb-4b31-9aaa-f3246999fed0</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;&lt;br /&gt;In Ubuntu it should be enough to call &amp;quot;unset ZEPHYR_BASE&amp;quot; on the command line and restarting your shell. And yes, gnuarmemb is just an empty directory and it does not need to be in the NCS directory. We recommend the location &amp;quot;&lt;span&gt;~/gnuarmemb&amp;quot;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;I understand you. It&amp;#39;s a bit convoluted.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/275104?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 13:04:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7aed7b84-67de-44c4-a975-f671b844bfd0</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;Thanks again for this help! I am using &lt;strong&gt;Ubuntu 18.04.5 LTS. Gnuarmemb &lt;/strong&gt;is just the classic empty folder or what? That is what I am interested in...Is this folder at the end have to be in ncs directory or not? Related to this part with host dependencies I understood. I will try to follow all steps, but sometimes I just think that maybe you put some steps before the ones that should be on that place...if you understand me?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Adnan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/275073?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 12:10:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eda4adca-877d-4229-a5ce-79e28fb5f88e</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi again! I see! Seems like you are correct that you have to unset the ZEPHYR_BASE environment variable. How you do this depends on your operating system. What is your OS? Secondly, if you don&amp;#39;t have the &lt;strong&gt;gnuarmemb&amp;nbsp;&lt;/strong&gt;directory you should create it, and then install the toolchain there. If you follow the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html#installing-the-ncs-manually"&gt;NCS installation guide&lt;/a&gt; you will end up with a directory where all relevant repositories (including Zephyr) are present.&amp;nbsp;The only thing you should need to do from the Zephyr Getting Started guide is to install the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/getting_started/index.html#install-dependencies"&gt;host dependencies&lt;/a&gt;, the rest is handled in the nRF Connect SDK installation guide.&lt;br /&gt;&lt;br /&gt;Most Python dependencies should be present from your previous Zephyr installation, but I recommend installing them as &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html#installing-the-ncs-manually"&gt;described&lt;/a&gt; anyways just to be sure.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I understand that this is troublesome.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/275033?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 10:25:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b27699e3-57cf-4dd0-943c-fa11bb3d432b</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;I deleted the whole Zephyr directroy and zephyr-sdk as well. I start from scratch again, but I am still not able to solve the problem related to nrf-sdk. This is the error that I get every time when I try to run this command &lt;strong&gt;west init -m &lt;a href="https://github.com/nrfconnect/sdk-nrf"&gt;github.com/.../sdk-nrf&lt;/a&gt; --mr v1.3.2:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;FATAL ERROR: already initialized in /home/adnan, aborting.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I really don&amp;#39;t know how to solve this problem and also I don&amp;#39;t know what could be a problem if I removed everything and start from scratch. Also, the second problem is related to the installation of toolchain and required tools. When I install GNU Arm Embedded Toolchain how can I put it inside the folder &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;~/gnuarmemb&lt;/span&gt;&lt;/code&gt; if I don&amp;#39;t have it at that time. Also, you referred to the Zephyr Getting Started Guidline. I need to follow these steps until&lt;span style="font-size:inherit;"&gt; &lt;strong&gt;Get Zephyr and install Python dependencies &lt;/strong&gt;this part or even I need to install Zephyr inside the same directory as I did it before &lt;strong&gt;~zephyrproject?&lt;/strong&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Can you please help me to solve these issues because I am really quite confusing related to all these part and errors.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Thanks a lot in advance and best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Adnan.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/274892?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 12:39:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06d526de-6e5a-4afb-84f0-17405afcf736</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again.&lt;br /&gt;&lt;br /&gt;We do not recommend adding the nRF Connect SDK to the standalone Zephyr repository as you have described here. It is not guaranteed that things will work, and do not know how do make it work.&lt;br /&gt;&lt;br /&gt;If you follow the installation procedure described in our documentation, either using the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_assistant.html#installing-the-ncs-through-nrf-connect-for-desktop"&gt;Toolchain Manager&lt;/a&gt;&amp;nbsp;or &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html#installing-the-ncs-manually"&gt;manually&lt;/a&gt;&amp;nbsp;I can and will support you if there are any issues. I do not think it should be necessary to uninstall the old Zephyr repository, but if you want to it should only be a matter of deleting the whole directory. The relevant environment variables can be changed manually, if needed.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/274858?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 10:50:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3fac394-4e5e-4b95-aeb9-dad905421cdb</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;I did not uninstall my Zephyr standalone, but I am trying to add sdk-nrf v1.3.2 release to my existing zephyrproject repository. Is that possible or I make the mistake doing this procedure in that way? Also, trying this I got some error like: FATAL ERROR: already initialized in /home/adnan/zephyrproject, aborting. I found that I can resolve this issue unsetting the ZEPHYR_BASE environmental variable. Also, do you maybe know which is the procedure of uninstalling to all existing zephyrproject repository in case that I cannot finish my job like I explained above? And, my last question where can I unset this variable in my documentation? &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Adnan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/274646?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 12:42:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d0303bf-7651-40f2-88f5-d38f8a5820d0</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;I see. Thanks for providing the links.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;First: don&amp;#39;t know how much you have edited the samples, but from what I can see the peripheral_ht &amp;quot;simulates&amp;quot; the battery level by setting it to 100. Furthermore the Battery Service(BAS) operates with percentages. To calculate these you must know the maximum capacity of your battery, and measure the voltage as you describe.&lt;br /&gt;&lt;br /&gt;Secondly: Yes, I do suggest this. You will get access to the same samples, but in an development environment maintained and supported by us.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/274614?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 12:02:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c19b2f4-639f-41c3-8432-2ae696b4c227</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;Yes of course I will provide you the samples that I use. To be clear enough, I use this sample where I can get the values for temperature and battery level (in percentage) and send them to my central node on which for now I am only able to read temperature value. Then, I put this part related to voltage reading just because I wanted to convert these percentages into mV (integer). Now, I got some values in percentage that I don&amp;#39;t know how to make the relation between them and mV. Still, my central node is not able to read the battery level that I want to sent him from my peripheral one, and I don&amp;#39;t know how to implement that service. Do you suggest me to uninstall my Zephyr standalone and install the nRF Connect SDK with all samples that were already included in Zephyr standalone documentation?&lt;/p&gt;
&lt;p&gt;These are links of examples that I use for now:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/master/samples/boards/nrf/battery"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/master/samples/boards/nrf/battery&lt;/a&gt; - for voltage reading &lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/master/samples/bluetooth/peripheral_ht"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/master/samples/bluetooth/peripheral_ht&lt;/a&gt; - for temperature and battery level reading / peripheral node &lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/master/samples/bluetooth/central_ht"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/master/samples/bluetooth/central_ht&lt;/a&gt; - central node &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/274608?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 11:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9289c69c-0c0d-46dd-9299-5280cd9b6ff1</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi, Adnan!&lt;br /&gt;&lt;br /&gt;Could you provide a link to the samples you are referring to? I&amp;#39;ll have a look. If I understand you correctly, then yes, the samples can be combined and used in one directory.&lt;/p&gt;
&lt;p&gt;To be clear: The full Zephyr RTOS is available as a part of NCS.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/274567?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 10:38:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66a51ee7-e55b-404c-9d1d-0db82345f8ae</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;But I need this because of same samples that I use as a base for my app. For example, in your documentation I cannot find this sample for battery voltage reading or this one with temperature sensing and sending data via BLE. Because all of these things, I asked you if it is possible to use both of them in same directory?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Adnan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to parse and read JSON file correctly?</title><link>https://devzone.nordicsemi.com/thread/274564?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 10:35:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6730a905-6f0e-47be-99d9-025145e265b9</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Sorry, did not mean to confuse youI recommend that you install nRF Connect SDK (which includes Zephyr) from scratch, as described in &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_assistant.html#installing-the-ncs-through-nrf-connect-for-desktop"&gt;this guide&lt;/a&gt;. It could also be that your current Zephyr installation will interfere NCS, so if it&amp;#39;s not needed I recommend uninstalling it.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>