<?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>Need improvment in Zephyr LC3 encoding execution time for NRF53 MCU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121886/need-improvment-in-zephyr-lc3-encoding-execution-time-for-nrf53-mcu</link><description>Hi NRF team, 
 
 I am working on a patient monitoring system where we have used a stereo microphone. I am using the LC3 compression method and the Zephyr PDM microphone driver. 
 As of now, the block duration is 20ms. 
 So, every 20 ms, we are getting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Jun 2025 14:16:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121886/need-improvment-in-zephyr-lc3-encoding-execution-time-for-nrf53-mcu" /><item><title>RE: Need improvment in Zephyr LC3 encoding execution time for NRF53 MCU</title><link>https://devzone.nordicsemi.com/thread/538448?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 14:16:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cf04260-438e-4658-b83f-816f9bb0cf59</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Based on the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.2/page/nrf/releases_and_maturity/repository_revisions.html"&gt;nRF Connect SDK repository revisions&lt;/a&gt;&amp;nbsp;table, this means that you are using nRF Connect SDK v2.6.2, which is quite old at this point. This means that we are not able to support everything in this release.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have to stay with v2.6.2, we will do our best.&amp;nbsp;&lt;/p&gt;
[quote user="Dhruv@1997"] Do we have any benchmark document which gives CPU utilisation information? [/quote]
&lt;p&gt;We don&amp;#39;t have any documents which we can release, but information I can share is that LC3 encoding typically uses about 30% of the CPU, while decoding uses about half of that at 15-16%.&amp;nbsp;&lt;/p&gt;
[quote user="Dhruv@1997"]As of now, we have used a bit rate of 32000, so what is the minimum range of bitrate?[/quote]
&lt;p&gt;32000 kpbs is the minimum bitrate for LC3, unfortunately.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, since you are working on a quite old SDK version, is it feasable for you to upgrade to v3.0.2? We have &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration_guides.html"&gt;migration guides&lt;/a&gt; which cover the biggest changes. The most important one is &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_guide_2.7.html"&gt;v2.7.0&lt;/a&gt; which introduces both the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_hwmv2.html"&gt;hardware model v2&lt;/a&gt; and &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_sysbuild.html"&gt;sysbuild&lt;/a&gt;. I linked the separate migration guides for both those features.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need improvment in Zephyr LC3 encoding execution time for NRF53 MCU</title><link>https://devzone.nordicsemi.com/thread/537542?ContentTypeID=1</link><pubDate>Fri, 30 May 2025 15:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ca01c7d-21d7-48bf-ba0a-ba4c242c9bd5</guid><dc:creator>Dhruv@1997</dc:creator><description>&lt;p&gt;We have used Zephyr NCS version 3.5.99-ncs1-2 and nrfxlib v2.6.2. I am encoding the stream in one thread, so ideally, it is parallel. Do we have any benchmark document which gives CPU utilisation information? As of now, we have used a bit rate of 32000, so what is the minimum range of bitrate?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need improvment in Zephyr LC3 encoding execution time for NRF53 MCU</title><link>https://devzone.nordicsemi.com/thread/537529?ContentTypeID=1</link><pubDate>Fri, 30 May 2025 13:13:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b723eabc-3d70-4d5f-8e48-f9c1ec82b9f1</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which nRF Connect SDK are you working with?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As a general advice, the way to reduce encoding time is to decrease the bitrate.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the current setup, are you encoding the stream sequentially or in parallel?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>