<?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>Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25904/call-to-memset-crashes-my-application</link><description>When I am stepping through my application code crashing at 
 memset(&amp;amp;cccd_md, 0, sizeof(cccd_md));
 
 &amp;quot;Setup information: 
 
 IDE: Using IAR 
 Device: nRF52832 
 Soft device: S132 v 2.0.0 
 SDK version: 11.0.0 
 
 Memory organisation: 
 ROM</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Oct 2017 01:23:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25904/call-to-memset-crashes-my-application" /><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102021?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 01:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:608031b7-67c5-455d-a0de-76634570d842</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;possibly - as I said, crappy debugger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102029?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 01:21:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc96e9fd-f54f-4029-a26a-674b41cea6fd</guid><dc:creator>Anesh</dc:creator><description>&lt;p&gt;EW25524 / IDE-2671&lt;/p&gt;
&lt;p&gt;When a breakpoint set at &amp;quot;memset();&amp;quot; triggered, the execution might halt at &amp;quot;__aeabi_memset(_D, _N, _C);&amp;quot; in DLib_Product_string.h.&lt;/p&gt;
&lt;p&gt;I faund this
(&lt;a href="http://netstorage.iar.com/SuppDB/Public/UPDINFO/012120/common/doc/KnownProblems.html)"&gt;netstorage.iar.com/.../KnownProblems.html)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With IAR I was having this issue, with eclipse+GCC my code is working. Thanks RK and Dave_couling for helping.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102020?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 01:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32b7816e-845f-45e3-a278-51b63940e8a3</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;perhaps you just have a crappy debugger and need to step past that line and not try to step over/into it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102019?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 00:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a8d4588-e34b-4fe8-96c0-b31761f94f80</guid><dc:creator>Anesh</dc:creator><description>&lt;p&gt;Dave_couling As you asked before entering memset (memset at which debugger stopping) call, address of the variable/structure is char_md address 20003660 and debugger crashed at this memset call.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102018?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 00:32:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35713afc-9b83-443c-a49f-2ade1c3af915</guid><dc:creator>Anesh</dc:creator><description>&lt;p&gt;Thank you all for helping me. Are you guys able to see my .map file. I attached but I can&amp;#39;t see. If you guys are not seeing that let me know I will attach again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102028?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 00:28:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3c2ba62-c530-4c8e-ba46-b61e944f9b2d</guid><dc:creator>Anesh</dc:creator><description>&lt;p&gt;cccd_md address 20003628. My code is not stopping at any specific memset() function. It is random but every time if debugger stops/crash, that always happening at any memset() function. The address I mentioned once debugger stopped there but when i was reading that address debugger didn&amp;#39;t stop.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102027?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 00:26:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3352c15-8568-483b-9af6-8a1e6668f69b</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;well it would be on the stack so it would be very surprising were it either invalid or non-aligned.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102026?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2017 00:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9f154c1-a277-4e85-9663-e3b2e62e66e6</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;Before you enter the memset call, what is the address of cccd_md?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102025?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 23:52:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6948b23-fce7-4843-948d-164bef44914a</guid><dc:creator>Anesh</dc:creator><description>&lt;p&gt;Okay.. sorry for that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102024?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 23:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96e30fb5-543f-4747-85c8-3f6849220f6b</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;if you&amp;#39;re going to keep updating your question over and over and over and over and over and over and over again - please click the &amp;#39;minor edit&amp;#39; box so I don&amp;#39;t get an email for every single one word change you make. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102023?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 23:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3913bc3f-5cb0-4586-8431-93baa64f3b03</guid><dc:creator>Anesh</dc:creator><description>&lt;p&gt;I updated a picture, that will tell you where debugger stopping.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102022?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 23:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e4b576f-1c07-4979-9e8c-69ae03787a7c</guid><dc:creator>Anesh</dc:creator><description>&lt;p&gt;I attached .map file too. Thanks for your response RK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102017?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 23:42:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b79f70d-5537-4261-901e-221f79fb55c9</guid><dc:creator>Anesh</dc:creator><description>&lt;p&gt;My code is stopping at any memset() function, not any specific one during debug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102016?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 23:39:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8925a7b8-bbc7-4361-bd14-1e55bbdc6977</guid><dc:creator>Anesh</dc:creator><description>&lt;p&gt;When I am stepping through, It just stops there, can&amp;#39;t step to next statement. Sometimes, it jumps to `&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;__EFF_NENR1R1 __ATTRIBUTES void * memset(void * _D, int _C, size_t _N)
  {
    __aeabi_memset(_D, _N, _C);
    return _D;
  }`
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;this is in IAR Systems\Embedded Workbench 8.0\arm\inc\c\DLib_Product_string.h file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application</title><link>https://devzone.nordicsemi.com/thread/102015?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 23:28:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfc17527-4cea-4f2a-8692-943be9b8428f</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;don&amp;#39;t see how you can crash on that line of code - please provide more information about what &amp;#39;crash&amp;#39; means?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>