<?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中的主题 ...</title>
    <link>https://community.nxp.com/t5/S32K/unreadable-title/m-p/1010747#M6118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from Mail for Windows 10&lt;/P&gt;&lt;P&gt;I am trying to get the FIRC out to pb5 the following code compiles but traps on the highlighted statement when I try to right the pin mux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ port setup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	PTB -&amp;gt; PDDR	|= 0b10000;									//Set PORT B5 to an output register&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	PORTB-&amp;gt; PCR[0b100000] |= 0b10100000000; 				//set port function to 5 for clkout function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	SCG -&amp;gt;FIRCDIV |= 0b100000000;							//Set CLKDIV2 to Divide by 1&lt;/P&gt;&lt;P&gt;	SCG-&amp;gt; FIRCCSR |= 0b1001;								//Enable FIRC regulator and FIRC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	SIM-&amp;gt;CHIPCTL |= SIM_CHIPCTL_CLKOUTSEL(0b0110);			// select FIRC for input to clkout multiplexor&lt;/P&gt;&lt;P&gt;	SIM-&amp;gt;CHIPCTL |= SIM_CHIPCTL_CLKOUTDIV(0b101);			// set clkout divisor to 6 for 8MHz output&lt;/P&gt;&lt;P&gt;	SIM-&amp;gt;CHIPCTL |= SIM_CHIPCTL_CLKOUTEN(0b1);				// enable clkout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	int counter = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	for (;;) {&lt;/P&gt;&lt;P&gt;		counter++;&lt;/P&gt;&lt;P&gt;		counter %= COUNTER_LIMIT;&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to modify this line of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Feb 2020 15:05:09 GMT</pubDate>
    <dc:creator>jebartling</dc:creator>
    <dc:date>2020-02-11T15:05:09Z</dc:date>
    <item>
      <title>...</title>
      <link>https://community.nxp.com/t5/S32K/unreadable-title/m-p/1010747#M6118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from Mail for Windows 10&lt;/P&gt;&lt;P&gt;I am trying to get the FIRC out to pb5 the following code compiles but traps on the highlighted statement when I try to right the pin mux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ port setup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	PTB -&amp;gt; PDDR	|= 0b10000;									//Set PORT B5 to an output register&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	PORTB-&amp;gt; PCR[0b100000] |= 0b10100000000; 				//set port function to 5 for clkout function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	SCG -&amp;gt;FIRCDIV |= 0b100000000;							//Set CLKDIV2 to Divide by 1&lt;/P&gt;&lt;P&gt;	SCG-&amp;gt; FIRCCSR |= 0b1001;								//Enable FIRC regulator and FIRC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	SIM-&amp;gt;CHIPCTL |= SIM_CHIPCTL_CLKOUTSEL(0b0110);			// select FIRC for input to clkout multiplexor&lt;/P&gt;&lt;P&gt;	SIM-&amp;gt;CHIPCTL |= SIM_CHIPCTL_CLKOUTDIV(0b101);			// set clkout divisor to 6 for 8MHz output&lt;/P&gt;&lt;P&gt;	SIM-&amp;gt;CHIPCTL |= SIM_CHIPCTL_CLKOUTEN(0b1);				// enable clkout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	int counter = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	for (;;) {&lt;/P&gt;&lt;P&gt;		counter++;&lt;/P&gt;&lt;P&gt;		counter %= COUNTER_LIMIT;&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to modify this line of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 15:05:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/unreadable-title/m-p/1010747#M6118</guid>
      <dc:creator>jebartling</dc:creator>
      <dc:date>2020-02-11T15:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: ...</title>
      <link>https://community.nxp.com/t5/S32K/unreadable-title/m-p/1010748#M6119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the trap statement I get when single stepping through the code&lt;/P&gt;&lt;P&gt;Target has been RESET and is active.&lt;BR /&gt;BusFault: A precise (synchronous) data access error has occurred. &lt;BR /&gt;Possible BusFault location: 0x4004A014. &lt;BR /&gt;HardFault: A fault has been escalated to a hard fault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a s32k144 evb board&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 23:48:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/unreadable-title/m-p/1010748#M6119</guid>
      <dc:creator>jebartling</dc:creator>
      <dc:date>2020-02-11T23:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: ...</title>
      <link>https://community.nxp.com/t5/S32K/unreadable-title/m-p/1010749#M6120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to use below code for B5 pin setting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PCC-&amp;gt; PCCn[PCC_PORTB_INDEX] = PCC_PCCn_CGC_MASK; /* Clock for PORT B */&lt;BR /&gt;PORTB-&amp;gt;PCR[5] = PORT_PCR_MUX(5);&amp;nbsp; /* Port B5:&amp;nbsp; MUX = ALT5, CLKOUT */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 08:20:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/unreadable-title/m-p/1010749#M6120</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2020-02-12T08:20:53Z</dc:date>
    </item>
  </channel>
</rss>

