<?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>S32KのトピックWhy SPI become abnormal when we runtime trim LPO clock in S32K148</title>
    <link>https://community.nxp.com/t5/S32K/Why-SPI-become-abnormal-when-we-runtime-trim-LPO-clock-in/m-p/1788655#M30650</link>
    <description>&lt;P&gt;Hello, NXP support team&lt;/P&gt;&lt;P&gt;Our system have a s32k148 mcu and a SoC, MCU and SoC communication by SPI, SoC is master and MCU is slave.&lt;/P&gt;&lt;P&gt;Now we open MCU internal RTC and assign the clock as 1Khz LPO, but the clock is not accuracy, so we "runtime" adjust the trim value of LPO.&lt;/P&gt;&lt;P&gt;If the MCU need to adjust the trim value, it will call CLOCK_SYS_UpdateConfiguration&lt;BR /&gt;clockMan1_InitConfig0.pmcConfig.lpoClockConfig.trimValue = lpo_clock_trim_value;&lt;BR /&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;/P&gt;&lt;P&gt;Sometimes after the MCU update the trim value, the SoC's SPI driver will crash.&lt;/P&gt;&lt;P&gt;MCU is SPI slave, so it will use the clock from master, why the MCU change LPO clock will let SPI crash?&lt;/P&gt;&lt;P&gt;What relationship between LPO clock and SPI?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2024 08:50:28 GMT</pubDate>
    <dc:creator>Ferty</dc:creator>
    <dc:date>2024-01-15T08:50:28Z</dc:date>
    <item>
      <title>Why SPI become abnormal when we runtime trim LPO clock in S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Why-SPI-become-abnormal-when-we-runtime-trim-LPO-clock-in/m-p/1788655#M30650</link>
      <description>&lt;P&gt;Hello, NXP support team&lt;/P&gt;&lt;P&gt;Our system have a s32k148 mcu and a SoC, MCU and SoC communication by SPI, SoC is master and MCU is slave.&lt;/P&gt;&lt;P&gt;Now we open MCU internal RTC and assign the clock as 1Khz LPO, but the clock is not accuracy, so we "runtime" adjust the trim value of LPO.&lt;/P&gt;&lt;P&gt;If the MCU need to adjust the trim value, it will call CLOCK_SYS_UpdateConfiguration&lt;BR /&gt;clockMan1_InitConfig0.pmcConfig.lpoClockConfig.trimValue = lpo_clock_trim_value;&lt;BR /&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;/P&gt;&lt;P&gt;Sometimes after the MCU update the trim value, the SoC's SPI driver will crash.&lt;/P&gt;&lt;P&gt;MCU is SPI slave, so it will use the clock from master, why the MCU change LPO clock will let SPI crash?&lt;/P&gt;&lt;P&gt;What relationship between LPO clock and SPI?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 08:50:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Why-SPI-become-abnormal-when-we-runtime-trim-LPO-clock-in/m-p/1788655#M30650</guid>
      <dc:creator>Ferty</dc:creator>
      <dc:date>2024-01-15T08:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why SPI become abnormal when we runtime trim LPO clock in S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Why-SPI-become-abnormal-when-we-runtime-trim-LPO-clock-in/m-p/1789005#M30672</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228157"&gt;@Ferty&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you share some information about your project? Which SoC are you utilizing as master? Is the slave MCU using an example from the SDK package?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to be sure, you are using the SoC as master, and when the MCU changes LPO clock, the master's SPI driver crashes? Have you tried disabling the SPI module while the MCU changes the LPO clock just so the LPO configuration does not affect it?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;
&lt;P lang="es-MX"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 23:10:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Why-SPI-become-abnormal-when-we-runtime-trim-LPO-clock-in/m-p/1789005#M30672</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-01-15T23:10:05Z</dc:date>
    </item>
    <item>
      <title>回复： Why SPI become abnormal when we runtime trim LPO clock in S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Why-SPI-become-abnormal-when-we-runtime-trim-LPO-clock-in/m-p/1790644#M30789</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, NXP support team&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sorry, it is our mistake. It is because we call this function&amp;nbsp;CLOCK_SYS_UpdateConfiguration() to trim LPO. And this function will re-initiate SIRC and affect SPI connection. I think it is root cause. Thanks for your help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 02:04:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Why-SPI-become-abnormal-when-we-runtime-trim-LPO-clock-in/m-p/1790644#M30789</guid>
      <dc:creator>Ferty</dc:creator>
      <dc:date>2024-01-18T02:04:16Z</dc:date>
    </item>
  </channel>
</rss>

