<?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 in S130</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4981/call-to-memset-crashes-my-application-in-s130</link><description>I am using latest (v 0.9) S130 and experiencing the following problem, the code below is located in the function which is called directly by the main(): 
 uint32_t err_code;
ble_gap_adv_params_t adv_params;
memset(&amp;amp;adv_params, 0, sizeof(adv_params</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Aug 2016 22:07:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4981/call-to-memset-crashes-my-application-in-s130" /><item><title>RE: Call to memset crashes my application in S130</title><link>https://devzone.nordicsemi.com/thread/17562?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2016 22:07:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21b99eb1-6745-492f-a782-0b2f5bf47b7c</guid><dc:creator>morgan</dc:creator><description>&lt;p&gt;I&amp;#39;m having the same issue in SDK 11. My code is the same as in &lt;code&gt;examples/ble_peripheral/ble_app_uart/main.c&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t               err_code;
ble_conn_params_init_t cp_init;
   
memset(&amp;amp;cp_init, 0, sizeof(cp_init));
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Breaking at &lt;code&gt;memset&lt;/code&gt; and issuing &lt;code&gt;x cp_init&lt;/code&gt; yields &lt;code&gt;Cannot access memory at address 0x20007fb0&lt;/code&gt; Not sure what&amp;#39;s going on here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application in S130</title><link>https://devzone.nordicsemi.com/thread/17563?ContentTypeID=1</link><pubDate>Fri, 06 Feb 2015 06:30:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31e05b41-eb05-44e8-9b3b-c5f0ad757a10</guid><dc:creator>SergP</dc:creator><description>&lt;p&gt;Unable to see this issue after N more attempts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application in S130</title><link>https://devzone.nordicsemi.com/thread/17561?ContentTypeID=1</link><pubDate>Fri, 06 Feb 2015 06:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfeb13d2-d19d-49a3-ab38-1f90864cef6c</guid><dc:creator>SergP</dc:creator><description>&lt;p&gt;I agreed that it doesn&amp;#39;t make any sense, that is why I posted this question...&lt;/p&gt;
&lt;p&gt;I have just tried N more times and unable to reproduce it, probably it happens only with some preceding calls, I am closing this question for now, will open if I will see it again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application in S130</title><link>https://devzone.nordicsemi.com/thread/17559?ContentTypeID=1</link><pubDate>Thu, 05 Feb 2015 09:03:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa8e9a39-093d-40d2-8e02-95cf319f05a1</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Ok. It doesn&amp;#39;t make any sense that memset() crashes the application. What happens if you debug? Are you able to read the address of the variable? Could you please hand over you code? Then I could try to reproduce the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application in S130</title><link>https://devzone.nordicsemi.com/thread/17560?ContentTypeID=1</link><pubDate>Thu, 05 Feb 2015 06:39:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d335a39-0a40-43b6-b6ff-fb3c64bfbab1</guid><dc:creator>SergP</dc:creator><description>&lt;p&gt;Hi, no, I didn&amp;#39;t figure that out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call to memset crashes my application in S130</title><link>https://devzone.nordicsemi.com/thread/17558?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2015 14:44:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5d0bf8a-0f15-4e14-a277-ea6ff3f48999</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, did you manage to figure this out? memset() should not crash your application since the memory is already allocated in the preceding line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>