<?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>GPIO can&amp;#39;t be  controlled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113789/gpio-can-t-be-controlled</link><description>Hi, 
 I encountered a very strange issue. I need to control a device using GPIO. What I use is p0.22/p0.02/p0.03/p1.11/p0.31/p0.30. I modify the app.overlay file and check the final zephyr.dts which is correct. But when I use the gpio_pin_set_dt to control</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Aug 2024 12:47:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113789/gpio-can-t-be-controlled" /><item><title>RE: GPIO can't be  controlled</title><link>https://devzone.nordicsemi.com/thread/498286?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 12:47:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a406e35-edf4-4e86-b8d0-17b46f2545f0</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;The nRF7002DK uses 1.8V as a design choice.&lt;/p&gt;
&lt;p&gt;For custom hardware using the nRF7002, you can use whatever is within its &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf7002/page/chapters/recommended_op_conditions/doc/recommended_op_conditions.html"&gt;Recommended operating conditions&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;EDIT: The reason that 1.8V is used for the DK seems to be &lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF5340_Rev1/ERR/nRF5340/Rev1/latest/anomaly_340_136.html?cp=4_0_1_0_1_21"&gt;this errata&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO can't be  controlled</title><link>https://devzone.nordicsemi.com/thread/498281?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 12:39:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1064aae2-3c27-44c3-8072-988beded3222</guid><dc:creator>LanceTaiwan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Let me discuss with my hardware engineers, thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO can't be  controlled</title><link>https://devzone.nordicsemi.com/thread/498034?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 12:15:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb97b163-8b82-4c58-9af6-d9fb14b48980</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I mean:&lt;/p&gt;
&lt;p&gt;Use a Logic Level Converter module&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO can't be  controlled</title><link>https://devzone.nordicsemi.com/thread/498011?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 11:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d9c6bc6-861e-4fdb-901b-f470cda1a5ef</guid><dc:creator>LanceTaiwan</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Yes please&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO can't be  controlled</title><link>https://devzone.nordicsemi.com/thread/497997?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 10:27:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea230662-139b-4372-84a0-ac6064068075</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;From what I know about the nRF7002DK, it only supports 1.8V.&lt;/p&gt;
&lt;p&gt;There may be methods for changing it on the DK itself, but I think they will be a bit hacky.&lt;/p&gt;
&lt;p&gt;Can I suggest that you use a logic level converter instead for testing the DK with higher voltage peripherals?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO can't be  controlled</title><link>https://devzone.nordicsemi.com/thread/497985?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 09:13:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bbb792a-8841-4d98-af32-b62774ee595d</guid><dc:creator>LanceTaiwan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; sorry&amp;#39; let me make it clear.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Currently if I use API to set gpio to high (V1.8) using&amp;nbsp;&amp;nbsp;&lt;span&gt;gpio_pin_set_dt&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;dispen, 1&lt;/span&gt;&lt;span&gt;)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;and set gpio to low(V0)&amp;nbsp;using&amp;nbsp;&lt;/span&gt;&lt;span&gt;gpio_pin_set_dt&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;dispen, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;But I need to use 3.3V to control&amp;nbsp;Peripherals.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; For your questions.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What do you mean &amp;quot;config to 3.3v&amp;quot;?&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;change its specific voltage level&lt;br /&gt;&lt;br /&gt;How did you find this command? What is the register you write to?&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/62416/using-nrf5340-pdk-at-3-3v-instead-of-1-8v"&gt;Using nRF5340-PDK at 3.3V instead of 1.8V&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My question is, can I write a &lt;strong&gt;c code&lt;/strong&gt; to configure it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO can't be  controlled</title><link>https://devzone.nordicsemi.com/thread/497939?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 07:28:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71d1cf10-07fa-4856-bf78-4b68bceec0da</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will continue to help with this ticket.&lt;/p&gt;
[quote user="LanceTaiwan"]&amp;nbsp; &amp;nbsp; to config the GPIO to 3.3v.&amp;nbsp; My question is, how can I do this in c code?[/quote]
&lt;p&gt;What do you mean &amp;quot;config to 3.3v&amp;quot;?&lt;/p&gt;
&lt;p&gt;Do you mean that you will set it to output and high?&lt;/p&gt;
&lt;p&gt;Or to configure it as pull-up?&lt;/p&gt;
&lt;p&gt;Or to change its specific voltage level?&lt;/p&gt;
[quote user="LanceTaiwan"]&amp;nbsp; &amp;nbsp; #&amp;nbsp;&lt;span style="font-weight:400;"&gt;nrfjprog --family nrf53 --memwr 0x00FF8010 --val 5&lt;/span&gt;[/quote]
&lt;p&gt;How did you find this command? What is the register you write to?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO can't be  controlled</title><link>https://devzone.nordicsemi.com/thread/497909?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 03:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:808579c3-549e-415a-94c9-f00093769b40</guid><dc:creator>LanceTaiwan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Thanks for your support.&amp;nbsp; Now I can configure ALL gpio.&amp;nbsp; &amp;nbsp;The other question is, I can use&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; #&amp;nbsp;&lt;span style="font-weight:400;"&gt;nrfjprog --family nrf53 --memwr 0x00FF8010 --val 5&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; to config the GPIO to 3.3v.&amp;nbsp; My question is, how can I do this in c code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO can't be  controlled</title><link>https://devzone.nordicsemi.com/thread/497625?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2024 12:38:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5413c7f4-d343-4b9b-acf1-90c001dd17d8</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Some of the pins you are using are, by default, used by other peripherals.&lt;/p&gt;
&lt;p&gt;P0.22 is used by the UART0, P0.02 and P0.03 are used by NFC, and P0.30 is used by the coex interface.&lt;/p&gt;
&lt;p&gt;In order to use the NFC pins as GPIO, you must set CONFIG_NFCT_PINS_AS_GPIOS=y in your configuration, see &lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf7002_dk/page/UG/nrf7002_DK/hw_nfc_if.html"&gt;nrF7002 DK - NFC antenna interface&lt;/a&gt;. To use the other pins, you must disable UART and the coex interface. I would recommend checking the &lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf7002_dk/page/UG/nrf7002_DK/intro.html"&gt;nRF7002 DK hardware user guide&lt;/a&gt; and the board files to see which pins are already taken.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO can't be  controlled</title><link>https://devzone.nordicsemi.com/thread/497544?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2024 03:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3a198ab-b99e-44c4-8201-7ed5130158e0</guid><dc:creator>LanceTaiwan</dc:creator><description>&lt;p&gt;Sorry, I need to add more information&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:400;"&gt;I use nRF7002DK to develop my project and I add my code to the central_uart sample.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>