<?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>program hangs on startup if not using microlib</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18990/program-hangs-on-startup-if-not-using-microlib</link><description>This is a general question I will throw out initially, but I can get more specific if necessary. This is something I see a lot in my year or so of development with nordic nRF5x chips. Sometimes I will run an application and it never gets to main(). Breaking</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Jan 2017 15:16:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18990/program-hangs-on-startup-if-not-using-microlib" /><item><title>RE: program hangs on startup if not using microlib</title><link>https://devzone.nordicsemi.com/thread/73403?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 15:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80676543-a8c7-4d67-a57f-ba85d144b008</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;As mentioned in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/mem_usage/mem_resource_reqs.html?cp=2_3_0_0_13_0_0"&gt;softdevice documentation&lt;/a&gt;, no heap is required by the softdevice. Also, from the &lt;a href="https://devzone.nordicsemi.com/tutorials/26/"&gt;ROM and RAM management tutorial&lt;/a&gt;: &lt;em&gt;Heap memory can safely be set to zero as long as you don&amp;#39;t use dynamic memory allocation (malloc/free). Note that heap is generally not used in our SDK examples&lt;/em&gt;. You are correct that using microlib will disable heap usage, but heap usage should not originate from the SDK examples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: program hangs on startup if not using microlib</title><link>https://devzone.nordicsemi.com/thread/73401?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 14:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d8147d6-cc78-40c2-9556-c2618bb74c26</guid><dc:creator>Bill Russell</dc:creator><description>&lt;p&gt;My understanding was that the full C library (non microlib) uses the heap.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: program hangs on startup if not using microlib</title><link>https://devzone.nordicsemi.com/thread/73405?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 09:51:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d52b8904-0ba7-4cda-9510-3e303d04a6af</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you set optimization level to 0? Have you added something to your project that use heap? The softdevice and SDK should not use any heap.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: program hangs on startup if not using microlib</title><link>https://devzone.nordicsemi.com/thread/73404?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2017 16:38:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf34c218-4ae2-484f-8c2f-9450bef8c2ee</guid><dc:creator>Bill Russell</dc:creator><description>&lt;p&gt;it is stuck in a loop in an area with no source available, when I don&amp;#39;t use microlib. If I use microlib then it runs fine. I am thinking its heap related (since full C library is said to use it), although my arm_startup_nrf52.s appears to have 8192 of heap defined.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: program hangs on startup if not using microlib</title><link>https://devzone.nordicsemi.com/thread/73402?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 09:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07b44064-0d52-4314-a712-4c77b9872b6f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;MicroLib is optimized to use less code and data memory than using the ARM standard library. It should not affect the functionality of the code, as long as your program is compiled without errors and you flash the program correctly to the device. Have you tried &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;debugging&lt;/a&gt;, to see where the code is stuck?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>