<?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>Problem with Timer Interrupt and SoftDevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52977/problem-with-timer-interrupt-and-softdevice</link><description>Hello, 
 I have troubles with the timer interrupt. The code work fine until the timer hit the compare value and then stop. 
 This is my function for the timer init: 
 
 Here is the handler function: 
 
 In the main function, i have a rudimentary loop</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Oct 2019 14:05:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52977/problem-with-timer-interrupt-and-softdevice" /><item><title>RE: Problem with Timer Interrupt and SoftDevice</title><link>https://devzone.nordicsemi.com/thread/214197?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 14:05:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d02528b-05a0-47a1-8529-912f22716fd3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is not much to go on, but clearly something happens. Can you start by building with DEBUG defined as well as logging enabled, and see if perhaps an error has been detected and the device is in the error handler?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Timer Interrupt and SoftDevice</title><link>https://devzone.nordicsemi.com/thread/213951?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 13:49:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:583bb9bd-2cf2-4479-b0c9-319afef8b487</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your time. Meanwhile I&amp;#39;ve managed to get the app working but without the SoftDevice installed and the app located at 0x0000000 in the Flash. Also I get the the Timer to work with the ble_app_template with the SoftDevice (the app is located after the SoftDevice).&lt;/p&gt;
&lt;p&gt;Now if i put the Softdevice (S132) in the Flash and the app at 0x26000 (In the same conditions i was when i posted) then halt the system when no LEDs are blinking, I end up with this in the console&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Debugger requested to halt target...
...Target halted (PC = 0x00000A6E)
Reading all registers
Read 1 bytes @ address 0x00000000 (Data = 0x00)
Reading register (PSP = 0x       0)
Reading register (PRIMASK = 0x       0)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I also set a breakpoint in the&amp;nbsp;timer_led_handler() but it never reach it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Timer Interrupt and SoftDevice</title><link>https://devzone.nordicsemi.com/thread/213921?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 12:51:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6a37c5c-c7fb-4fe9-be12-ae6352b4c2c0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]The led 0 blink during approx. 1s and then remains off and the led 1 never turn on.[/quote]
&lt;p&gt;Since this happens in the main loop, LED 0 should always blink. Since it does not, it seems likely that your application is stuck in an event handler (directly or indirectly) somewhere. Have you tried to debug? If you halt the execution, where do you end up (remember to test with a debug build with optimization turned off when doing this)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>