<?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 can I extend the range of the fft result graph of x-axis?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54386/how-can-i-extend-the-range-of-the-fft-result-graph-of-x-axis</link><description>Hi Devzone! 
 
 I&amp;#39;m using the fft function to check the frequency of sound from mic sensor. 
 All seems good but, o nly up to 2500hz is shown and the frequency above it is shifted to the left and when it reaches to 0, it is shifted to the right. 
 
 When</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Dec 2019 13:24:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54386/how-can-i-extend-the-range-of-the-fft-result-graph-of-x-axis" /><item><title>RE: How can I extend the range of the fft result graph of x-axis?</title><link>https://devzone.nordicsemi.com/thread/223611?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 13:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d1b66d2-fcf1-4650-a271-cb87d5128542</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late answer. The UART module is initialized already in nrf_log_backend_uart.c, you don&amp;#39;t need initialize the module in main.c again.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I extend the range of the fft result graph of x-axis?</title><link>https://devzone.nordicsemi.com/thread/221529?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2019 10:50:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84f1aac1-4405-4c1f-b611-d57f9bc598b3</guid><dc:creator>zester926</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I told you aobve.. when I enabled NRF_LOG_BACKEND_UART_ENABLED AND unenabled NRF_LOG_BACKEND_RTT_ENABLED, it occurs error.&lt;/p&gt;
&lt;p&gt;I set the properties of UART correctly like what you said.&lt;/p&gt;
&lt;p&gt;The error occurs here,&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7532._A1CE98CC_.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;when check the result of APP_UART_FIFO_INIT, it occurs error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I extend the range of the fft result graph of x-axis?</title><link>https://devzone.nordicsemi.com/thread/221513?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2019 09:53:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f70e943-0ce0-4e42-be8f-e385f6e78f28</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To use Putty you need to enable NRF_LOG_BACKEND_UART_ENABLED in sdk_config.h:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;e&amp;gt; NRF_LOG_BACKEND_UART_ENABLED - nrf_log_backend_uart - Log UART backend
//==========================================================
#ifndef NRF_LOG_BACKEND_UART_ENABLED
#define NRF_LOG_BACKEND_UART_ENABLED 1
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is also enable by default in the&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/fpu_fft_example.html?cp=6_1_4_6_12"&gt; fpu_ftt example&lt;/a&gt;. Use the following UART settings:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Baud rate: 115.200&lt;/li&gt;
&lt;li&gt;8 data bits&lt;/li&gt;
&lt;li&gt;1 stop bit&lt;/li&gt;
&lt;li&gt;No parity&lt;/li&gt;
&lt;li&gt;HW flow control: None&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I extend the range of the fft result graph of x-axis?</title><link>https://devzone.nordicsemi.com/thread/221189?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 03:12:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:add36349-ae90-4f8f-8f68-40e0e289c27c</guid><dc:creator>zester926</dc:creator><description>&lt;p&gt;Hi msromero!&lt;/p&gt;
&lt;p&gt;I defined nrf_log_backend_uart_enabled and added the src code of nrf_log_backend_uart.c.&lt;/p&gt;
&lt;p&gt;but when I run the program it occurs error at uart_init().&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What would be the problem?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Baek&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I extend the range of the fft result graph of x-axis?</title><link>https://devzone.nordicsemi.com/thread/221186?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 02:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3564f8b8-0f89-467b-ab8c-1a4ed85b96a2</guid><dc:creator>zester926</dc:creator><description>&lt;p&gt;Hi msromero!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you but, is that possible&amp;nbsp;checking the output of NRF_LOG_RAW_INFO() at the PuTTY?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and how should I set the sdk_config to check the output at&amp;nbsp; the PuTTY?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Baek&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I extend the range of the fft result graph of x-axis?</title><link>https://devzone.nordicsemi.com/thread/221054?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 12:09:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a51de5e1-8a44-4f74-b3b6-f586d4328e57</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Baek,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t mean changing the actual size of the terminal window, but changing how many characters you can fit in the window. But I am not sure how to do this in RTT Viewer. Can you try to test using PuTTY and adjusting the column option I mentioned earlier to see if this is the root of the problem?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I extend the range of the fft result graph of x-axis?</title><link>https://devzone.nordicsemi.com/thread/220847?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 12:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:532e5f8a-b381-4e4b-b137-ed71c71d2432</guid><dc:creator>zester926</dc:creator><description>&lt;p&gt;Hi msromero!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your care.&lt;/p&gt;
&lt;p&gt;Well, I&amp;#39;m using RTT Viewer now, and when I change the size of the window, Anything changed. :(&lt;/p&gt;
&lt;p&gt;I took some images of several ranges.&lt;/p&gt;
&lt;p&gt;1. 1000hz&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1000hz.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;2. 1500hz&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1500hz.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;3. 2000hz&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2000hz.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;4. 2500hz&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2500hz.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;5. 3000hz&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3000hz.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As you can see the image, It is shifted to the left when It reaches over 2000hz.&lt;/p&gt;
&lt;p&gt;And t&lt;span&gt;he graph looks symmetrical, is this why it takes up the space?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Baek&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I extend the range of the fft result graph of x-axis?</title><link>https://devzone.nordicsemi.com/thread/220547?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 11:55:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf27cb12-bf29-41e9-9141-76d71a1f24ac</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The limit of the x-axis is determined by the FFT_TEST_OUT_SAMPLES_LEN defined, which in your case will be 256, which looks correct. My guess is that the terminal window is too little and that&amp;#39;s why the graph is being shifted to the left. Which terminal are you using to output the results? If you are using PuTTY you can modify the size of the terminal window by changing the &amp;quot;Columns&amp;quot; field under the &amp;quot;Window&amp;quot; options.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>