<?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 Re: S32K GPIO initialization  in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K-GPIO-initialization/m-p/902256#M3193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/cg0"&gt;cg0&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, the GPIO blocks do not have the option to set an initial value. If you need this, in our current release you can add a subsystem you call only once in the beginning (controlled by a flag variable) in which you can use the GPO block and set it to the desired value. We'll take this feedback under consideration and we'll most likely add this option in the block itself in our next release (which will come out this summer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for sharing your thoughts!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2019 07:32:08 GMT</pubDate>
    <dc:creator>constantinrazva</dc:creator>
    <dc:date>2019-04-22T07:32:08Z</dc:date>
    <item>
      <title>S32K GPIO initialization</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K-GPIO-initialization/m-p/902255#M3192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;S32K GPIO initialization&amp;nbsp;is better add a initValue setting when configure as a output.&lt;/P&gt;&lt;P&gt;when initialize a pin as ouput, it can't definet the initialize output level, but search from the generated code, there do have a&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;initValue&amp;nbsp;variable, but it did't use.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2019 07:37:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K-GPIO-initialization/m-p/902255#M3192</guid>
      <dc:creator>cg0</dc:creator>
      <dc:date>2019-04-20T07:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32K GPIO initialization</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K-GPIO-initialization/m-p/902256#M3193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/cg0"&gt;cg0&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, the GPIO blocks do not have the option to set an initial value. If you need this, in our current release you can add a subsystem you call only once in the beginning (controlled by a flag variable) in which you can use the GPO block and set it to the desired value. We'll take this feedback under consideration and we'll most likely add this option in the block itself in our next release (which will come out this summer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for sharing your thoughts!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 07:32:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K-GPIO-initialization/m-p/902256#M3193</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-04-22T07:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: S32K GPIO initialization</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K-GPIO-initialization/m-p/902257#M3194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/cg0"&gt;cg0&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must add the following: if you need to add any block to the initialization function (called once at the beginning), you can use the standard Simulink block&lt;STRONG&gt;&amp;nbsp;&lt;EM&gt;Initialize Function&lt;/EM&gt;&lt;/STRONG&gt;. You can find it by typing "Initialize" in the model, then selecting it, or from the Simulink library browser (slLibraryBrowser) - under &lt;STRONG&gt;Simulink/User-Defined Functions&lt;/STRONG&gt;. You can put inside this special subsystem the GPIO output block, with the constant you need to set in the initialization. You can delete the state writer that comes with the standard block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;View from Top model - Initialize subsystem:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80937i39B2D83F8AF99886/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;View from inside the Initialize subsystem:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80938i69197AB9B4EC5A88/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: You'll most likely have to set &lt;STRONG&gt;"Unspecified initialization detection&lt;/STRONG&gt;" to "&lt;STRONG&gt;Simplified&lt;/STRONG&gt;" - for the model to build. You will get an error otherwise.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80934iC874B2723ECB7BC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 12:52:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K-GPIO-initialization/m-p/902257#M3194</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-04-25T12:52:11Z</dc:date>
    </item>
  </channel>
</rss>

