<?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>FreeRTOS task failing in a memset()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66641/freertos-task-failing-in-a-memset</link><description>I&amp;#39;m currently facing a problem while using FreeRTOS. I&amp;#39;ve created a task, but that tasks freezes the board at this line : 
 
 
 
 without FreeRTOS this piece of code works perfectly. A few things : 
 - addr is defined Localy 
 - currentEncounters is defined</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Oct 2020 13:59:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66641/freertos-task-failing-in-a-memset" /><item><title>RE: FreeRTOS task failing in a memset()</title><link>https://devzone.nordicsemi.com/thread/274365?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 13:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a98f12e5-8ec1-4ecc-8f72-4615be7646aa</guid><dc:creator>Nathan-ma</dc:creator><description>&lt;p&gt;I end up finding a better of doing this without freeRTOS so thank you Einar for the support, you can close this now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS task failing in a memset()</title><link>https://devzone.nordicsemi.com/thread/272950?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 11:47:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fe2182a-bad6-4c3d-bd0e-750b27c7a9b4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Memcpy itself should not fail, so I assume you either read or write from invalid memory or memory you are not allowed to (blocked by BPROT or ACL).&lt;/p&gt;
&lt;p&gt;Have you debugged to see what actually happens when you write that the board&amp;nbsp;freezes? Do you get a hardfault? What state is it in? And, more importantly, what is the parameters to the last memcpy call when it fails (destination address, source address, size)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>