<?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>MMA8453 interface with BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19248/mma8453-interface-with-ble</link><description>Dear Nordic Team, 
 Thanks for supporting. 
 Currently i am working with MMA8453 accelerometer . I already interface with nRF51422 using TWI it is working fine. The sensor interrupt pin is connect with GPIO interrupt. Everything is ok for TWI example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Feb 2017 06:53:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19248/mma8453-interface-with-ble" /><item><title>RE: MMA8453 interface with BLE</title><link>https://devzone.nordicsemi.com/thread/74579?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 06:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd3c4895-8e6a-4a05-b930-e3ed5ff14fa0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Strange. Are you sure the pin is actually toggling? Have you checked with a logic analyzer? Have you tried to connect the pin to ground when you have a breakpoint in in_pin_handler()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MMA8453 interface with BLE</title><link>https://devzone.nordicsemi.com/thread/74578?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 05:21:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a276b3da-9dc4-4630-bc8b-11450431d692</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;yes i am tried but not yet get interrupt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MMA8453 interface with BLE</title><link>https://devzone.nordicsemi.com/thread/74575?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 16:24:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9a036fb-988f-4452-8d47-2c4189ed0ed9</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Seems to be working fine here. Have you tried to put a breakpoint in the start of in_pin_handler()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MMA8453 interface with BLE</title><link>https://devzone.nordicsemi.com/thread/74577?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2017 12:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58e631df-7f94-4566-9ca1-d72104d7dc53</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;yes after optimization off i am getting  returns 0x00000008. After command the  nrf_drv_gpiote_init() this function the code is running but i cant get gpio interrupt.&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/asdf.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MMA8453 interface with BLE</title><link>https://devzone.nordicsemi.com/thread/74576?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2017 11:08:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a81a609-860d-41a7-aceb-f55505ccdf55</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Have you turned off optimizations? Options for Target-&amp;gt;C/C++-&amp;gt;Optimization: Level 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MMA8453 interface with BLE</title><link>https://devzone.nordicsemi.com/thread/74574?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2017 05:37:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e70f73e-91ff-4cf0-8341-ea1f3ffeabfc</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;Thank for reply. I already tested above you are mentioned i am always getting returns 0x00000000
But code is not run next line.  &lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/gpio.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MMA8453 interface with BLE</title><link>https://devzone.nordicsemi.com/thread/74573?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 12:48:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93e7eff7-0dc8-490d-b162-37ee67cb9a1e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;advertising_start() doesn&amp;#39;t return anything, it&amp;#39;s a void. I tested your project, nrf_drv_gpiote_init() returns 0x00000008, which is NRF_ERROR_INVALID_STATE. It is returned if the driver already has been initialized. You could easily have checked this yourself, just turn off optimizations and put a breakpoint on APP_ERROR_CHECK() below nrf_drv_gpiote_init();&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MMA8453 interface with BLE</title><link>https://devzone.nordicsemi.com/thread/74572?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 12:30:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb98326a-b3f6-472e-a9e5-c3ea7e99ddd4</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;Thanks for reply. The  advertising_start() returns always zero. But whenever where it is i call below function the system is going to be hang.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void gpio_init(void)
{
    ret_code_t err_code;

    err_code = nrf_drv_gpiote_init();
    APP_ERROR_CHECK(err_code);
    
    //nrf_drv_gpiote_out_config_t out_config = GPIOTE_CONFIG_OUT_SIMPLE(false);

    //err_code = nrf_drv_gpiote_out_init(PIN_OUT, &amp;amp;out_config);
    //APP_ERROR_CHECK(err_code);

    nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_TOGGLE(true);
    in_config.pull = NRF_GPIO_PIN_PULLUP;

    err_code = nrf_drv_gpiote_in_init(DEVICE_INT_PIN, &amp;amp;in_config, in_pin_handler);
    APP_ERROR_CHECK(err_code);

    nrf_drv_gpiote_in_event_enable(DEVICE_INT_PIN, true);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MMA8453 interface with BLE</title><link>https://devzone.nordicsemi.com/thread/74571?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 11:55:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9afa88a0-35ba-48af-baeb-f7fe54bbe6e2</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You didn&amp;#39;t answer the questions:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Have you tried to debug? Are you able to get to advertising_start() if you put a breakpoint there? Have you checked the error handler?&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MMA8453 interface with BLE</title><link>https://devzone.nordicsemi.com/thread/74570?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 10:07:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67c40fe8-64cb-4065-9987-fd989c83d8e4</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;hi @ Petter Myhre, Any updates ??? i am waiting your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MMA8453 interface with BLE</title><link>https://devzone.nordicsemi.com/thread/74569?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2017 11:44:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c5f6de8-1c4f-4495-b577-18d70db849b3</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;Thanks for reply.Here posted my complete code  in answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MMA8453 interface with BLE</title><link>https://devzone.nordicsemi.com/thread/74568?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2017 11:30:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4b010d8-c192-4d5b-b75f-cbb2f21032aa</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Seems like you are using an allowed interrupt priority for the TWI peripheral. Have you tried to debug? Are you able to get to advertising_start() is you put a breakpoint there? Have you checked the error handler? Maybe you can upload your complete project so I can test it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>