<?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>Unable to parse JSON String when opening project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110297/unable-to-parse-json-string-when-opening-project</link><description>OS: Ubuntu 20.04.6 NCS SDK: 1.6.1 Segger: 5.50c 
 I recently got a new laptop, which I installed using the following guide: 
 https://developer.nordicsemi.com/nRF_Connect_SDK/doc/v1.6-branch/nrf/gs_installing.html 
 I&amp;#39;m in the process of porting to NCS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Sep 2024 14:39:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110297/unable-to-parse-json-string-when-opening-project" /><item><title>RE: Unable to parse JSON String when opening project</title><link>https://devzone.nordicsemi.com/thread/501008?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 14:39:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf2c5b3c-03e3-42ed-baf4-104ab47bab02</guid><dc:creator>ephimee</dc:creator><description>&lt;p&gt;Because I&amp;#39;m doing more projects with NCS 2, I still have this issue because Nordic Segger keeps on finding my NCS 2 toolchains and breaks.&lt;/p&gt;
&lt;p&gt;To solve this I have modified the file &lt;code&gt;arm_segger_embedded_studio_v550c_linux_x64_nordic/cmake/find_ncs_releases.cmake&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The problem is located in Zephyr_CONSIDERED_CONFIGS, it contains multiple paths to both NCS 1 and NCS 2 toolchains.&lt;/p&gt;
&lt;p&gt;So search for the following code fragment:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(DEFINED Zephyr_CONSIDERED_CONFIGS)
  list(REMOVE_DUPLICATES Zephyr_CONSIDERED_CONFIGS)
endif()
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As you might already have guessed, this piece of code already removes duplicates from the list. The next step would be to remove all NCS 2 toolchain related. I did this with the following code which you can add after the above:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(DEFINED Zephyr_CONSIDERED_CONFIGS)
  list(REMOVE_DUPLICATES Zephyr_CONSIDERED_CONFIGS)

  # Create a new list to hold the filtered results
  set(filtered_configs)

  # Set the substring that you want to filter by
  set(filter_string &amp;quot;/home/ephimee/ncs/&amp;quot;)

  # Loop through all items in Zephyr_CONSIDERED_CONFIGS
  foreach(config IN LISTS Zephyr_CONSIDERED_CONFIGS)
    # Check if the config contains the filter_string
    if(config MATCHES &amp;quot;${filter_string}&amp;quot;)
      # If it matches, append it to the filtered_configs list
      list(APPEND filtered_configs ${config})
    endif()
  endforeach()

  # Replace the original list with the filtered one
  set(Zephyr_CONSIDERED_CONFIGS ${filtered_configs})
endif()
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to parse JSON String when opening project</title><link>https://devzone.nordicsemi.com/thread/479622?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 08:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b01b6e58-1a0f-42c0-b233-cfc51b75021f</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have tried to look into this, but I have not been able to find any explanation for why CMake included ~/git/zephyr instead of ~/ncs/zephyr when you had set the Zephyr base. &lt;br /&gt;Since we no longer officially support SES, we will not be able to allocate resources to investigate this issue. However, as you have stated, deleting ~/git/zephyr seems to solve the issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to parse JSON String when opening project</title><link>https://devzone.nordicsemi.com/thread/479478?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 13:59:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:796c1de9-e42b-4e8a-8dae-b9557359484a</guid><dc:creator>ephimee</dc:creator><description>&lt;p&gt;Yes I did. I just double checked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to parse JSON String when opening project</title><link>https://devzone.nordicsemi.com/thread/479353?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 08:19:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:164d827d-448c-4d87-adc5-0ee396f4855b</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="ephimee"]It seems that this causes the import to fail, but I have set ZEPHYR_BASE to ~/ncs/zephyr[/quote]
&lt;p&gt;Did you set Zephyr base to ~/ncs/zephyr in the SES environment settings as well? See step 3 in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/v1.6-branch/nrf/gs_installing.html#set-up-the-build-environment-in-ses"&gt;7. Set up the build environment in SES&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to parse JSON String when opening project</title><link>https://devzone.nordicsemi.com/thread/479252?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 13:50:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd11816d-a928-4253-9453-23ed7f351ea6</guid><dc:creator>ephimee</dc:creator><description>&lt;p&gt;I&amp;#39;m sure I could get it to work from the commandline.&lt;br /&gt;But I prefer to have the IDE for debugging purposes.&lt;/p&gt;
&lt;p&gt;Do you know why the CMake includes ~/git/zephyr ?&lt;br /&gt;It seems that this causes the import to fail, but I have set ZEPHYR_BASE to ~/ncs/zephyr&lt;/p&gt;
&lt;p&gt;If I remove ~/git/zephyr, the problem is solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to parse JSON String when opening project</title><link>https://devzone.nordicsemi.com/thread/479209?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 12:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f82c22b-544f-41b9-97b8-6f5c19003331</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you able to build and program the application on the command line? If so, I recommend doing this instead of using SEGGER Embedded Studio.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>