<?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>Is there hook funcitons in softdevice for application?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20481/is-there-hook-funcitons-in-softdevice-for-application</link><description>Hi :
I have problems ,for gpiote interrupt hanlder can be hanged up by softdevice. In normal use ,I should pull up sck pin of my private ADC chip for less than 10us and then pull it down. But as handler is hanged up ,the sck pin can keep high for more</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Mar 2017 12:34:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20481/is-there-hook-funcitons-in-softdevice-for-application" /><item><title>RE: Is there hook funcitons in softdevice for application?</title><link>https://devzone.nordicsemi.com/thread/79874?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 12:34:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84bd7323-e245-4f43-ad14-0c3740f0adcc</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Oh so you are running SPI in application FW instead of using HW peripheral block? And you are having problems to run it during BLE connection? That&amp;#39;s unfortunately expected. We have plaid with this and managed to do SPI slave work in SW even with S110 stack running GAP Peripheral connection, but we have failed to implement TWI (I2C) slave in SW on nRF51, it was not reliable during BLE connection...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there hook funcitons in softdevice for application?</title><link>https://devzone.nordicsemi.com/thread/79873?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 12:26:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aa5366d-a798-4724-81b3-abf616281d85</guid><dc:creator>Linxi</dc:creator><description>&lt;p&gt;It&amp;#39;s just opposite. It&amp;#39;s a 24-bit ADC chip, 3 pins (data ready,sck,sda)used for retrieving data from torque sensor. data ready pin triggers interrupt to my NRF51422. In handler i pull up sck pin ,then read 1 bit data from sda pin ,then pull down sck pin . pull down and pull up operation is supposed to keep special time according to chip specificiton, so i use nrf_delay_us to accomplish it. But pull up time is limted to less than 60us,otherwise ADC chip will restart automatically.
So,if softdevice hangs up my handler when sck pin is high and handler is in delay operation . The sck may keep high for more than 60us ,then my ADC chip  restarts. In this case ,when handler continues to excute ,I get wrong data this time .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there hook funcitons in softdevice for application?</title><link>https://devzone.nordicsemi.com/thread/79872?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 10:58:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42a66fd5-3700-425c-ba9c-b57844feb7a7</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi, what do you mean by GPIO handler? I thought it&amp;#39;s just output operation in your case (assuming your &amp;quot;private ADC chip&amp;quot; is having nRF5x GPIO line as input) so just timing not interrupts (because no input hence no way to trigger some interrupt). If not then please elaborate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there hook funcitons in softdevice for application?</title><link>https://devzone.nordicsemi.com/thread/79871?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 09:43:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4068dda8-2589-45a6-b0a5-5f3a806e5648</guid><dc:creator>Linxi</dc:creator><description>&lt;p&gt;Did you ever use nrf_delay_us in your gpio interrup handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there hook funcitons in softdevice for application?</title><link>https://devzone.nordicsemi.com/thread/79870?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 09:35:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efa65df6-7eeb-4858-9b5b-359c9fedcf92</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;This is strange. When I drive GPIO from the app I can do microsecond pulses driven by SW from my APP even on top of Soft Device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>