<?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>undefined reference to `__heap_lock&amp;#39; linking issue in Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40853/undefined-reference-to-__heap_lock-linking-issue-in-segger-embedded-studio</link><description>I made some changes in mesh light_switch_client example code and tried to build it in SES, it passed compiling, but stucked at linking: 
 Building ‘light_switch_client_nrf52832_xxAA_s132_6.0.0’ from solution ‘light_switch_client_nrf52832_xxAA_s132_6.0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Nov 2018 07:56:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40853/undefined-reference-to-__heap_lock-linking-issue-in-segger-embedded-studio" /><item><title>RE: undefined reference to `__heap_lock' linking issue in Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/159657?ContentTypeID=1</link><pubDate>Fri, 30 Nov 2018 07:56:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f16084d-8762-422e-82c9-ce51c1dd0120</guid><dc:creator>zzzh</dc:creator><description>&lt;p&gt;Hi, Joakim,&lt;/p&gt;
&lt;p&gt;I just add a&amp;nbsp;app_timer_create and a&amp;nbsp;app_timer_start in start, before&amp;nbsp;&lt;/p&gt;
&lt;p&gt;hal_led_mask_set(LEDS_MASK, LED_MASK_STATE_OFF);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to `__heap_lock' linking issue in Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/159514?ContentTypeID=1</link><pubDate>Thu, 29 Nov 2018 09:44:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bea5d20-3e5f-4aea-ac45-5b2195327aa1</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad you found a temporary way around this. &lt;/p&gt;
[quote user=""]I made some changes in&amp;nbsp;mesh&amp;nbsp;&lt;span&gt;light_switch_client example&lt;/span&gt; code and tried to build it in SES[/quote]
&lt;p&gt;What kind of changes have you made to the example?&lt;/p&gt;
&lt;p&gt;Regards, &lt;br /&gt;Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to `__heap_lock' linking issue in Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/159152?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 07:09:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb943791-0e02-4363-a096-1afe3f9a9cc8</guid><dc:creator>zzzh</dc:creator><description>&lt;p&gt;It looks like to be a memory issue, so I changed the doubtful define of CLIENT_MODEL_INSTANCE_COUNT back to 2 (used to be 3), but still have same link errors.&lt;/p&gt;
&lt;p&gt;Then, I change it back to 3, and use release mode of building, ( instead of debug mode ), then it passed the building, no link error appear any more.&lt;/p&gt;
&lt;p&gt;Though, there must be something wrong in SES, hopefully, there&amp;#39;s an answer here one day.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>