<?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>nRF9160DK and timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93534/nrf9160dk-and-timer</link><description>Hello 
 Sorry for the dumb question, but how do I get this timer to work? 
 What am I doing wrong? 
 I would like to measure the distance with the HC-SR04 sensor. 
 
 
 
 
 I understand that the error starts there, but how should it be done? 
 
 
 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Nov 2022 13:08:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93534/nrf9160dk-and-timer" /><item><title>RE: nRF9160DK and timer</title><link>https://devzone.nordicsemi.com/thread/394155?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 13:08:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fbe8cc8-dbc8-48bf-8756-f5956f77e4cf</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are getting a reset when you use&amp;nbsp;NVIC_EnableIRQ(), as you are not allowed to write directly to the NVIC from the application. Instead, you typically want to use&amp;nbsp;IRQ_CONNECT (or in some special cases IRQ_DIRECT_CONNECT) and irq_enable(). You can see an example of using the TIMER similarly to&amp;nbsp;what you do in the radio test implementation: &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/peripheral/radio_test/src/radio_test.c"&gt;radio_test.c&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>