<?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>undefined reference to &amp;#39;end&amp;#39; with nRF Connect SDK v2.4.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101643/undefined-reference-to-end-with-nrf-connect-sdk-v2-4-0</link><description>Hello, 
 Earlier, we developed a library using nordic sdk v2.3.0 on nRF5340 TF-M secure environment. Now we planned to switch from nordic sdk v2.3.0 to v2.4.0. 
 While trying to compile our source code using nordic sdk v2.4.0, we observed the linker error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jul 2023 06:54:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101643/undefined-reference-to-end-with-nrf-connect-sdk-v2-4-0" /><item><title>RE: undefined reference to 'end' with nRF Connect SDK v2.4.0</title><link>https://devzone.nordicsemi.com/thread/435620?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 06:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:357a1ce9-5056-4d34-af57-851f07fe9296</guid><dc:creator>ske</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We enabled the CONFIG_DEBUG=y in prj.conf and linker error is resolved with nRF connect sdk v2.4.0.&lt;/p&gt;
&lt;p&gt;We surprised with this and want to understand about this dynamic memory allocation support removed in nRF Connect SDK v2.4.0. Could you tell the reason behind ?&lt;/p&gt;
&lt;p&gt;In our library, we have some requirements to use dynamic memory allocation instead of static allocation where will get the dynamic data in TF-M secure environment. Do you have any reference or any other way on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to 'end' with nRF Connect SDK v2.4.0</title><link>https://devzone.nordicsemi.com/thread/435542?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 15:32:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adc9fa42-3ef8-4ec3-81f3-d792a9d02142</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;I looked a bit more into it, and in order to use malloc heap must be enabled, and it is by default disabled in TF-M. In TF-M the heap is hardcoded to a small size of 0x200 and is only meant for debug builds.&lt;/p&gt;
&lt;p&gt;CONFIG_DEBUG=y enables the heap and will likely remove the error, but I suggest managing the memory in some other way instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to 'end' with nRF Connect SDK v2.4.0</title><link>https://devzone.nordicsemi.com/thread/435468?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 11:43:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0188c5e7-4426-4f84-bfc4-9cb2c323239b</guid><dc:creator>ske</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;As you mentioned, we added the&amp;nbsp;&lt;span&gt;&lt;strong&gt;CONFIG_MINIMAL_LIBC=y&lt;/strong&gt; in prj.conf and observed the same linker error. Then, we tried with&amp;nbsp;&lt;strong&gt;CONFIG_NEWLIB_LIBC=y.&amp;nbsp;&lt;/strong&gt;This also providing the same linker error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Could you please&amp;nbsp;tell if any configuration needs to be enabled along with this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to 'end' with nRF Connect SDK v2.4.0</title><link>https://devzone.nordicsemi.com/thread/435449?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 10:42:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:166e9ac6-8c3b-4e10-8eab-08de88df1f79</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you try to add CONFIG_MINIMAL_LIBC=y to prj.conf? If that doesn&amp;#39;t work, can you try with CONFIG_NEWLIB_LIBC=y instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>