<?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 S32K OSC clock is not valid in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K-OSC-clock-is-not-valid/m-p/1076724#M7514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have now custom hw board with S32K148, we don't have crystall oscillator neither external clock.&amp;nbsp;&lt;/P&gt;&lt;P&gt;and problem is that the code got stuck in :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hello_world_s32k144 : in this example the code get stuck at&amp;nbsp;&lt;/P&gt;&lt;P&gt;while(!(SCG-&amp;gt;SOSCCSR &amp;amp; SCG_SOSCCSR_SOSCVLD_MASK)); /* Wait for sys OSC clk valid */&lt;/P&gt;&lt;P&gt;and it is running forever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or status= timeout in SDK examples, Clock_sys_ConfigureSOSC(), also same line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. is it possible to not use a crystal oscillator?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Why in the custom hw, i needed to enable the clock to the peripherals i will use, at the time i didn't have to do this in NXP EVBs?&amp;nbsp; PCC_SetClockMode(PCC, PCC_PORTA_CLOCK, true);&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Now i&amp;nbsp;disabled the SOSC and changed system clock source to FIRC_CLK instead of SPLL, is what i did correct?&lt;/P&gt;&lt;P&gt;please see the attached screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Nader&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2020 10:13:59 GMT</pubDate>
    <dc:creator>naderkhamess</dc:creator>
    <dc:date>2020-06-22T10:13:59Z</dc:date>
    <item>
      <title>S32K OSC clock is not valid</title>
      <link>https://community.nxp.com/t5/S32K/S32K-OSC-clock-is-not-valid/m-p/1076724#M7514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have now custom hw board with S32K148, we don't have crystall oscillator neither external clock.&amp;nbsp;&lt;/P&gt;&lt;P&gt;and problem is that the code got stuck in :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hello_world_s32k144 : in this example the code get stuck at&amp;nbsp;&lt;/P&gt;&lt;P&gt;while(!(SCG-&amp;gt;SOSCCSR &amp;amp; SCG_SOSCCSR_SOSCVLD_MASK)); /* Wait for sys OSC clk valid */&lt;/P&gt;&lt;P&gt;and it is running forever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or status= timeout in SDK examples, Clock_sys_ConfigureSOSC(), also same line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. is it possible to not use a crystal oscillator?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Why in the custom hw, i needed to enable the clock to the peripherals i will use, at the time i didn't have to do this in NXP EVBs?&amp;nbsp; PCC_SetClockMode(PCC, PCC_PORTA_CLOCK, true);&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Now i&amp;nbsp;disabled the SOSC and changed system clock source to FIRC_CLK instead of SPLL, is what i did correct?&lt;/P&gt;&lt;P&gt;please see the attached screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Nader&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 10:13:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-OSC-clock-is-not-valid/m-p/1076724#M7514</guid>
      <dc:creator>naderkhamess</dc:creator>
      <dc:date>2020-06-22T10:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32K OSC clock is not valid</title>
      <link>https://community.nxp.com/t5/S32K/S32K-OSC-clock-is-not-valid/m-p/1076725#M7515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Yes, you can configure the clock according to your needs and your HW requirements. The example &lt;EM style="background-color: #ffffff; color: #51626f; "&gt;hello_world_s32k144&amp;nbsp;&lt;/EM&gt;&amp;nbsp;is just an example and shows you possible settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I'm not sure if I understand your question. You should always enable a clock for a port that you want to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Yes, the clock setting can be set as you did it.&lt;/P&gt;&lt;P&gt;Also, please, do not forget to generate processor expert code in the main menu Project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 09:18:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-OSC-clock-is-not-valid/m-p/1076725#M7515</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-06-23T09:18:37Z</dc:date>
    </item>
  </channel>
</rss>

