<?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>Custom GATT - central hangs when connecting: nRF52810 + S112 | armgcc @SDK14.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29532/custom-gatt---central-hangs-when-connecting-nrf52810-s112-armgcc-sdk14-2</link><description>Hello, 
 I am trying to get a BLE peripheral with a single service containing a single custom read-write characteristic. 
 Unfortunately, any time I initiate a connection to the device the device stops advertising and the connection hangs.
The connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jan 2018 15:17:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29532/custom-gatt---central-hangs-when-connecting-nrf52810-s112-armgcc-sdk14-2" /><item><title>RE: Custom GATT - central hangs when connecting: nRF52810 + S112 | armgcc @SDK14.2</title><link>https://devzone.nordicsemi.com/thread/117390?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 15:17:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88d4e979-10ac-47fa-8769-21b54e6fa457</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I see the same issue here with the latest arm-none-eabi, where it get&amp;#39;s stuck trying to transfer data over UART (nrf_log).
It looks like -flto is trigger happy and removes IRQHandler&amp;#39;s (and links them all in the Default_Handler) with the latest arm-none-eabi:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(gdb) print UARTE0_IRQHandler
$5 = {&amp;lt;text variable, no debug info&amp;gt;} 0x1b092 &amp;lt;WDT_IRQHandler&amp;gt;
(gdb) print Default_Handler
$6 = {&amp;lt;text variable, no debug info&amp;gt;} 0x1b092 &amp;lt;WDT_IRQHandler&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I feel your pain. compiler issues are the worst.
It looks like you&amp;#39;re not the only person seeing this:
&lt;a href="https://bugs.launchpad.net/gcc-arm-embedded/+bug/1743765"&gt;bugs.launchpad.net/.../1743765&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Humble regards,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom GATT - central hangs when connecting: nRF52810 + S112 | armgcc @SDK14.2</title><link>https://devzone.nordicsemi.com/thread/117389?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 04:41:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dd8e144-eca6-4d89-a2a2-d85b85586f1c</guid><dc:creator>sirio</dc:creator><description>&lt;p&gt;The answer seems to be that the &lt;code&gt;-flto&lt;/code&gt; flag subtly breaks the build on PCA10040e +S112 using armgcc 7-2017-q4-major&lt;/p&gt;
&lt;p&gt;... seriously debated removing the above rant since the answer is so anticlimactic, but I&amp;#39;ll leave it here where it might help, and in monument to the self-inflicted trivialities that can ruin a programmer&amp;#39;s day.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>