<?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>timer example won&amp;#39;t compile</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125603/timer-example-won-t-compile</link><description>i got the following code from here: https://docs.nordicsemi.com/bundle/ncs-3.1.1/page/zephyr/kernel/services/timing/timers.html , and am using version 3.1.1 of the SDK 
 
 void my_work_handler ( struct k_work * work ) 
 { 
 /* do the processing that needs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Nov 2025 21:02:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125603/timer-example-won-t-compile" /><item><title>RE: timer example won't compile</title><link>https://devzone.nordicsemi.com/thread/554430?ContentTypeID=1</link><pubDate>Fri, 14 Nov 2025 21:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61955c5e-349f-4008-8709-83746bacc532</guid><dc:creator>kruenheck</dc:creator><description>&lt;p&gt;That fixed the problem, thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer example won't compile</title><link>https://devzone.nordicsemi.com/thread/554385?ContentTypeID=1</link><pubDate>Fri, 14 Nov 2025 12:42:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87a5829a-0d0c-4269-a3ce-3430c825ce6f</guid><dc:creator>Simon D-M</dc:creator><description>&lt;p&gt;Hi Keith,&lt;/p&gt;
&lt;p&gt;I think you might have a scope problem with the &amp;quot;&lt;code&gt;k_timer_start()&lt;/code&gt;&amp;quot; function. Be sure to have it inside a running thread.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1763123900038v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Let me know if this did the trick &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon D-M&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>