<?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>Peer manager leading to hard fault with -Os flag with GCC 5</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13444/peer-manager-leading-to-hard-fault-with--os-flag-with-gcc-5</link><description>HI all, 
 We&amp;#39;ve recently moved to SDK 11.0 and it certainly has not been a painless migration, especially when using GCC. 
 Setup: GCC 5.2.1 on Linux Mint with nrf51 xxAA on a custom board 
 So, When using the peer manager, I&amp;#39;m not able to run with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Apr 2016 14:41:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13444/peer-manager-leading-to-hard-fault-with--os-flag-with-gcc-5" /><item><title>RE: Peer manager leading to hard fault with -Os flag with GCC 5</title><link>https://devzone.nordicsemi.com/thread/51320?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2016 14:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9299bdd8-52ef-4a26-9ca2-aa22bf5bd526</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have no problems building and running the ble_app_proximity example of SDK 11 when using -Os optimisation. It uses peer manager. Do you get the same or similar issues when trying with the ble_app_proximity example?&lt;/p&gt;
&lt;p&gt;There has been some linker script problems but these should have been fixed from SDK 11. The linker scripts still must be patched when migrating from previous versions, though.&lt;/p&gt;
&lt;p&gt;Regards, Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer manager leading to hard fault with -Os flag with GCC 5</title><link>https://devzone.nordicsemi.com/thread/51319?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2016 13:24:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d104c69-6ceb-4182-8705-bfd344498ace</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Thanks for the quick reply RK. I think where we are differing is what our expectations are from Nordic. A Free tool doesn&amp;#39;t mean that it should be kind of untested and dependent on the community to iron out the bugs, especially when a company like Nordic say that they support GCC. I can do the debugging to figure out what is happening and do less &amp;quot;guessing&amp;quot;, especially if I&amp;#39;ve to work with a pre-release SDK. But I don&amp;#39;t expect to do hours of debugging when moving to a new &amp;quot;stable&amp;quot; SDK. I am using the code from 11.0.0_89a8197 which I think is the latest.&lt;/p&gt;
&lt;p&gt;So if anyone is able to use peer manager in SDK 11.0.0 with Os optimization with GCC, please let me know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer manager leading to hard fault with -Os flag with GCC 5</title><link>https://devzone.nordicsemi.com/thread/51318?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2016 00:51:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9714970-ca2c-419b-80a8-38c1082ed73f</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;&amp;quot;I&amp;#39;m guessing some memory isn&amp;#39;t allocated in an aligned manner. Please help me solve this as we prefer using Os as its lighter on the OTA update.&amp;quot;&lt;/p&gt;
&lt;p&gt;Guessing doesn&amp;#39;t help. How can someone solve a random hardfault you have without proper details? Hardfaults are possible to track back, so get the stack trace and work out where the hardfault occurred and why, then someone may be able to suggest something.&lt;/p&gt;
&lt;p&gt;As to your general complaints about GCC support, Nordic at least provides support for GCC, but internally they&amp;#39;re really a Keil shop so it&amp;#39;s going to get less testing and it&amp;#39;s going to have some issues. A lot of those get resolved by the community here and are rolled back into the SDK. That&amp;#39;s the cost of using free tools.&lt;/p&gt;
&lt;p&gt;The fix for the linker script was put into the released SDK11.0, are you sure you&amp;#39;re using the right SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>