<?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>I want example timer + spi (SDK 14.2.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52667/i-want-example-timer-spi-sdk-14-2-0</link><description>Hi, all. 
 
 I m trying to combine two example spi + timer using nRF52832. 
 
 But spi_event_handler function in the ex spi and timer event in the ex timer are crashed. 
 If I insert source code &amp;quot;nrf_drv_timer_enable(&amp;amp;TIMER_TEST);&amp;quot;, program is died. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Oct 2019 11:15:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52667/i-want-example-timer-spi-sdk-14-2-0" /><item><title>RE: I want example timer + spi (SDK 14.2.0)</title><link>https://devzone.nordicsemi.com/thread/213389?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2019 11:15:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a4cc22d-2d96-4b54-95f7-35e6c3bbc228</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I tested your code and I was able to use RTT logging without any problems. Could you point to what specifically goes wrong?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want example timer + spi (SDK 14.2.0)</title><link>https://devzone.nordicsemi.com/thread/212902?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2019 05:33:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e706d5d6-cee3-48b3-bdad-375d322e32d1</guid><dc:creator>nRFBeginner</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I insert RTT command, program is not working.&lt;/p&gt;
&lt;p&gt;attach code as below.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Eric.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/spi-_2B00_-timer.zip"&gt;devzone.nordicsemi.com/.../spi-_2B00_-timer.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want example timer + spi (SDK 14.2.0)</title><link>https://devzone.nordicsemi.com/thread/212780?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 10:36:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:533d4a60-0f8e-4378-a423-a5ed0aa03bc5</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6646._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want example timer + spi (SDK 14.2.0)</title><link>https://devzone.nordicsemi.com/thread/212690?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 00:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de878acb-4564-4663-beed-9bee1454f245</guid><dc:creator>nRFBeginner</dc:creator><description>&lt;p&gt;Hi, Simon.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for answer.&lt;/p&gt;
&lt;p&gt;I resolved to combine two example(spi + timer).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It is working well.&lt;/p&gt;
&lt;p&gt;But there are strange point.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;have used TIMER 4 now.&lt;/p&gt;
&lt;p&gt;If I&amp;nbsp;enabled TIMER4 single, It is not&amp;nbsp;working. But&amp;nbsp;when I enabled&amp;nbsp;two timer,&amp;nbsp;it is working well.&lt;/p&gt;
&lt;p&gt;or,&amp;nbsp;when #define TIMER4 &lt;strong&gt;4,&amp;nbsp;working well&amp;nbsp;(Not #define TIMER4 1)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;I think it is strange.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I m wating for your answer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This&amp;nbsp;is timer code in sdk_config.h. (example spi base)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;--- When working.&lt;/p&gt;
&lt;p&gt;// &amp;lt;q&amp;gt; TIMER0_ENABLED&amp;nbsp; - Enable TIMER0 instance&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#ifndef TIMER0_ENABLED&lt;br /&gt;#define TIMER0_ENABLED&amp;nbsp;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;q&amp;gt; TIMER1_ENABLED&amp;nbsp; - Enable TIMER1 instance&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#ifndef TIMER1_ENABLED&lt;br /&gt;#define TIMER1_ENABLED 0&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;q&amp;gt; TIMER2_ENABLED&amp;nbsp; - Enable TIMER2 instance&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#ifndef TIMER2_ENABLED&lt;br /&gt;#define TIMER2_ENABLED 0&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;q&amp;gt; TIMER3_ENABLED&amp;nbsp; - Enable TIMER3 instance&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#ifndef TIMER3_ENABLED&lt;br /&gt;#define TIMER3_ENABLED 0&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;q&amp;gt; TIMER4_ENABLED&amp;nbsp; - Enable TIMER4 instance&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#ifndef TIMER4_ENABLED&lt;br /&gt;#define TIMER4_ENABLED 1&amp;nbsp; (or #define TIMER0_ENABLED&amp;nbsp;0, #define TIMER4_ENABLED&amp;nbsp;4)&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;/e&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;--- When not working.&lt;/p&gt;
&lt;p&gt;// &amp;lt;q&amp;gt; TIMER0_ENABLED&amp;nbsp; - Enable TIMER0 instance&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#ifndef TIMER0_ENABLED&lt;br /&gt;#define TIMER0_ENABLED&amp;nbsp;0&amp;nbsp;&amp;nbsp; &lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;q&amp;gt; TIMER1_ENABLED&amp;nbsp; - Enable TIMER1 instance&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#ifndef TIMER1_ENABLED&lt;br /&gt;#define TIMER1_ENABLED 0&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;q&amp;gt; TIMER2_ENABLED&amp;nbsp; - Enable TIMER2 instance&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#ifndef TIMER2_ENABLED&lt;br /&gt;#define TIMER2_ENABLED 0&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;q&amp;gt; TIMER3_ENABLED&amp;nbsp; - Enable TIMER3 instance&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#ifndef TIMER3_ENABLED&lt;br /&gt;#define TIMER3_ENABLED 0&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;q&amp;gt; TIMER4_ENABLED&amp;nbsp; - Enable TIMER4 instance&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#ifndef TIMER4_ENABLED&lt;br /&gt;#define TIMER4_ENABLED 1&amp;nbsp;&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;/e&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sincerely yours&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want example timer + spi (SDK 14.2.0)</title><link>https://devzone.nordicsemi.com/thread/212286?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 12:49:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dfad7a5-889b-4d6c-9db1-593ff4d61e4d</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Follow these steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Put in all the timer related code into your SPI example. Like functions, variable declarations and macros.&lt;/li&gt;
&lt;li&gt;Add&amp;nbsp;&lt;em&gt;#include &amp;quot;nrf_drv_timer.h&amp;quot;&lt;/em&gt; at the top of your SPI example&lt;/li&gt;
&lt;li&gt;If you&amp;#39;re going to implement the SoftDevice later on you should use timer1 or timer2, not timer0&lt;/li&gt;
&lt;li&gt;Add all the timer related configurations to sdk_config.h
&lt;ul&gt;
&lt;li&gt;In the sdk_config.h file of&amp;nbsp;examples\peripheral\timer, copy the defines belonging to&lt;em&gt; &amp;quot;//&amp;lt;e&amp;gt; TIMER_ENABLED - nrf_drv_timer - TIMER periperal driver - legacy layer&amp;quot;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Add&amp;nbsp;&lt;em&gt;&amp;lt;..&amp;gt;\modules\nrfx\drivers\include\nrfx_timer.h&lt;/em&gt; to the path&lt;/li&gt;
&lt;li&gt;Add the source file of the nrfx driver to project explorer (\modules\nrfx\drivers\src\nrfx_timer.c)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I&amp;#39;ve provided an example down below.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a7736badf761471494c12875fc6f09ec/spi.rar"&gt;devzone.nordicsemi.com/.../spi.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want example timer + spi (SDK 14.2.0)</title><link>https://devzone.nordicsemi.com/thread/212226?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 09:40:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04536a51-8ae0-4705-9765-a082eea256e7</guid><dc:creator>awneil</dc:creator><description>[quote userid="80637" url="~/f/nordic-q-a/52667/i-want-example-timer-spi-sdk-14-2-0"]I&amp;nbsp;m trying to combine two example[/quote]
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/merging-two-ble-examples-together"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/merging-two-ble-examples-together&lt;/a&gt;&lt;/p&gt;
[quote userid="80637" url="~/f/nordic-q-a/52667/i-want-example-timer-spi-sdk-14-2-0"]But spi_event_handler function in the ex spi and timer event in the ex timer are crashed[/quote]
&lt;p&gt;What do you mean by that?&lt;/p&gt;
&lt;p&gt;What &lt;strong&gt;debugging&lt;/strong&gt; have you done to find the problem?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html"&gt;https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3051._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>