<?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>NCS  OpenThread CLI Sample program</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92972/ncs-openthread-cli-sample-program</link><description>Hi 
 Compile the cli sample into a hex file,Download it to the board, read the hex file through the nRF Connect for Desktop Programmer tool, and then convert it to the bin file through the hex2bin tool. Compared with the original bin file, it is found</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Nov 2022 10:00:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92972/ncs-openthread-cli-sample-program" /><item><title>RE: NCS  OpenThread CLI Sample program</title><link>https://devzone.nordicsemi.com/thread/396163?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 10:00:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0a4e0e0-0b04-4826-80b8-f435ea0c2c09</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The tag seems to be written at run-time. I could not see any tags defined directly as 0xAF, so an approach might be to&amp;nbsp;erase the flash, program the sample,&amp;nbsp;and step through the code the first time it runs, and see at what time / what function call is doing the writing to this address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS  OpenThread CLI Sample program</title><link>https://devzone.nordicsemi.com/thread/392337?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 10:36:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b643ad54-d043-4838-9eae-97a87df8775d</guid><dc:creator>Ethan.Shi</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I tested the CLI source code,Write data to flash,The 1k address before the 00 00 00 00 00 AF&amp;nbsp;&lt;span&gt;tag&lt;/span&gt; starts to be stored, which is similar to the CLI program of the customized partition after modification.&lt;/p&gt;
&lt;p&gt;How is the 00 00 00 00 00 AF tag defined? It may be used in programs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS  OpenThread CLI Sample program</title><link>https://devzone.nordicsemi.com/thread/392002?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 01:59:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65f13591-886e-439e-b38e-a98de5625d18</guid><dc:creator>Ethan.Shi</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -e -f NRF52   &amp;amp;&amp;amp; nrfjprog --program openthread_cli_0.0.2_v2-1019.hex -f NRF52   &amp;amp;&amp;amp; nrfjprog --verify openthread_cli_0.0.2_v2-1019.hex -f NRF52   &amp;amp;&amp;amp; nrfjprog --reset -f NRF52
Erasing user available code and UICR flash areas.
Applying system reset.
Parsing image file.
Verified OK.
Verifying programming.
Verified OK.
Applying system reset.
Run.&lt;/pre&gt;This is my upgrade command and the generated log&lt;/p&gt;
&lt;p&gt;I think the flash has been erased&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS  OpenThread CLI Sample program</title><link>https://devzone.nordicsemi.com/thread/391859?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 11:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c018aa1-1fcc-41b4-aa97-2fa64f89af78</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It looks correct. Did you perform an eraseall operation on the board before programming the new application? If the library finds existing pages in flash, it might reuse these instead of creating new pages. The library will not erase existing filled pages unless you explicitly does so in the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS  OpenThread CLI Sample program</title><link>https://devzone.nordicsemi.com/thread/391767?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 03:16:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0af50641-ff0f-4b56-8f70-e50d3e7f5599</guid><dc:creator>Ethan.Shi</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;E:\ncs18\nrf\samples\openthread\cli&amp;gt; west build -t partition_manager_report --board=nrf52833dk_nrf52833
-- west build: generating a build system
Including boilerplate (Zephyr base (cached)): E:/ncs18/zephyr/cmake/app/boilerplate.cmake
-- Application: E:/ncs18/nrf/samples/openthread/cli
-- Zephyr version: 2.7.0 (E:/ncs18/zephyr), build: v2.7.0-ncs1
-- Found west (found suitable version &amp;quot;0.12.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf52833dk_nrf52833
-- Cache files will be written to: E:/ncs18/zephyr/.cache
-- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version &amp;quot;1.5.0&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found toolchain: gnuarmemb (c:/gnuarmemb)
-- Found BOARD.dts: E:/ncs18/zephyr/boards/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts
-- Found devicetree overlay: E:/ncs18/nrf/samples/openthread/cli/boards/nrf52833dk_nrf52833.overlay
nrf52833dk_nrf52833.dts.pre.tmp:57.26-59.5: Warning (simple_bus_reg): /soc/memory@20000000: simple-bus unit address format error, expected &amp;quot;20000008&amp;quot;
  also defined at nrf52833dk_nrf52833.dts.pre.tmp:412.8-414.3
  also defined at nrf52833dk_nrf52833.dts.pre.tmp:624.8-627.3
unit address and first address in &amp;#39;reg&amp;#39; (0x20000008) don&amp;#39;t match for /soc/memory@20000000
-- Generated zephyr.dts: E:/ncs18/nrf/samples/openthread/cli/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: E:/ncs18/nrf/samples/openthread/cli/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: E:/ncs18/nrf/samples/openthread/cli/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: E:/ncs18/nrf/samples/openthread/cli/build/zephyr/dts.cmake

warning: Experimental symbol NET_CONNECTION_MANAGER is enabled.

Parsing E:/ncs18/nrf/samples/openthread/cli/Kconfig
Loaded configuration &amp;#39;E:/ncs18/zephyr/boards/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833_defconfig&amp;#39;
Merged configuration &amp;#39;E:/ncs18/nrf/samples/openthread/cli/prj.conf&amp;#39;
Configuration saved to &amp;#39;E:/ncs18/nrf/samples/openthread/cli/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;E:/ncs18/nrf/samples/openthread/cli/build/zephyr/include/generated/autoconf.h&amp;#39;
C:\gnuarmemb\bin\arm-none-eabi-gdb.exe: warning: Couldn&amp;#39;t determine a path for the index cache directory.
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
-- OpenThread Source Directory: E:/ncs18/modules/lib/openthread
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- Package Name: OPENTHREAD
-- Package Version: v0.0.2
CMake Warning at E:/ncs18/zephyr/CMakeLists.txt:1662 (message):
  __ASSERT() statements are globally ENABLED


-- Found partition manager static configuration: E:/ncs18/nrf/samples/openthread/cli/pm_static.yml
Partition &amp;#39;settings_storage&amp;#39; is not included in the dynamic resolving since it is statically defined.
-- Configuring done
-- Generating done
-- Build files have been written to: E:/ncs18/nrf/samples/openthread/cli/build
-- west build: running target partition_manager_report
[1/1] cmd.exe /C &amp;quot;cd /D E:\ncs18\nrf\samples\openthread\cl... E:/ncs18/nrf/samples/openthread/cli/build/partitions.yml&amp;quot;
  flash_primary (0x80000 - 512kB):
+-----------------------------------------------+
| 0x0: MBR (0x1000 - 4kB)                       |
| 0x1000: app (0x75000 - 468kB)                 |
| 0x76000: settings_storage (0x2000 - 8kB)      |
| 0x78000: dfu_bootloader (0x6000 - 24kB)       |
| 0x7e000: MBR_parameter_storage (0x1000 - 4kB) |
| 0x7f000: Bootloader_settings (0x1000 - 4kB)   |
+-----------------------------------------------+

  sram_primary (0x1fff8 - 127kB):
+--------------------------------------------+
| 0x20000008: sram_primary (0x1fff8 - 127kB) |
+--------------------------------------------+
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS  OpenThread CLI Sample program</title><link>https://devzone.nordicsemi.com/thread/391699?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 13:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:312894c2-6130-4c4f-afa6-4de82c9ff22a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you sure that the pm_static.yml file is being used? See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/nrf/scripts/partition_manager/partition_manager.html#configuring-static-partitions"&gt;configuring static partitions&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;What is the output from&amp;nbsp;&lt;code&gt;west build -t partition_manager_report&lt;/code&gt;&amp;nbsp;?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS  OpenThread CLI Sample program</title><link>https://devzone.nordicsemi.com/thread/391592?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 09:12:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c173e861-b563-40d8-9ea1-19429ce748ac</guid><dc:creator>Ethan.Shi</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I conducted a data write test from cli to flash, and found that the data storage location is 0x75000 to 0x77000, and different from the&amp;nbsp;&lt;strong&gt;pm_static.yml&lt;/strong&gt; I defined. Why&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/pastedimage1666257122912v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Looking forward to your reply&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS  OpenThread CLI Sample program</title><link>https://devzone.nordicsemi.com/thread/391311?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 02:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5005d6bc-57b6-4791-bc65-ef252be2d703</guid><dc:creator>Ethan.Shi</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I built through NCS18.0&lt;/p&gt;
&lt;p&gt;Sorry, the screenshot is the flash after the partition is modified，The following figure shows the flash changes before modifying the partition，&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/pastedimage1666143506537v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The following figure shows my current flash partition. CLI programs are stored in the application partition，The storage partition is used to store the data generated by the CLI program，(075FF2) The address belongs to the application partition,But it is written to 00 00 00 00 00 AF, so I&amp;#39;m worried that the CLI may not work properly&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/pastedimage1666145551041v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;As you said, if 00 00 00 00 00 AF is the flag of the storage partition, I don&amp;#39;t think it will damage the flash&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much for your answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS  OpenThread CLI Sample program</title><link>https://devzone.nordicsemi.com/thread/391264?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 15:14:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5562096-0ae9-4477-aac9-4ce127a4a254</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From which nRF Connect SDK version did you build the OpenThread CLI example?&lt;/p&gt;
&lt;p&gt;I suspect that the change in flash that you are seeing is a page tag or similar for the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/zephyr/services/storage/nvs/nvs.html"&gt;Non-Volatile Storage (NVS) library&lt;/a&gt;, used by the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/zephyr/services/settings/index.html"&gt;Settings module&lt;/a&gt; to store &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/nrf/ug_thread_ot_memory.html#nrf52840-dk-ram-and-flash-memory-requirements"&gt;OpenThread persistent data&lt;/a&gt; (network keys, dataset, etc). The address does not match the one I see from my build in NCS 2.1.0 (0x7CFF2), but the content does. Once you have entered ot commands into the CLI and started the Thread stack, the flash area will be filled with more data. Why are you concerned that this will damage the flash? If you do not want the information stored into the flash of the device, the device would lose information about the Thread network each time the power is lost.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>