<?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>Hardfault when using both UART and GPIOTE, how can I solve this problem?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21516/hardfault-when-using-both-uart-and-gpiote-how-can-i-solve-this-problem</link><description>Hello, 
 I feel like this question has an answer similar to this question, but I can&amp;#39;t seem to get it working devzone.nordicsemi.com/.../ 
 I am using the nrf51422 chip on a board I designed myself and I&amp;#39;m using a UART and GPIO interrupt. The UART interrupt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Apr 2017 08:49:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21516/hardfault-when-using-both-uart-and-gpiote-how-can-i-solve-this-problem" /><item><title>RE: Hardfault when using both UART and GPIOTE, how can I solve this problem?</title><link>https://devzone.nordicsemi.com/thread/84460?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 08:49:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f416a68-d83c-4311-918b-d668d01d92b9</guid><dc:creator>Jordi</dc:creator><description>&lt;p&gt;It seems to be that the problem was in my main.c.&lt;/p&gt;
&lt;p&gt;I called the gpio_init(); function first and the init_uart(); function second. By switching this around the problem seems to be solved.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know exactly why this is. Does anyone know why this happens? I call both these functions only once, so how does this impact my code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>