<?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>topic Bug in  Peripheral tool (SPI config) in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Bug-in-Peripheral-tool-SPI-config/m-p/2342362#M57617</link>
    <description>&lt;P&gt;There is a bug in the peripheral tool when configuring the SPI peripheral with no easy work around. This issue has been there in previous releases of the S32DS IDE but I am reporting it against v 3.6.6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCU: S32K148 in 144 pin package&lt;/P&gt;&lt;P&gt;Host OS: Windows 11&lt;/P&gt;&lt;P&gt;IDE: S32DS 3.6.6&lt;/P&gt;&lt;P&gt;Embedded OS: Bare metal&lt;/P&gt;&lt;P&gt;Driver model: Non-autosar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The MCU has 3 SPI interfaces but the IDE shows a drop down of up to 5. Please see screenshot below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If any of the last 2 are selected, the IDE goes into an unrecoverable error mode with exceptions thrown all around and blank screens. At that point the only way to recover the project is to either recreate it from scratch or restore it from a backup such as git checkout.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Mar 2026 18:29:32 GMT</pubDate>
    <dc:creator>durga_choudhury</dc:creator>
    <dc:date>2026-03-30T18:29:32Z</dc:date>
    <item>
      <title>Bug in  Peripheral tool (SPI config)</title>
      <link>https://community.nxp.com/t5/S32K/Bug-in-Peripheral-tool-SPI-config/m-p/2342362#M57617</link>
      <description>&lt;P&gt;There is a bug in the peripheral tool when configuring the SPI peripheral with no easy work around. This issue has been there in previous releases of the S32DS IDE but I am reporting it against v 3.6.6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCU: S32K148 in 144 pin package&lt;/P&gt;&lt;P&gt;Host OS: Windows 11&lt;/P&gt;&lt;P&gt;IDE: S32DS 3.6.6&lt;/P&gt;&lt;P&gt;Embedded OS: Bare metal&lt;/P&gt;&lt;P&gt;Driver model: Non-autosar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The MCU has 3 SPI interfaces but the IDE shows a drop down of up to 5. Please see screenshot below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If any of the last 2 are selected, the IDE goes into an unrecoverable error mode with exceptions thrown all around and blank screens. At that point the only way to recover the project is to either recreate it from scratch or restore it from a backup such as git checkout.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 18:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Bug-in-Peripheral-tool-SPI-config/m-p/2342362#M57617</guid>
      <dc:creator>durga_choudhury</dc:creator>
      <dc:date>2026-03-30T18:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in  Peripheral tool (SPI config)</title>
      <link>https://community.nxp.com/t5/S32K/Bug-in-Peripheral-tool-SPI-config/m-p/2342406#M57619</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/250000"&gt;@durga_choudhury&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The image seems to be missing, could you upload it again so I can better understand the situation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, VaneB&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 21:41:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Bug-in-Peripheral-tool-SPI-config/m-p/2342406#M57619</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2026-03-30T21:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in  Peripheral tool (SPI config)</title>
      <link>https://community.nxp.com/t5/S32K/Bug-in-Peripheral-tool-SPI-config/m-p/2343096#M57643</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spi1.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/380956i04389B2D6EB94096/image-size/medium?v=v2&amp;amp;px=400" role="button" title="spi1.png" alt="spi1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; The above is a screenshot on how to reproduce it. And a screenshot of what happens is below. After this happens, the only way to recover is to kill and restart the IDE and restore the project from a backup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 13:42:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Bug-in-Peripheral-tool-SPI-config/m-p/2343096#M57643</guid>
      <dc:creator>durga_choudhury</dc:creator>
      <dc:date>2026-03-31T13:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in  Peripheral tool (SPI config)</title>
      <link>https://community.nxp.com/t5/S32K/Bug-in-Peripheral-tool-SPI-config/m-p/2343181#M57648</link>
      <description>&lt;P&gt;Another way to reproduce the issue is:&lt;/P&gt;&lt;P&gt;1. Create a project with multiple SPIPhyUnits&lt;/P&gt;&lt;P&gt;2. Delete one that is not the last one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the screen shot as an example&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 17:25:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Bug-in-Peripheral-tool-SPI-config/m-p/2343181#M57648</guid>
      <dc:creator>durga_choudhury</dc:creator>
      <dc:date>2026-03-31T17:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in  Peripheral tool (SPI config)</title>
      <link>https://community.nxp.com/t5/S32K/Bug-in-Peripheral-tool-SPI-config/m-p/2343216#M57650</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/250000"&gt;@durga_choudhury&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for sharing the images along with the additional information.&lt;/P&gt;
&lt;P&gt;As you may know, the SpiHWUnit parameter is related to the number of SpiPhyUnits. The order in which the SpiPhyUnits are added determines the CSIB index used. For example, SpiPhyUnit_0 corresponds to CSIB0.&lt;/P&gt;
&lt;P&gt;The reason why the SpiHWUnit dropdown shows a list of five options is that this reused the configuration from the MCAL SPI driver. In the MCAL implementation, you can configure both the LPSPI hardware and the SPI interface emulated through FlexIO. In contrast, the IP-level configuration separates these into two different drivers: Lpspi and Flexio_Spi. You can confirm this by comparing the SpiPhyUnitMapping dropdown in both SPI and Lpspi drivers.&lt;/P&gt;
&lt;P&gt;Lastly, regarding the two errors shown&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Error occurs when, for example, you create two SpiPhyUnits and assign them to specific SpiExternalDevices, but later delete one of the SpiPhyUnits without removing the corresponding SpiExternalDevice. ConfigTools then reports an error because a required referenced configuration no longer exists.&lt;/LI&gt;
&lt;LI&gt;As you mentioned, the S32K148 device contains only three LPSPI instances. If you select CSIB3 or CSIB4 in the SpiHWUnit parameter within the IP driver, the tool will fail because these entries correspond to configurations intended for the FlexIO‑emulated SPI, which is not integrated in this driver, as explained earlier.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 31 Mar 2026 18:39:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Bug-in-Peripheral-tool-SPI-config/m-p/2343216#M57650</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2026-03-31T18:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in  Peripheral tool (SPI config)</title>
      <link>https://community.nxp.com/t5/S32K/Bug-in-Peripheral-tool-SPI-config/m-p/2343223#M57651</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the clarification. This is similar to what I thought it would be, except I'd expect it to gracefully show an error as some other configuration inconsistencies show instead of crashing with an 'internal error'.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 18:45:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Bug-in-Peripheral-tool-SPI-config/m-p/2343223#M57651</guid>
      <dc:creator>durga_choudhury</dc:creator>
      <dc:date>2026-03-31T18:45:57Z</dc:date>
    </item>
  </channel>
</rss>

