<?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 play 52840+broadvoice?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77852/how-to-play-52840-broadvoice</link><description>I have a BLE device with a MIC, which collects voice data and coded to BroadVoice 32k. 
 So I want to design a central to get this voice data. 
 What I think is use 52840 and external I2S decoder to do it. 
 I have some concerns: 
 1.Is there any example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Mar 2022 01:10:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77852/how-to-play-52840-broadvoice" /><item><title>RE: How to play 52840+broadvoice?</title><link>https://devzone.nordicsemi.com/thread/356731?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 01:10:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20bad07f-08f7-417e-b421-30bcc2af0fa4</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;&lt;span style="font-size:150%;"&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;thanks for reply,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;when i add the line to Pro.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;font-size:150%;"&gt;CONFIG_NEWLIB_LIBC=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;it work well,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Best regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to play 52840+broadvoice?</title><link>https://devzone.nordicsemi.com/thread/356556?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2022 11:48:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5e8a0c7-1e06-4ec2-9123-11ac9158a994</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Good to hear that enabling newlib fixed your issue &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please note that in NCS you should use k_malloc() instead of malloc(),&amp;nbsp;sorry for not specifying this earlier.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It is quite common for encoding to be a heavier task than decoding, most audio and video codecs work this way.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In many applications you only encode once to store a compressed file, and then run the decoder every time you open the file, which means that it is more important to optimize the decoder algorithm than the encoder algorithm.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In audio applications you typically have more resources (processing power, energy) available in the device that produces the audio, compared to the one that plays it back, which also makes it sensible to speed up the decoder operation at the cost of the encoding.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to play 52840+broadvoice?</title><link>https://devzone.nordicsemi.com/thread/354905?ContentTypeID=1</link><pubDate>Fri, 25 Feb 2022 00:52:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:079b13ae-8387-4b20-be49-e65df5d3ff9b</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;&lt;span style="font-size:150%;"&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;thanks for reply,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;yes,even do malloc(3210) first time ,it return NULL;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;when add [&lt;span style="color: #0000ff;"&gt;CONFIG_NEWLIB_LIBC=y&lt;/span&gt;] to prj.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;it runing fine!&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/587x321/__key/communityserver-discussions-components-files/4/pastedimage1645748087630v2.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="font-size:150%;"&gt;but&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:150%;"&gt;each time bv32_encode&amp;nbsp;takes ten times more time&amp;nbsp; than&amp;nbsp;bv32_decode,this result is the same in SDK17.0.2.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="font-size:150%;"&gt;i do&amp;#39;t&amp;nbsp; konw why.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/363x85/__key/communityserver-discussions-components-files/4/pastedimage1645749706012v3.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Best regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to play 52840+broadvoice?</title><link>https://devzone.nordicsemi.com/thread/354889?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 20:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ba3c07a-b059-4bef-aa2f-30766ef03206</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;To my knowledge this code has never been tested in&amp;nbsp;NCS, so possibly there is some configuration that is not set up correctly for the dynamic memory allocation to work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you know if this is the first time malloc() is called in your project, or could this have been run multiple times?&lt;/p&gt;
&lt;p&gt;Do you know which standard library is used? Do you have &lt;a href="https://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_NEWLIB_LIBC.html"&gt;NEWLIB&lt;/a&gt; enabled?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to play 52840+broadvoice?</title><link>https://devzone.nordicsemi.com/thread/354745?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 09:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37bb7e97-4ac6-4f00-9ce5-aa52b27dbe10</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;&lt;span style="font-size:150%;"&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;VS Code,NCS1.8.0,Windows X64,nRF5340DK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;i test&amp;nbsp;Broadvoice32&amp;nbsp; form&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Reference-designs/nRFready-Smart-Remote-3-for-nRF52-Series"&gt;Smart Remote 3 reference design&lt;/a&gt;&amp;nbsp;firmware&amp;nbsp;;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;prj.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;CONFIG_HEAP_MEM_POOL_SIZE=28192&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;CONFIG_MAIN_STACK_SIZE=28192&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="color:#0000ff;font-size:150%;"&gt;as &lt;span&gt;picture&lt;/span&gt;, sizeof(*s)==3120&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#ff0000;font-size:150%;"&gt;it return NULL&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size:150%;"&gt;Am I missing configuration?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/674x276/__key/communityserver-discussions-components-files/4/pastedimage1645694005311v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;thanks&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Best regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to play 52840+broadvoice?</title><link>https://devzone.nordicsemi.com/thread/321838?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 13:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e414b79c-b97f-452e-859e-525062282b54</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. The &lt;a href="https://www.nordicsemi.com/Products/Reference-designs/nRFready-Smart-Remote-3-for-nRF52-Series"&gt;Smart Remote 3 reference design&lt;/a&gt; firmware contains drivers to allow the nRF52 to do Broadvoice32 encoding and decoding. Please have a look at that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Yes. The nRF52840 should be able to do either coding or decoding.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>