<?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>nRF52840 FreeRTOS vTaskDelete assertion</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67955/nrf52840-freertos-vtaskdelete-assertion</link><description>Hi there, 
 I am using the Nordic SDK 16.0.0 on an nRF52840 with FreeRTOS. I am quite familiar with using FreeRTOS, but hadn&amp;#39;t needed to delete a task until recently. It seems that even when I create a simple task that deletes itself, I get an assertion</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Nov 2020 14:54:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67955/nrf52840-freertos-vtaskdelete-assertion" /><item><title>RE: nRF52840 FreeRTOS vTaskDelete assertion</title><link>https://devzone.nordicsemi.com/thread/278822?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 14:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b68d8a00-1e17-4f14-ac81-bb4892397758</guid><dc:creator>Radoslaw Koppel</dc:creator><description>&lt;p&gt;Just remove heap_1.c and add heap_4.c file.&lt;/p&gt;
&lt;p&gt;Configure the required heap size: configTOTAL_HEAP_SIZE - you probably have it done for heap_1.c already.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nRF52 supports any of the memory models. The only problematic one may be heap_3.c that relays on the compiler malloc and free functions - it may require additional configuration in the compiler environment that depends on the compiler used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 FreeRTOS vTaskDelete assertion</title><link>https://devzone.nordicsemi.com/thread/278659?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2020 16:23:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1847678-9f63-454b-b6c5-c3c37bdc2efe</guid><dc:creator>krisburch</dc:creator><description>&lt;p&gt;Thanks - unfortunately this is not quite enough info for me. If I would like to change over to using the heap_4.c model, is there anything other than removing heap_1.c from the project and instead linking heap_4.c that needs changed? Does the nRF52 FreeRTOS port support all of these heap_x.c options? Are there any FreeRTOSConfig.h options that need changed to use another memory model? Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 FreeRTOS vTaskDelete assertion</title><link>https://devzone.nordicsemi.com/thread/278537?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2020 07:56:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c70294f3-d02b-4a5d-a497-967b461fb83b</guid><dc:creator>Radoslaw Koppel</dc:creator><description>&lt;p&gt;The issue means that a memory manager chosen does not support memory freeing. Look into source/portable/MemMang and choose the memory manager that fits your needs the best.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 FreeRTOS vTaskDelete assertion</title><link>https://devzone.nordicsemi.com/thread/278488?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 15:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c5b4cbf-ec9c-45b7-b25d-d7254c3aa396</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was able to replicate the same assert here, but it&amp;#39;s not clear to me why vPortFree() is called when it&amp;#39;s not implemented, or what the correct solution to this is. I have to ask some of my colleagues who have more experience with Freertos and get back to you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>