<?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>Trying to enable MBedTLS static buffer allocation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85235/trying-to-enable-mbedtls-static-buffer-allocation</link><description>Hello, 
 I&amp;#39;m currently trying to enable static buffer for MBedTLS as described here: https://tls.mbed.org/kb/how-to/using-static-memory-instead-of-the-heap . 
 I wrote a simple hello world example to test it out: 
 
 Clearly there is a problem with my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Mar 2022 07:35:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85235/trying-to-enable-mbedtls-static-buffer-allocation" /><item><title>RE: Trying to enable MBedTLS static buffer allocation</title><link>https://devzone.nordicsemi.com/thread/355432?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 07:35:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebb93ac0-2122-4a98-a89c-cb3b7e1b1428</guid><dc:creator>BastianW</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;wasn&amp;#39;t clear to me - thanks for the clarification.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to enable MBedTLS static buffer allocation</title><link>https://devzone.nordicsemi.com/thread/355422?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 06:36:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ee9be87-1b42-4ce9-8fb0-fb050aa97e3a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Enabling the mbedtls heap in our sdk will use a static buffer anyway so there is no need to do this manually.&lt;/p&gt;
&lt;p&gt;The heap initialization can be found here:&lt;/p&gt;
&lt;p&gt;&lt;a title="https://github.com/nrfconnect/sdk-nrfxlib/blob/main/nrf_security/src/legacy/mbedtls_heap.c" href="https://github.com/nrfconnect/sdk-nrfxlib/blob/main/nrf_security/src/legacy/mbedtls_heap.c" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrfxlib/blob/main/nrf_security/src/legacy/mbedtls_heap.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And the file is included here:&lt;/p&gt;
&lt;p&gt;&lt;a title="https://github.com/nrfconnect/sdk-nrfxlib/blob/79c55b287673dbae97e2cfded8acba570b19c8a2/nrf_security/src/zephyr/cmakelists.txt#l15" href="https://github.com/nrfconnect/sdk-nrfxlib/blob/79c55b287673dbae97e2cfded8acba570b19c8a2/nrf_security/src/zephyr/CMakeLists.txt#L15" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrfxlib/blob/79c55b287673dbae97e2cfded8acba570b19c8a2/nrf_security/src/zephyr/CMakeLists.txt#L15&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>