<?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 [MKW01] Reset Pin as GPIO in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01-Reset-Pin-as-GPIO/m-p/742087#M45227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I need to use the RESET pin (PTA20) as a GPIO, so I saw I need to change the RESET_PIN_CFG field in the FTFA_FOPT.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11839iCBFE47061AEB59DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For what I have read I need to configure the FLASH with these new parameters in the linker file (.icf).&lt;/P&gt;&lt;P&gt;My question is, how do I configure the linker file to set these fields so I can use the RESET pin as a GPIO?&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;I'm working with IAR 7.5, and apparently its necessary to enable writing on theses protected areas, as saw in &lt;A href="https://community.nxp.com/thread/311660"&gt;Using IAR EWARM to program flash configuration field&lt;/A&gt;. This procedure is still correct?&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Attached is my linker file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;EDIT: OK, I've found this piece of assembly code in 'startup_MKW01Z4.s', which I believe its related:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="3.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16897i5BA79A12AFA0BC37/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.PNG" alt="3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm kind of afraid to change to wrong values and mess up my board. Anyone could confirm this?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2018 19:27:29 GMT</pubDate>
    <dc:creator>giancarlozanuz</dc:creator>
    <dc:date>2018-03-08T19:27:29Z</dc:date>
    <item>
      <title>[MKW01] Reset Pin as GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01-Reset-Pin-as-GPIO/m-p/742087#M45227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I need to use the RESET pin (PTA20) as a GPIO, so I saw I need to change the RESET_PIN_CFG field in the FTFA_FOPT.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11839iCBFE47061AEB59DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For what I have read I need to configure the FLASH with these new parameters in the linker file (.icf).&lt;/P&gt;&lt;P&gt;My question is, how do I configure the linker file to set these fields so I can use the RESET pin as a GPIO?&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;I'm working with IAR 7.5, and apparently its necessary to enable writing on theses protected areas, as saw in &lt;A href="https://community.nxp.com/thread/311660"&gt;Using IAR EWARM to program flash configuration field&lt;/A&gt;. This procedure is still correct?&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Attached is my linker file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;EDIT: OK, I've found this piece of assembly code in 'startup_MKW01Z4.s', which I believe its related:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="3.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16897i5BA79A12AFA0BC37/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.PNG" alt="3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm kind of afraid to change to wrong values and mess up my board. Anyone could confirm this?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 19:27:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01-Reset-Pin-as-GPIO/m-p/742087#M45227</guid>
      <dc:creator>giancarlozanuz</dc:creator>
      <dc:date>2018-03-08T19:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: [MKW01] Reset Pin as GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01-Reset-Pin-as-GPIO/m-p/742088#M45228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, now I found out. Following this post (&lt;A href="https://community.nxp.com/message/945721"&gt;https://community.nxp.com/message/945721&lt;/A&gt;&amp;nbsp;) I could see the bits needed to disable the RESET function. Here's the change in 'startup_MKW01Z4.s':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18673i7354D098027171DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.PNG" alt="4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for IAR its necessary to enable writing on theses bits, using the flag --enable_config_write (&lt;A href="https://community.nxp.com/thread/311660"&gt;Using IAR EWARM to program flash configuration field&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;Now it works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 18:57:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW01-Reset-Pin-as-GPIO/m-p/742088#M45228</guid>
      <dc:creator>giancarlozanuz</dc:creator>
      <dc:date>2018-03-12T18:57:23Z</dc:date>
    </item>
  </channel>
</rss>

