<?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>Data Logging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116983/data-logging</link><description>Hi,I am using NRF5340 ,I want to log data of 2 channels of mic with sampling rate of 16000 but while logging I am receiving &amp;quot;120 messages dropped&amp;quot; and with some random numbers if I change configurations.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Dec 2024 16:43:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116983/data-logging" /><item><title>RE: Data Logging</title><link>https://devzone.nordicsemi.com/thread/515812?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2024 16:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c8494fa-1354-4956-9436-b141c2be7597</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Are you certain that it is the logging function that is corrupting/missing data, and not the I2S DMA process that is overwriting the buffers before you&amp;#39;re copying them or in the middle of that sequence? Or creating a minimalistic example with little / no other functions, just sampling of a microphone?&lt;/p&gt;
&lt;p&gt;DMA can be a bit of a struggle to debug, especially if there is a timing skew (caused by ISRs or other threads) in the copy sequence.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Instead of&amp;nbsp;processing each sample individually, then RTT print, could you try to copy it into a larger buffer, then print the whole buffer?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void copyBuffer(int32_t *Buff_In,int16_t *Buff_Out,uint16_t number_of_samples)
{
	int16_t print_buf[sizeof(MAX_SIZE)];
	for(int i = 0; .....) { /*copy int and shift -&amp;gt; int16_t */ }
	my_print_func(print_buf, number_of_samples*sizeof(int16_t));
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Logging</title><link>https://devzone.nordicsemi.com/thread/515682?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2024 10:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc6b1da6-6728-474e-aa6f-9df9c4867da1</guid><dc:creator>Kashyap23</dc:creator><description>&lt;p&gt;yah thanks Alseth,now I able to convert raw data to wav file but converting to integers and logging leads to data loss.I was not able to solve that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Logging</title><link>https://devzone.nordicsemi.com/thread/515545?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 15:24:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04401dea-8bc6-40b8-83e1-4a7c70f45e29</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;What I would recommend is that you write known values to RTT, and see what is present in the file afterwards.&lt;/p&gt;
&lt;p&gt;For instance sending several values like, val=0x11223344 and val=0x12345678, and see what is present in the stored file on the PC afterwards.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Logging</title><link>https://devzone.nordicsemi.com/thread/515508?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 13:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:296fd66f-2d59-474d-a2e3-15865a4ff1a3</guid><dc:creator>Kashyap23</dc:creator><description>&lt;p&gt;yes,I am trying with raw as I am missing data.By using raw data converting to wav file giving noise.I followed your step and logged data.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/rwData.txt"&gt;devzone.nordicsemi.com/.../rwData.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Logging</title><link>https://devzone.nordicsemi.com/thread/515501?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 13:16:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0ea0aec-4d83-4c55-b928-7c44440d146c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Kashyap23"]what does it refer?[/quote]
&lt;p&gt;To use USB with an audio class to send/receive audio.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think you&amp;#39;re sending it as raw data now:&lt;/p&gt;
[quote user="Kashyap23"]&lt;p&gt; am using same jlink&amp;nbsp; base compact at max speed even though i am getting same audio mismatch.Audio is not missing at end it&amp;#39;s missing between the data.If it&amp;#39;s sampling at 16000 ,how data logging is missing in between,it should go one by one?I am not sure how data log works.I am using SEGGER_RTT_PRINTF.I thought to use SEGGER_RTT_WRITE ,I am getting data like(&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;ù&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;ûù&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Æù&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;wù&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;mù&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;^ù&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;?ù&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;eù&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;ºù&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;¾ù&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;cù&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;7ù&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Tù&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Pù&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;echo -n &amp;quot;&amp;#249;&amp;#251;&amp;#249;&amp;#198;&amp;#249;w&amp;#249;m&amp;#249;^&amp;#249;?&amp;#249;e&amp;#249;&amp;#186;&amp;#249;&amp;#190;&amp;#249;c&amp;#249;7&amp;#249;T&amp;#249;P&amp;#249;&amp;quot; | xxd
00000000: c3b9 c3bb c3b9 c386 c3b9 77c3 b96d c3b9  ..........w..m..
00000010: 5ec3 b93f c3b9 65c3 b9c2 bac3 b9c2 bec3  ^..?..e.........
00000020: b963 c3b9 37c3 b954 c3b9 50c3 b9         .c..7..T..P..
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You need to remove the delimiter \n to listen back to the data.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Logging</title><link>https://devzone.nordicsemi.com/thread/515456?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 11:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35135549-57fe-4c38-96e7-e1313533f252</guid><dc:creator>Kashyap23</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/116983/data-logging/515166"]Have you considered using usb as the loopback instance instead?[/quote]
&lt;p&gt;what does it refer?&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/116983/data-logging/515166"]Also, if you use an external debugger (JLink Base compact for instance), you can increase the SWD speed, for more throughput on the actual reads from the JLink debugger itself[/quote]
&lt;p&gt;I am using same jlink&amp;nbsp; base compact at max speed even though i am getting same audio mismatch.Audio is not missing at end it&amp;#39;s missing between the data.If it&amp;#39;s sampling at 16000 ,how data logging is missing in between,it should go one by one?I am not sure how data log works.I am using SEGGER_RTT_PRINTF.I thought to use SEGGER_RTT_WRITE ,I am getting data like(&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;ucirc;&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;AElig;&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;w&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;m&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;^&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;?&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;e&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;ordm;&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;frac34;&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;c&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;7&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;T&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;P&amp;ugrave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;4&amp;ugrave;) but converting it to wave getting only noise.&lt;pre class="ui-code" data-mode="text"&gt;static void copyBuffer(int32_t *Buff_In,int16_t *Buff_Out,uint16_t number_of_samples)
{
	int i=0;
	
	for( i = 0; i &amp;lt; number_of_samples; i++) 
	{
		Buff_Out[i]= (Buff_In[i]&amp;gt;&amp;gt;16);
		
		// printk(&amp;quot;%hx %hx\n&amp;quot;,bellMicData,ancMicData);
		 SEGGER_RTT_printf(0,&amp;quot;%d\n&amp;quot;,Buff_Out[i]);
 		// SEGGER_RTT_Write(0,(const void*) &amp;amp;Buff_Out[i], 2);
	}
	// SEGGER_RTT_Write(0,&amp;amp;newline,1); 
 }&lt;/pre&gt;while rearding one mic i didnt got issue,on logging two only i am getting issue&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Logging</title><link>https://devzone.nordicsemi.com/thread/515166?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 15:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cfd579b-9b2d-4d58-9b01-4a6c434a95d3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It does sound like you are missing data, especially on &amp;#39;14&amp;#39; and possibly on &amp;#39;7&amp;#39;.&lt;/p&gt;
&lt;p&gt;Have you considered using usb as the loopback instance instead?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, if you use an external debugger (JLink Base compact for instance), you can increase the SWD speed, for more throughput on the actual reads from the JLink debugger itself.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Logging</title><link>https://devzone.nordicsemi.com/thread/515018?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 05:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea11d4cf-9ae2-4d2a-ab96-2da9846b882b</guid><dc:creator>Kashyap23</dc:creator><description>&lt;p&gt;Yes,I set to 128 MHZ ,I cant see any messages dropped error .But when I am logging data and converting to audio file ,i can see some data is missing.I have played numbers which says at each second in mic ,I can see 11 numbers played in 9 seconds itself.Will this can be solved any issue in logging speed clocks?can we increase that clocks?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/output_5F00_audio.wav"&gt;devzone.nordicsemi.com/.../output_5F00_audio.wav&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Logging</title><link>https://devzone.nordicsemi.com/thread/514273?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 13:47:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9d2ce78-f330-4933-bf71-cb79be16dfa3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you try to run the CPU at 128 MHz to see if this is a cpu constraint?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Logging</title><link>https://devzone.nordicsemi.com/thread/514047?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 13:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0f0a194-6a72-4bbe-bcd9-72028382a36e</guid><dc:creator>Kashyap23</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/116983/data-logging/514039"]Does this issue happen &amp;quot;after a while&amp;quot; ? Meaning that from boot, you&amp;#39;re able to read out for some period of time before it starts to print &amp;quot;dropped messages&amp;quot; in the log?[/quote]
&lt;p&gt;Yes,if I took buffer of 244, 16 messages are dropping and it repeats as same for next buffer of 244&amp;nbsp; again 16 messages are dropping.I attatched logging file where in each lineit print left and right mic data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/data.log"&gt;devzone.nordicsemi.com/.../data.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Logging</title><link>https://devzone.nordicsemi.com/thread/514039?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 13:41:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:422fa6ba-4969-4a75-8da1-231a690ff089</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Each 244*1/16kHz, equals around 15.25 ms interval for each time this function is called.&lt;/p&gt;
&lt;p&gt;I fear that the high CPU utilization is the root cause of the print issue, causing the logger thread to be blocked for larger periods of time.&lt;/p&gt;
&lt;p&gt;Does this issue happen &amp;quot;after a while&amp;quot; ? Meaning that from boot, you&amp;#39;re able to read out for some period of time before it starts to print &amp;quot;dropped messages&amp;quot; in the log?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can setup blocking printing, but this will then block other functions from executing.&lt;/p&gt;
&lt;p&gt;You could try running the CPU at 128 MHz for debugging purposes:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/wifi/shell/src/main.c#L54-L55"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/samples/wifi/shell/src/main.c#L54-L55&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If that does not work, then the only option is to optimize functions around, to ensure that the logger thread has the time to execute the prints.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Logging</title><link>https://devzone.nordicsemi.com/thread/513946?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 04:53:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2c36f09-253e-4f9d-bd75-ef82556dd818</guid><dc:creator>Kashyap23</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;copyBuffer&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;int32_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt;Buff_In&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;int16_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt;Buff_Out&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;uint16_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;number_of_samples&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;for&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;number_of_samples&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;++&lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Buff_Out&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Buff_In&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span&gt;16&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;printk&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;%d&lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;Buff_Out&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt;]);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;}.I am using this logic each data of 32 bit is shifted to 16 bit and it prints,I am logging continuous data coming from i2s_buf_read function of buffer 244.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Logging</title><link>https://devzone.nordicsemi.com/thread/513437?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 13:27:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03654b52-8cb1-434c-8e8d-00d8effa08be</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How often are you logging? Ie. what is the throughput?&lt;/p&gt;
&lt;p&gt;If you log each sample at 16 KHz, and also convert it to ASCII string, it is likely that this will take some time. And if your firmware is blocking the logger thread from running in longer intervals, it will overflow&amp;nbsp;after a while&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>