<?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>nRF9160 CMSIS DSP code bloat</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78458/nrf9160-cmsis-dsp-code-bloat</link><description>Using SES v1.6.1 with the nRF9160 module, I added the necessary CMSIS DSP defines for my project. Each define compiles a lot of files and it does not look like the linker includes only files used. 
 My code size has went over 466Kb. After adding more</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 15 Aug 2021 12:37:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78458/nrf9160-cmsis-dsp-code-bloat" /><item><title>RE: nRF9160 CMSIS DSP code bloat</title><link>https://devzone.nordicsemi.com/thread/324964?ContentTypeID=1</link><pubDate>Sun, 15 Aug 2021 12:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0a7d99f-7158-46f8-a533-9e8ed8da91c2</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I have not used SES much but I think you might be able manually add the library via the SES project settings. &amp;nbsp;However you may lose it if ncs is used again to modify the project. &amp;nbsp;Unfortunately, there are currently no other options without zephyr. I hope there will be a bare metal aka nRF5_SDK version in the future. &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 CMSIS DSP code bloat</title><link>https://devzone.nordicsemi.com/thread/324963?ContentTypeID=1</link><pubDate>Sun, 15 Aug 2021 12:26:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2732fa56-d50c-42f3-a841-a424cb8d4d10</guid><dc:creator>DavidKaplan</dc:creator><description>&lt;p&gt;I created a library using SES without the CONNECT infrastructure but since the CONNECT project does not have the normal SES options settings, I do not know how to add the library to try in in my project.&lt;/p&gt;
&lt;p&gt;Thanks David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 CMSIS DSP code bloat</title><link>https://devzone.nordicsemi.com/thread/324962?ContentTypeID=1</link><pubDate>Sun, 15 Aug 2021 12:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d78c45d-a92b-4ff3-8c59-43a5ab56b98b</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;You can create a static library for all the dsp code. &amp;nbsp;You need to create a new static library project not using ncs or create a makefile to compile the library. &amp;nbsp;After that you can add the library to ncs project. &amp;nbsp;The linker then takes only what is used from the library. &amp;nbsp;Contrary to adding code into the project, the linker will link everything. &amp;nbsp;That is why they&amp;nbsp;have to add thousands of defines to select what to compile which is a very bad programming practice. &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 CMSIS DSP code bloat</title><link>https://devzone.nordicsemi.com/thread/324958?ContentTypeID=1</link><pubDate>Sun, 15 Aug 2021 06:44:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:821cf3db-ebf0-42d5-9123-b67a7510a2be</guid><dc:creator>DavidKaplan</dc:creator><description>&lt;p&gt;I made a post to the ARM forum and got this reply:&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;This forum is about the core/cpu not compilers/tools. Esp. not Zephyr. Anyway, since you did not tell which compiler/linker one can only guess. But the manual for your linker might tell you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So I have a couple of more questions.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1) &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;If I try some of the gcc ccompiler|linker flags such as &amp;quot;&lt;code&gt;arm-strip --strip-unneeded&amp;quot; will it not remove any vital Nordic code? Are dead code removal flags already used by the Nordic defaults?&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;code&gt;2) Would it help if I created somehow a CMSIS DSP library and added it to my code?&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:monospace;"&gt;How can I create a library from the CMSIS DSP code? It does not look like the SES New Connect project would make a library with the proj.conf and&amp;nbsp;CMakeLists.txt.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:monospace;"&gt;Thanks David&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 CMSIS DSP code bloat</title><link>https://devzone.nordicsemi.com/thread/324451?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 11:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3340e7b-5bd7-4458-ac09-0d04611cdded</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi David,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The CMSIS DSP library is made by ARM, and nothing I can help with. From a little search in the &lt;a href="https://github.com/ARM-software/CMSIS_5/issues/1045"&gt;Git repo of ARM-software/CMSIS_5&lt;/a&gt;&amp;nbsp;it basically states that you can enable and disable various function e.g.&amp;nbsp;Compilation symbols have been introduced to allow to include only the FFT tables which are useful in a given application. I recommend looking at the &lt;a href="https://devzone.nordicsemi.com/support-private/support/274764/keil.com/pack/doc/CMSIS/DSP/html/index.html"&gt;CMSIS DSP lib documentation&lt;/a&gt;, and reaching out to &lt;a href="https://community.arm.com/developer/ip-products/processors/f/cortex-m-forum"&gt;the Arm communiity&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hope this helps on your path.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>