<?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 generate lzma compression package?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117112/how-to-generate-lzma-compression-package</link><description>I tested it on the lzma example (ncs\v2.8.0\nrf\tests\subsys\nrf_compress\decompression\lzma),on the Cmakelist.txt code 
 
 generate_inc_file_for_target( 
 app 
 ${ZEPHYR_NRFXLIB_MODULE_DIR} /tests/subsys/nrf_compress/decompression/dummy_data_input.txt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jan 2025 12:20:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117112/how-to-generate-lzma-compression-package" /><item><title>RE: How to generate lzma compression package?</title><link>https://devzone.nordicsemi.com/thread/517929?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 12:20:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21c840d8-d3d5-4e7c-bbf9-51b90a8be704</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the error when it fails?&lt;/p&gt;
&lt;p&gt;You can try to configure the&amp;nbsp;kconfig to use LZMA version 2 instead as described in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc-legacy/2.8.0/nrf/libraries/others/nrf_compression.html#compression-types-configuration"&gt;documentation&lt;/a&gt;. It might&amp;nbsp;use LZMA version 1 by default and Ubuntu use version 2.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to generate lzma compression package?</title><link>https://devzone.nordicsemi.com/thread/516068?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2024 07:38:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93ef61f6-d28d-4d9d-a5be-16e399fe7168</guid><dc:creator>Dtcong</dc:creator><description>&lt;p&gt;Hi，&lt;br /&gt;I copied the decompression data from the &amp;quot;ncs\v2.8.0\nrf\tests\subsys\nrf_compress\decompression\lzma&amp;quot; routine printed out on the MCU to TXT.Subsequently, I ran &amp;quot;xz inputdata&amp;quot; on the Ubuntu16.04 virtual machine to compress the file. After replacing the compressed file of the routine, it failed to decompress the file on the MCU. May I ask how to set the compression parameters to complete the decompression of the LZMA compressed file on the MCU like the routine&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to generate lzma compression package?</title><link>https://devzone.nordicsemi.com/thread/514207?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 10:40:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38d1168a-e678-4fe7-9879-5cb62254cf37</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From our developers I got the information that it was a modified version of xz.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to generate lzma compression package?</title><link>https://devzone.nordicsemi.com/thread/514051?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 14:14:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:427d7602-da17-45ed-a024-6e2300495496</guid><dc:creator>Dtcong</dc:creator><description>&lt;p&gt;Hi jared&lt;br /&gt;I am currently testing the unzip of Lzma on Nrf5340-DK.This routine uses the&amp;nbsp; &amp;ldquo;generate_inc_file_for_target &amp;rdquo; function to convert the compressed package into a binary header file for inclusion in the project.I found the sample compression package in the path&amp;nbsp; &amp;quot; ncs\v2.8.0\nrfxlib\tests\subsys\nrf_compress\decompression &amp;quot; in the SDK.As shown in the figure above, when I tried to generate a compressed package in LZMA format to test it, I found that I could not extract it successfully.What tool is used to compress the dummy_data_input.txt.lzma compressed file that comes with the SDK routine?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to generate lzma compression package?</title><link>https://devzone.nordicsemi.com/thread/514035?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 13:34:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0622b7a5-e907-4623-9f73-335e2a336737</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure I understand the issue correctly,&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0-rc1/page/nrf/libraries/others/nrf_compression.html"&gt;Compression is currently not fully supported&lt;/a&gt;, only decompression.&lt;/p&gt;
&lt;p&gt;It seems like you are comparing two compressed files, one with 7z, and the other was compressed with what?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>