<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Zephyr ProjectのトピックRe: Failures with GPIO and RTC after Zephyr project enabled TF-M with PROFILE_MEDIUM</title>
    <link>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2323057#M621</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247187"&gt;@ClarkS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your detailed description.&lt;/P&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;## Known Findings&lt;/P&gt;
&lt;P&gt;1. **BusFault when reading AHBSC**: Non-secure code triggers immediate BusFault (BFAR: 0x400AC1D0) when attempting to read AHBSC controller registers&lt;BR /&gt;- This proves: At ISOLATION_LEVEL=2, NS is completely locked out from peripheral access verification&lt;BR /&gt;- AHBSC controller itself is in secure-protected memory space&lt;/P&gt;
&lt;P&gt;2. **GPIO still doesn't work**: Even if AHBSC configuration is happening in secure world (which we can't v_erify), NS GPIO remains non-functional&lt;/P&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;According to the&amp;nbsp;MCX Nx4x Reference Manual&amp;nbsp;73.1.2&lt;BR /&gt;Security considerations&lt;/P&gt;
&lt;DIV id="tinyMceEditorHarry_Zhang_2" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Each GPIO module is also instantiated to use two module slots (for example, GPIO0 and GPIO0_alias).&lt;/P&gt;
&lt;P&gt;At the Secure AHB controller, one slot can be configured for secure access while the other is configured for non-secure access.&lt;/P&gt;
&lt;P&gt;The GPIO module implements Access protection that can be used to configure secure/non-secure and privileged/non-privileged access on a per pin basis&lt;/P&gt;
&lt;P&gt;I think the following links are helpful to you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/zephyrproject-rtos/zephyr/issues/88521" target="_blank"&gt;NXP MCXN947 CPU1 cannot control GPIO · Issue #88521 · zephyrproject-rtos/zephyr&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/zephyrproject-rtos/zephyr/pull/88523" target="_blank"&gt;NXP MCXN947 CPU1 cannot control GPIO · Issue #88521 · zephyrproject-rtos/zephyr&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/td-p/2250120" target="_blank"&gt;MCXN947 failed to control GPIO in slave core (CPU1)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
    <pubDate>Thu, 26 Feb 2026 09:32:01 GMT</pubDate>
    <dc:creator>Harry_Zhang</dc:creator>
    <dc:date>2026-02-26T09:32:01Z</dc:date>
    <item>
      <title>Failures with GPIO and RTC after Zephyr project enabled TF-M with PROFILE_MEDIUM</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2321552#M617</link>
      <description>&lt;P&gt;Attached is a zip of a simple VSCode / NXP MCUXpresso Zephyr project which demonstrates GPIO and RTC failures after enabling TF-M with&amp;nbsp;PROFILE_MEDIUM at ISOLATION_LEVEL=2.&lt;BR /&gt;&lt;BR /&gt;The project contains a simple overlay MCXN947 overlay file, a simple prj.conf file, and a couple simple c files. When the project reaches boot, zephyr has already configured TF-M. At boot the project attempts to toggle a couple GPIO. The code appears to work, no errors are thrown, but a logic analyzer shows the pins are not toggling. After that it prints some console messages with the time from the RTC. The time properly advances as it should however if the board is reset, the time is lost and starts at zero again. The RTC did not survive a reset.&lt;BR /&gt;&lt;BR /&gt;If the TF-M configuration is removed and the project is changed to a simple zephyr non TF-M project, the GPIO and RTC will work as expected. The flash and debug process also work as expected.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It is my hypothesis that the AHBSC controller is not configured properly and does not allow GPIO or the RTC to operate with non-secure code.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Another problem of lesser severity is that I have been unable to configure launch.json to properly flash and then debug main.c or other non-secure code.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am using Zephyr 4.3.99...the latest zephyr version. VSCode and MCUXpresso are both up to date.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 01:11:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2321552#M617</guid>
      <dc:creator>ClarkS</dc:creator>
      <dc:date>2026-02-24T01:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Failures with GPIO and RTC after Zephyr project enabled TF-M with PROFILE_MEDIUM</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2322403#M618</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247187"&gt;@ClarkS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share your code?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 09:04:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2322403#M618</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-02-25T09:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Failures with GPIO and RTC after Zephyr project enabled TF-M with PROFILE_MEDIUM</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2322608#M619</link>
      <description>&lt;P&gt;I had a zip of my project attached to the original post but it seems to have been deleted. I'll try again.&lt;BR /&gt;&lt;BR /&gt;Nope zip is not supported. I'll try to attach the raw source files. You can take them and make your own project. Since there is a 5 file limit, I'll try to send them in two replies.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;THANK YOU for looking at this. This problem is a show stopper for me and I also think it might be a big problem for others also.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 16:15:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2322608#M619</guid>
      <dc:creator>ClarkS</dc:creator>
      <dc:date>2026-02-25T16:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Failures with GPIO and RTC after Zephyr project enabled TF-M with PROFILE_MEDIUM</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2322612#M620</link>
      <description>&lt;P&gt;Additional files below. If there is a way to send the project, let me know.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 16:20:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2322612#M620</guid>
      <dc:creator>ClarkS</dc:creator>
      <dc:date>2026-02-25T16:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Failures with GPIO and RTC after Zephyr project enabled TF-M with PROFILE_MEDIUM</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2323057#M621</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247187"&gt;@ClarkS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your detailed description.&lt;/P&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;## Known Findings&lt;/P&gt;
&lt;P&gt;1. **BusFault when reading AHBSC**: Non-secure code triggers immediate BusFault (BFAR: 0x400AC1D0) when attempting to read AHBSC controller registers&lt;BR /&gt;- This proves: At ISOLATION_LEVEL=2, NS is completely locked out from peripheral access verification&lt;BR /&gt;- AHBSC controller itself is in secure-protected memory space&lt;/P&gt;
&lt;P&gt;2. **GPIO still doesn't work**: Even if AHBSC configuration is happening in secure world (which we can't v_erify), NS GPIO remains non-functional&lt;/P&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;According to the&amp;nbsp;MCX Nx4x Reference Manual&amp;nbsp;73.1.2&lt;BR /&gt;Security considerations&lt;/P&gt;
&lt;DIV id="tinyMceEditorHarry_Zhang_2" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Each GPIO module is also instantiated to use two module slots (for example, GPIO0 and GPIO0_alias).&lt;/P&gt;
&lt;P&gt;At the Secure AHB controller, one slot can be configured for secure access while the other is configured for non-secure access.&lt;/P&gt;
&lt;P&gt;The GPIO module implements Access protection that can be used to configure secure/non-secure and privileged/non-privileged access on a per pin basis&lt;/P&gt;
&lt;P&gt;I think the following links are helpful to you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/zephyrproject-rtos/zephyr/issues/88521" target="_blank"&gt;NXP MCXN947 CPU1 cannot control GPIO · Issue #88521 · zephyrproject-rtos/zephyr&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/zephyrproject-rtos/zephyr/pull/88523" target="_blank"&gt;NXP MCXN947 CPU1 cannot control GPIO · Issue #88521 · zephyrproject-rtos/zephyr&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/td-p/2250120" target="_blank"&gt;MCXN947 failed to control GPIO in slave core (CPU1)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 09:32:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2323057#M621</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-02-26T09:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Failures with GPIO and RTC after Zephyr project enabled TF-M with PROFILE_MEDIUM</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2329312#M624</link>
      <description>&lt;P&gt;I have been continuing to work on this with no success. I am preparing a reply to you with more information and a request for further help. I'll post it tomorrow.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 00:38:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2329312#M624</guid>
      <dc:creator>ClarkS</dc:creator>
      <dc:date>2026-03-10T00:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Failures with GPIO and RTC after Zephyr project enabled TF-M with PROFILE_MEDIUM</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2341280#M637</link>
      <description>&lt;P&gt;I am still unable to get GPIO to work after configuring zephyr to implement TF-M. I have attempted to modify the blinky app &amp;nbsp;by adding TF-M and when I do, the LED no longer flashes.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please provide a modification of the blinky sample app which simply enables TF-M. Ideally it should implement the best method of adjusting the AHBSC, SYSCON, and GPIO registers so as to enable GPIO.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is modifying target_cfg.c the only way to adjust these registers before main is executed? I hope there is a better method because I don’t like modifying my zephyr repo.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 14:12:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Failures-with-GPIO-and-RTC-after-Zephyr-project-enabled-TF-M/m-p/2341280#M637</guid>
      <dc:creator>ClarkS</dc:creator>
      <dc:date>2026-03-27T14:12:59Z</dc:date>
    </item>
  </channel>
</rss>

