<?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>Image booted by custom child image cannot control GPIOs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94368/image-booted-by-custom-child-image-cannot-control-gpios</link><description>I have developed an image based on the AWS IoT example which runs on a custom board. The custom overlay exposes some additional UARTs, LEDs, buttons, etc. in custom pin locations and removes things we don&amp;#39;t need. Everything in our application image works</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Dec 2022 03:47:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94368/image-booted-by-custom-child-image-cannot-control-gpios" /><item><title>RE: Image booted by custom child image cannot control GPIOs</title><link>https://devzone.nordicsemi.com/thread/400042?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 03:47:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3f5e44d-7a22-400e-bc4f-bedc0d245eaf</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Thank you for the information.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Image booted by custom child image cannot control GPIOs</title><link>https://devzone.nordicsemi.com/thread/399777?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 19:34:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b27f42b1-d5f7-4c07-afe1-04efb1bd89bd</guid><dc:creator>devincmurphy7</dc:creator><description>&lt;p&gt;I was finally able to dig into this some more. It turns out that I was incorrect in stating that my application image could not control GPIOs, truly my application image could not control 4 specific GPIOs where two of those happen to be on LEDs on my custom board. The issue was actually with UART1 being a secure peripheral used by TF-M and the default pinctrl settings using two of my LED GPIOs for RTS and CTS. My application cannot use those GPIOs because they have been assigned to a secure peripheral.... even though it seems like TF-M doesn&amp;#39;t even use flow control since there is not a corresponding CONFIG_TFM_UART1_CTS_PIN or CONFIG_TFM_UART1_RTS_PIN...&lt;/p&gt;
&lt;p&gt;Anyways, the solutions to my problem appear to include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Custom overlay changes
&lt;ul&gt;
&lt;li&gt;Add new pinctrl definitions for uart1 and uart1_sleep which do not define RTS and CTS pins or defines them as pins I am not using&lt;/li&gt;
&lt;li&gt;Add uart1 configuration which re-defines pinctrl-0 and pinctrl-1 with the definitions from above&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Simply building with CONFIG_TFM_LOG_LEVEL_SILENCE&lt;span&gt;=y in the prj.conf or config fragment seems to release all GPIOs that would otherwise be assigned to UART1&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Image booted by custom child image cannot control GPIOs</title><link>https://devzone.nordicsemi.com/thread/398535?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 12:52:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06b627e2-9130-4f8e-8e72-1f7c5e084204</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Do you know what have you configured differently from the default sample?&lt;/p&gt;
&lt;p&gt;Do you have any logs or anything?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>