<?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>division by zero</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38593/division-by-zero</link><description>hi 
 i downloaded (Nordic-Thingy52-FW-master) 
 it had many problem for compiling that i had to remove all c files and header file and install them again 
 all the errors solved but one is still remain 
 error is : ..\..\..\libs\sr3_audio\drv_audio_pdm</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Sep 2018 12:22:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38593/division-by-zero" /><item><title>RE: division by zero</title><link>https://devzone.nordicsemi.com/thread/149029?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 12:22:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:297943fd-04e3-4b58-ab94-cc854dc0ddbe</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;br /&gt;&lt;br /&gt;I asked if you did the prerequisitions listed on GitHub before you installed?&lt;br /&gt;&lt;br /&gt;Did you do the following:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;1) Install Git v2.xx.xx, Available from &lt;a href="https://git-scm.com/"&gt;https://git-scm.com/&lt;/a&gt;. Use default configurations.&lt;br /&gt;&lt;br /&gt;2) Install GNU ARM embedded toolchain v4.9-2015q3. Available from &lt;a href="https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q3-update"&gt;launchpad.net/.../4.9-2015-q3-update&lt;/a&gt;. Use default configurations.&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;3) Install Make must and put in the system path. For example &lt;a href="http://gnuwin32.sourceforge.net/packages/make.htm."&gt;gnuwin32.sourceforge.net/.../make.htm.&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;4) Create a user at &lt;a href="https://www.invensense.com/"&gt;https://www.invensense.com/&lt;/a&gt;. Under &amp;quot;Downloads&amp;quot; download &amp;quot;Embedded MotionDriver 6.12&amp;quot;. Unzip the downloaded motion_driver_6.12 folder and navigate to motion_driver_6.12/mpl libraries/arm/Keil. Unzip the folder libmpllib_Keil_M4FP.zip. Copy the extracted library libmpllib.lib into &amp;lt;your Thingy folder&amp;gt;/libs/libmpllib_Keil_M4FP/. Finally, unzip /motion_driver_6.12/mpl libraries/arm/gcc4.9.3/liblibmplmpu_m4_hardfp.zip and copy the extracted library liblibmplmpu.a into the folder &amp;lt;your Thingy folder&amp;gt;/libs/liblibmplmpu_m4_hardfp/.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You should run setup_sdk.bat after you did point 1, 2, 3, and 4.&lt;br /&gt;&lt;br /&gt;If it&amp;#39;s still not working, can you please upload a zip file of your project?&lt;br /&gt;&lt;br /&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: division by zero</title><link>https://devzone.nordicsemi.com/thread/148993?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 10:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eda288b1-0d13-4136-9c95-5d6cda28b299</guid><dc:creator>Fred2020</dc:creator><description>&lt;p&gt;1- yes i downloaded that &lt;/p&gt;
&lt;p&gt;2- i use keil to compile&lt;/p&gt;
&lt;p&gt;i could compile project without error and i uploaded on thingy52 but it doesnt work&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0044.Capture1.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;this is setting of my project&lt;/p&gt;
&lt;p&gt;3-Nordic-Thingy52-FW-master\project\pca20020_s132\arm5_no_packs&lt;/p&gt;
&lt;p&gt;i use this project&lt;/p&gt;
&lt;p&gt;what is mistake?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: division by zero</title><link>https://devzone.nordicsemi.com/thread/148986?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 09:57:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cf633c6-f632-4e0e-861a-16e655189631</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;[quote userid="74000" url="~/f/nordic-q-a/38593/division-by-zero"][/quote]&lt;/p&gt;
&lt;p&gt;error is : ..\..\..\libs\sr3_audio\drv_audio_pdm.c(54): error:&amp;nbsp; #39: division by zero&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s telling you that the error is in &lt;strong&gt;line 54&lt;/strong&gt; of the file&amp;nbsp;&lt;span&gt;&lt;strong&gt;drv_audio_pdm.c&lt;/strong&gt; - so have you looked at that line for an obvious divide-by-zero ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: division by zero</title><link>https://devzone.nordicsemi.com/thread/148976?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 09:39:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61918e7a-63ed-4b50-9c6c-1df27ce90718</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Please answear on the following questions:&lt;/p&gt;
&lt;p&gt;1) Did you download &lt;a href="https://github.com/NordicSemiconductor/Nordic-Thingy52-FW"&gt;this Nordic-Thingy52-FW-master SDK&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;2) Did you follow the&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/Nordic-Thingy52-FW"&gt;prerequisites on GitHub&lt;/a&gt; when setting up the SDK?&lt;/p&gt;
&lt;p&gt;3) Which project are you trying to compile? Can you please link folder path.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>