<?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>Which GPIOTE channels are used in s140?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61180/which-gpiote-channels-are-used-in-s140</link><description>Hi, 
 I am using s140 v7.0.1 for nRF52840. 
 I found if I configure NRF_GPIOTE-&amp;gt;CONFIG[0], then BLE will not work. 
 Which GPIOTE channels are used in s140? 
 Thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 May 2020 01:36:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61180/which-gpiote-channels-are-used-in-s140" /><item><title>RE: Which GPIOTE channels are used in s140?</title><link>https://devzone.nordicsemi.com/thread/249078?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 01:36:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b05c7dff-af8c-466c-aefb-36f34dcebc30</guid><dc:creator>irarykim</dc:creator><description>&lt;p&gt;I am sorry.. It was my mistake..&lt;/p&gt;
&lt;p&gt;I was using GPIOTE channel 0 in other part of my firmware..&lt;/p&gt;
&lt;p&gt;Thanks for your answer!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which GPIOTE channels are used in s140?</title><link>https://devzone.nordicsemi.com/thread/249002?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 14:20:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4d5bd4c-fb01-4ff1-8684-88df6e6cbea9</guid><dc:creator>irarykim</dc:creator><description>&lt;p&gt;No, I am using a customized board. I am using other pins for UART Tx, Rx.&lt;/p&gt;
&lt;p&gt;As mentioned above, I just changed GPIOTE channel from 0 to 4, then BLE tx worked.&lt;/p&gt;
&lt;p&gt;I think I can find some&amp;nbsp;clue on the coming Monday.&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;Have a nice weekend and&amp;nbsp;be careful from COVID 19!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which GPIOTE channels are used in s140?</title><link>https://devzone.nordicsemi.com/thread/248995?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 14:11:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09797dbc-316b-4241-995f-a7310f6ea36e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Are you testing on nRF52840 DK? Are you transferring data from PC over UART to the BLE NUS application? GPIO P0.08 is used as UART RXD pin by default on the DK, maybe that could be the cause of your issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which GPIOTE channels are used in s140?</title><link>https://devzone.nordicsemi.com/thread/248981?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 13:33:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32db2b24-f4a3-429c-8069-2a06325dc58b</guid><dc:creator>irarykim</dc:creator><description>&lt;p&gt;Yes, I am using nRF5 SDK. But sometimes I directly use registers.&lt;/p&gt;
&lt;p&gt;The pin is&amp;nbsp;&lt;span&gt;P0.08. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After I changed the channel from 0 to 4, BLE Tx worked. So I believed the comment in Zephyr link. &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;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I should see if I used channel 0 in other part of my firmware.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which GPIOTE channels are used in s140?</title><link>https://devzone.nordicsemi.com/thread/248963?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 13:06:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56aee1fe-7fa4-4f9a-9b5c-771f7b733a2d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;That issue is about the radio driver in Zephyr, it is not related to the softdevice. If you are using nRF5 SDK (which I assume you are, since you are using s140 softdevice), that is not relevant.&lt;/p&gt;
&lt;p&gt;Which pin are you configuring for use with GPIOTE?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which GPIOTE channels are used in s140?</title><link>https://devzone.nordicsemi.com/thread/248960?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 12:59:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c005e41f-928e-4144-abe5-a01f665e84bc</guid><dc:creator>irarykim</dc:creator><description>&lt;p&gt;I am using NUS in my firmware.&lt;/p&gt;
&lt;p&gt;When the code that writes value to&amp;nbsp;&lt;span&gt;NRF_GPIOTE-&amp;gt;CONFIG[0] is used,&lt;/span&gt;&amp;nbsp;I can use nRF UART for Android app to pair with my board, also I can send from app to my board, but my board doesn&amp;#39;t send bytes to app when it is trying.&lt;/p&gt;
&lt;p&gt;If this&amp;nbsp;&lt;span&gt;NRF_GPIOTE-&amp;gt;CONFIG[0] code is commented, BLE Tx works fine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am home now, so I cannot remember clearly, but the code is similar to following code block, I referred&amp;nbsp;it from &lt;a href="https://github.com/NordicPlayground/nrf52-timer-gpiote-ppi-hands-on/blob/master/main.c"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;NRF_GPIOTE-&amp;gt;CONFIG[0] = GPIOTE_CONFIG_MODE_Task &amp;lt;&amp;lt; GPIOTE_CONFIG_MODE_Pos |&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span&gt; GPIOTE_CONFIG_POLARITY_Toggle &amp;lt;&amp;lt; GPIOTE_CONFIG_POLARITY_Pos | &lt;br /&gt; pinselect &amp;lt;&amp;lt; GPIOTE_CONFIG_PSEL_Pos | &lt;br /&gt; GPIOTE_CONFIG_OUTINIT_High &amp;lt;&amp;lt; GPIOTE_CONFIG_OUTINIT_Pos;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I found &amp;quot;&lt;strong&gt;allocating the channels 0-2 for pwm and 3 for PA/LNA in BLE radio&lt;/strong&gt;&amp;quot; in &lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/8815#issuecomment-403615445"&gt;this link&lt;/a&gt;, so I&amp;nbsp;guessed softdevice uses GPIOTE channel 0-3, maybe I misunderstood the context.&lt;/p&gt;
&lt;p&gt;In the coming Monday, I should check the error returned from&amp;nbsp;&lt;em&gt;ble_nus_string_send().&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If you have any suggestion, please tell me.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which GPIOTE channels are used in s140?</title><link>https://devzone.nordicsemi.com/thread/248947?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 12:30:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccdc25ee-5fee-4481-9e0d-4b049a7c7ccd</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The softdevice does &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/sd_resource_reqs/sd_resource_reqs.html"&gt;not use any GPIOTE channels&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What are the symptoms of &amp;quot;BLE not working&amp;quot;?&lt;/li&gt;
&lt;li&gt;Did you make any other changes at the same time that could have caused this?&lt;/li&gt;
&lt;li&gt;What is the exact code you added that caused the issue?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>