<?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>ncs zephyr example called &amp;#39;nrfx&amp;#39;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76306/ncs-zephyr-example-called-nrfx</link><description>ncs 1.5.1, using SES, the example for zephyr samples/boards/nrf/nrfx/src/main.c github URL: github.com/.../main.c 
 does not work for me; while the &amp;#39;button_handler&amp;#39; gets called OK, the LED does not toggle . 
 And another compiler gives a WARNING on the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Jul 2021 14:15:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76306/ncs-zephyr-example-called-nrfx" /><item><title>RE: ncs zephyr example called 'nrfx'</title><link>https://devzone.nordicsemi.com/thread/318266?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 14:15:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b62a367-87ba-4bb2-bd91-8116a11b13dd</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi! I just spoke to the developer and there does seem to be a small copy-paste error in this sample.&amp;nbsp;There will be a fix soon.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And you are correct in your observation, there is no debouncing used&amp;nbsp;here as the purpose of this sample is to show how to use the nrfx drivers in Zephyr, not how to handle buttons reliably.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We unfortunately don&amp;#39;t support the debouncing feature in NCS yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs zephyr example called 'nrfx'</title><link>https://devzone.nordicsemi.com/thread/318053?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 21:48:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db7f4155-97cf-4c96-8ecb-6dad180b8aaa</guid><dc:creator>NordicSwissTom</dc:creator><description>&lt;p&gt;I wasted some more time on this example, then I found it only works exactly with &lt;strong&gt;all other 3 buttons/switches&lt;/strong&gt;, BUT not with the &amp;#39;Button 1&amp;#39; aka &amp;#39;sw0&amp;#39;. The next observation was, with sw0 the &amp;#39;button_handler()&amp;#39; function gets called &lt;span style="color:#ff0000;"&gt;&lt;strong&gt;TWICE&lt;/strong&gt;&lt;/span&gt; per button press! (but only once for the 3 other buttons/switches). Thus I guess there is a zephyr config disaster.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs zephyr example called 'nrfx'</title><link>https://devzone.nordicsemi.com/thread/318052?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 21:39:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d2e21d9-59ad-43a7-beb9-fe412a3e9577</guid><dc:creator>NordicSwissTom</dc:creator><description>&lt;p&gt;IMPORTANT: another bad point for this example: it is VERY prone to button bounce!&amp;nbsp; (I think there was an app library in an [nrf5?] sdk exactly for this reason to provide debouncing). So this example (button to GPIOTE-in) has no&amp;nbsp;serious use case. there should be a big red &lt;span style="background-color:#ff0000;"&gt;WARNING&lt;/span&gt; in the readme.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs zephyr example called 'nrfx'</title><link>https://devzone.nordicsemi.com/thread/318051?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 21:31:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29445514-53b3-4029-965a-7d965f89f216</guid><dc:creator>NordicSwissTom</dc:creator><description>&lt;p&gt;C compilers do not check for enum type mismatch; In my case it is the additional CLang based verifier running.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I ask again, why should we code for an IN -event on a !OUTPUT! pin?&lt;br /&gt; &lt;strong&gt;nrfx_gpiote_&lt;span style="color:#ff0000;"&gt;in&lt;/span&gt;_event_get (&lt;span style="color:#ff0000;"&gt;OUTPUT&lt;/span&gt;_PIN)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;While looking at the nrfx implementation, I think it worked (for you) due pure coincidence as the offsets of the channels/registers are the same.&lt;/p&gt;
&lt;p&gt;Another point on this line is the mixture of nrfx_* vs nrf_* calls,&lt;br /&gt;I think it would be much better readable as:&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;nbsp; nrfx_gppi_channel_endpoints_setup(channel, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nrfx_gpiote_in_event_addr_get(INPUT_PIN), &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nrfx_gpiote_out_task_addr_get(OUTPUT_PIN) );&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs zephyr example called 'nrfx'</title><link>https://devzone.nordicsemi.com/thread/317249?ContentTypeID=1</link><pubDate>Fri, 25 Jun 2021 13:07:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9536bc53-d808-414e-b91c-0251223831f9</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;When compiling with GNU 9.2.1, I do not get these warnings.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs zephyr example called 'nrfx'</title><link>https://devzone.nordicsemi.com/thread/317174?ContentTypeID=1</link><pubDate>Fri, 25 Jun 2021 09:46:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e92dc61-c9c9-47a5-8aa4-1bf7c486067b</guid><dc:creator>NordicSwissTom</dc:creator><description>&lt;p&gt;Note, your toy SES compiler will not find this issue.&lt;/p&gt;
&lt;p&gt;For the call &lt;strong&gt;nrfx_gppi_channel_endpoints_setup&lt;/strong&gt;, &lt;br /&gt;there is the second part defined as:&lt;br /&gt;&amp;nbsp; nrf_gpiote_task_address_get( NRF_GPIOTE_Type const * p_reg, &lt;strong&gt;nrf_gpiote_task_t task&lt;/strong&gt;)&lt;/p&gt;
&lt;p&gt;but for &amp;#39;task&amp;#39; argument, your sample source is passing an &amp;#39;event&amp;#39; kind per:&lt;br /&gt;&amp;nbsp; nrfx_gpiote_in_event_get(OUTPUT_PIN)&lt;/p&gt;
&lt;p&gt;this gives (in a CLang based verifier)&lt;br /&gt;Warning: implicit conversion &lt;br /&gt;&amp;nbsp; from enumeration type &amp;#39;nrf_gpiote_event_t&amp;#39; &lt;br /&gt;&amp;nbsp; to different enumeration type &amp;#39;nrf_gpiote_task_t&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs zephyr example called 'nrfx'</title><link>https://devzone.nordicsemi.com/thread/315583?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 11:42:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25b77c14-a044-4890-9c71-ef7295bf72b6</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;I just tested on my nRF9160 DK (0.8.2 layout, NCS 1.5.1) and it works. Could you paste the log output from the sample when you&amp;#39;re testing it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I also don&amp;#39;t see any warnings when building the code.&amp;nbsp; Could you show me the full log output when building?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs zephyr example called 'nrfx'</title><link>https://devzone.nordicsemi.com/thread/315228?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 17:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb3634f9-0bb9-4725-ab35-46156715eae4</guid><dc:creator>NordicSwissTom</dc:creator><description>&lt;p&gt;Hi Heidi, the 9160 DK (the v0.9 layout)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs zephyr example called 'nrfx'</title><link>https://devzone.nordicsemi.com/thread/315135?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 12:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0613eac6-9f67-44e7-826a-619fc6e64594</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Which board are you building for?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>