<?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>uVision V5.16a GPIOTE error on compilation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9450/uvision-v5-16a-gpiote-error-on-compilation</link><description>Hi, 
 I am new to Nordic. Will someone help me figure out what is wrong with UVision V5.16a. I get sample codes from pack installer example the &amp;quot;ble_app_hrs_s310_pca10028&amp;quot; for nRF51422xxAC and compile it using Uvison v5.16a. 
 My problem is that, the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Oct 2015 02:18:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9450/uvision-v5-16a-gpiote-error-on-compilation" /><item><title>RE: uVision V5.16a GPIOTE error on compilation</title><link>https://devzone.nordicsemi.com/thread/34888?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2015 02:18:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1aacc4d-60a4-4d80-a66e-a05a7f19bf4c</guid><dc:creator>mc</dc:creator><description>&lt;p&gt;Hi Aryan,&lt;/p&gt;
&lt;p&gt;I am soon working with ANT. But before that the BLE is most important.&lt;/p&gt;
&lt;p&gt;Your sample code works very fine. I was able to compile and run it without problem. I tried to solve why the sample code in the installer pack differs from the available code you&amp;#39;ve given me.&lt;/p&gt;
&lt;p&gt;The changes I made from the pack installer is the following:&lt;/p&gt;
&lt;p&gt;#define GPIOTE_ENABLED 1   - this solve the compiler error
#define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 6  - this solve the reset proble.&lt;/p&gt;
&lt;p&gt;over all this is my configuration from the sample of pack installer that runs without error: (ble_app_hrs_s310_pca10028)&lt;/p&gt;
&lt;p&gt;/* GPIOTE */
#define GPIOTE_ENABLED 1  // MDC TODO: change from 0 to 1&lt;/p&gt;
&lt;p&gt;#if (GPIOTE_ENABLED == 1)
#define GPIOTE_CONFIG_USE_SWI_EGU false
#define GPIOTE_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_HIGH
#define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 6          //MDC TODO: changed from 1 to 6
#endif&lt;/p&gt;
&lt;p&gt;Thanks for helping me out. I can now go on...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uVision V5.16a GPIOTE error on compilation</title><link>https://devzone.nordicsemi.com/thread/34887?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2015 11:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d944d9dd-8707-453b-9456-5091b90949c0</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Why are you using hrs_s310? are you working with ANT protocol as well?
If not then you should use nRF51_SDK_9.0.0_2e23562\examples\ble_peripheral\ble_app_hrs\pca10028\s130 example.
You should also program softdevice first from&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nRF51_SDK_9.0.0_2e23562\components\softdevice\s130\hex
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;before you program your application.
If you have already done all that then you should try to debug and see at what point your code is resetting the chip.&lt;/p&gt;
&lt;p&gt;Normally any error in APP_ERROR_CHECK fail will cause a system reset in app_error_handler. The behaviour you are seeing could be just some function failing and the macro APP_ERROR_CHECK resetting your device. Search this forum about it, there should be a lot of info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uVision V5.16a GPIOTE error on compilation</title><link>https://devzone.nordicsemi.com/thread/34885?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2015 09:16:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12fa9089-0ee2-4e1f-801f-68864e0d5599</guid><dc:creator>mc</dc:creator><description>&lt;p&gt;Thanks Aryan,&lt;/p&gt;
&lt;p&gt;The GPIOTE problem is fix when enabling the macro.&lt;/p&gt;
&lt;p&gt;But as I debug it keeps on resetting the code in Main(), using the example &amp;quot;ble_app_hrs_s310_pca10028&amp;quot;. I Think I have the same problem with &lt;a href="https://devzone.nordicsemi.com/question/52008/nrf51-dk-kit-flashes-but-not-working/"&gt;this thread&lt;/a&gt;. It compiles but wont flash on my nrF51 dev kit because the code it keeps on resetting. I also program it with simple LED blink and it works.&lt;/p&gt;
&lt;p&gt;My apology for the duplicate thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uVision V5.16a GPIOTE error on compilation</title><link>https://devzone.nordicsemi.com/thread/34886?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2015 08:01:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2faf52a1-1b91-46ca-9c24-6be0f5e2991d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Please search for similar problems before you post a new thread about it.
The fix for your compilation error can be found as answer in &lt;a href="https://devzone.nordicsemi.com/question/45202/errorgpiote_config_num_of_low_power_envents-is-undefined/"&gt;this&lt;/a&gt; thread&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>