<?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>fpu-fft demo on nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58077/fpu-fft-demo-on-nrf52840</link><description>Hi, engineer: 
 I need to compute FFT on nrf52840, I used sdk-demo fpu-fft, I tested the FFT operation time and found that it took 2 ms，That`s a long time, Did I configure anywhere is wrong. I wonder how long it will take that 52840 to calculate the complex</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Jun 2020 08:49:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58077/fpu-fft-demo-on-nrf52840" /><item><title>RE: fpu-fft demo on nrf52840</title><link>https://devzone.nordicsemi.com/thread/255903?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 08:49:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80c18e7f-3b3e-4065-91ae-0de04a14a86a</guid><dc:creator>Arthur</dc:creator><description>&lt;p&gt;I got it, thanks very mush&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fpu-fft demo on nrf52840</title><link>https://devzone.nordicsemi.com/thread/235924?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 10:41:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aef99ab-3bb6-40ca-b694-deeda84a85a1</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Using the fpu_fft example&amp;nbsp; in nRF5 SDK v16.0.0 as a starting point I am getting a quite different result.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I changed the FFT type to len256 and the&amp;nbsp;FFT_TEST_COMP_SAMPLES_LEN define to 512, and measure about 670us running time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which compiler and IDE are you using to test this?&lt;/p&gt;
&lt;p&gt;You will find my test example attached:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-25c2490d58ec4a7e86b9b3bce02433ea/244796_5F00_fpu_5F00_fft.zip"&gt;devzone.nordicsemi.com/.../244796_5F00_fpu_5F00_fft.zip&lt;/a&gt;&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: fpu-fft demo on nrf52840</title><link>https://devzone.nordicsemi.com/thread/235648?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 08:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0188bd28-9add-44f9-8591-2bc3f6f22e66</guid><dc:creator>Arthur</dc:creator><description>&lt;p&gt;Hi, ovrebekk:&lt;/p&gt;
&lt;p&gt;I measured the fft_process(...) function, I modified the Demo to compute the complex number FFT-256&lt;/p&gt;
&lt;p&gt;, fft_process(...) function takes about 2.5ms.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;demo_project:&amp;nbsp;nRF5_SDK_14.2.0_17b948a\examples\peripheral\fpu_fft\&amp;nbsp;&amp;nbsp;fpu_fft_example_blank_pca10056_irq.uvprojx&lt;/p&gt;
&lt;p&gt;modify point:&lt;/p&gt;
&lt;p&gt;1.&lt;/p&gt;
&lt;p&gt;#define FFT_TEST_COMP_SAMPLES_LEN&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 512&amp;nbsp; //128 --&amp;gt; 512&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2.&lt;/p&gt;
&lt;p&gt;nrf_gpio_pin_write(ARDUINO_13_PIN, 1);&lt;/p&gt;
&lt;p&gt;fft_process(m_fft_input_f32,&lt;br /&gt; &amp;amp;arm_cfft_sR_f32_len256,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //arm_cfft_sR_f32_len64 --&amp;gt; arm_cfft_sR_f32_len256&lt;br /&gt; m_fft_output_f32,&lt;br /&gt; FFT_TEST_OUT_SAMPLES_LEN);&lt;br /&gt; &lt;br /&gt; nrf_gpio_pin_write(ARDUINO_13_PIN, 0);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;measured method:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I use an oscilloscope to check the IO pin status, The duration of pin state high level is about 2.5ms，I think the function takes 2.5ms to execute.&lt;/p&gt;
&lt;p&gt;Is there something I haven&amp;#39;t modify corrected, what should I do,&amp;nbsp; Can you give me a correct example project, thanks very much!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fpu-fft demo on nrf52840</title><link>https://devzone.nordicsemi.com/thread/235630?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 07:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ef4f34c-d8a9-47bd-8d58-e1b02af59145</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What are you measuring? The time spend by the &lt;em&gt;fft_process(..)&lt;/em&gt; function, or the time spent by the &lt;em&gt;fft_generate_samples(..)&lt;/em&gt; function?&lt;/p&gt;
&lt;p&gt;I did a test myself and measured the &lt;em&gt;fft_process(..)&lt;/em&gt; function to run in about 128us.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The&lt;em&gt; fft_generate_samples(..)&lt;/em&gt; function spends closer to 2ms, but you can optimize this by replacing the call to the &lt;em&gt;sin()&lt;/em&gt; function by &lt;em&gt;sinf()&lt;/em&gt;.&amp;nbsp;Most likely the developers made a small mistake and used the double version instead of the float version of the sin function.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Increasing the output length to 256 points increases the &lt;em&gt;fft_process(..)&lt;/em&gt; runtime to 170us in my test.&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>