<?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>Do I need to change the interrupt priority when using BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18980/do-i-need-to-change-the-interrupt-priority-when-using-ble</link><description>Hi, 
 I am using BLE UART application with softdevice S132 on nrf52832 board.
I wrote a code where where i am using systick interrupt, GPIOTE interrupt. Also code has SPI0 ,Timer0, SAADC modules. Code is working fine without BLE .But now i have to add</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Jan 2017 09:19:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18980/do-i-need-to-change-the-interrupt-priority-when-using-ble" /><item><title>RE: Do I need to change the interrupt priority when using BLE</title><link>https://devzone.nordicsemi.com/thread/73360?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 09:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f14bfbfe-2a91-485d-8596-912759c27c4e</guid><dc:creator>Yogesh</dc:creator><description>&lt;p&gt;Thanks a lot Sigurd&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do I need to change the interrupt priority when using BLE</title><link>https://devzone.nordicsemi.com/thread/73359?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 08:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8a99e28-1be9-4fab-8a87-e108a5998453</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, SYSTICK will work if you don&amp;#39;t place the CPU in sleep mode. But, this is &lt;strong&gt;NOT recommended&lt;/strong&gt;. The CPU will then be on all the time, using &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/cpu.html?cp=2_2_0_6_1_0#unique_1933967346"&gt;3.7mA&lt;/a&gt;.If you use a typical coin-cell battery, the battery will be empty in 1-2 days.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do I need to change the interrupt priority when using BLE</title><link>https://devzone.nordicsemi.com/thread/73358?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 06:13:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:346cb67f-2ffa-498e-b815-10f27daaf607</guid><dc:creator>Yogesh</dc:creator><description>&lt;p&gt;also i am using SPI0 interrupt.What precautions do i need to be taken?
I am waiting for the reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do I need to change the interrupt priority when using BLE</title><link>https://devzone.nordicsemi.com/thread/73357?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 14:23:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f255ef73-b8ff-409a-a4e0-dac7cd1aef68</guid><dc:creator>Yogesh</dc:creator><description>&lt;p&gt;Thanks .
If i comment down the power_manage(); will systick work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do I need to change the interrupt priority when using BLE</title><link>https://devzone.nordicsemi.com/thread/73356?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 13:34:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be3ae13c-3868-45b9-bc11-915a1b863f7a</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Yes SYSTICK is turned off when the device sleeps, so it&amp;#39;s not that useful. Is there a reason you put multiple question marks after each question????????????????????????&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do I need to change the interrupt priority when using BLE</title><link>https://devzone.nordicsemi.com/thread/73355?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 13:34:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28716365-ca49-443c-b2ab-1e5a07a65192</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;In the SDK BLE examples the GPIOTE priority is usually set to 7. If you don’t set the correct priority you will typically get an assert/error. The CPU is placed in sleep mode to save power between events/interrupts, and the CPU clock is therefore turned off. The nRF52 implementation of systick uses the CPU clock, so systick won’t return any interrupts when the CPU is in sleep/low-power mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do I need to change the interrupt priority when using BLE</title><link>https://devzone.nordicsemi.com/thread/73354?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 13:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d5dfec0-1ef9-45d8-996c-78bb5c431a4f</guid><dc:creator>Yogesh</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.
I am able to change the priorities of both  systick interrupt, GPIOTE interrupt to 7 and 6 repectively.
also I could change the Timer0 to Timer 1.
I didnt understand why i cant use Systick??why source clock gets turned off???would you please elaborate??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do I need to change the interrupt priority when using BLE</title><link>https://devzone.nordicsemi.com/thread/73353?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 12:10:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37d7634e-ed93-4cdf-95a9-69e617160b79</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Interrupt priorities 0,1,4 and 5 are reserved for the SoftDevice. Your application can use priorities 2,3,6 and 7. The SoftDevice also uses TIMER0, so you will need to switch to TIMER1. Systick is sourced by the same clock as the CPU, which is turned off when going to sleep(WFE/WFI), so I recommend that you look into using the app_timer instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>