<?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: EzPort enter sequence  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642733#M38957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry but I don't remember the details but the complete code is available in the uTasker project (including a command line interface for testing) if you want to use or copy a working solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2017 18:02:14 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2017-02-16T18:02:14Z</dc:date>
    <item>
      <title>EzPort enter sequence</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642729#M38953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI!&lt;/P&gt;&lt;P&gt;I am trying to interface frdm-mkl43 with custom made MKV31 board via EzPort.&lt;/P&gt;&lt;P&gt;As I've read I have to pull reset down, pull CS down, pull up reset and after that I'll be in EzPort programming mode.&lt;/P&gt;&lt;P&gt;So I'm trying to read status reg(SPI set to slow speed):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; GPIO_DRV_ClearPinOutput(CS); //CS enable&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; GPIO_DRV_ClearPinOutput(RESET);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_DRV_SetPinOutput(RESET);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; *&amp;amp;spi_cnt=2; //3 symbolst to sent&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; if(SPI1_S&amp;amp;(1&amp;lt;&amp;lt;SPI_S_SPTEF_SHIFT )) SPI1_DL=0x05;&lt;BR /&gt;//&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; while(!(SPI1_S&amp;amp;(1&amp;lt;&amp;lt;SPI_S_SPTEF_SHIFT ))); SPI1_DL=0xBB;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; while(!(SPI1_S&amp;amp;(1&amp;lt;&amp;lt;SPI_S_SPTEF_SHIFT )));SPI1_DL=0x00;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; while(!(SPI1_S&amp;amp;(1&amp;lt;&amp;lt;SPI_S_SPTEF_SHIFT ))); SPI1_DL=0x00;&lt;/P&gt;&lt;P&gt;I got no answer from device. Logic analyzer and SCH are shown in attachment .&lt;/P&gt;&lt;P&gt;The board MKV31 working as it's supposed to-JTAG and other function are fine so it is not any issue with bad soldering or other physical stuff.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alexey.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 08:37:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642729#M38953</guid>
      <dc:creator>alexeyusoltsev</dc:creator>
      <dc:date>2017-02-16T08:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: EzPort enter sequence</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642730#M38954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;I've tried "bulk erase". Result is negative-my program is still inside the MCU.&lt;/P&gt;&lt;P&gt;Does EzPort enabled by default on MKV31 MCUs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 16:28:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642730#M38954</guid>
      <dc:creator>alexeyusoltsev</dc:creator>
      <dc:date>2017-02-16T16:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: EzPort enter sequence</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642731#M38955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may get some ideas from here:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTaskerEzPortCloner.pdf" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerEzPortCloner.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Professional support for Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Findex.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/index.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Remote desktop one-on-one coaching: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fservices.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/services.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Getting started to expert videos: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.youtube.com%2Fresults%3Fsearch_query%3Dutasker%2Bshorts" rel="nofollow" target="_blank"&gt;https://www.youtube.com/results?search_query=utasker+shorts&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 17:02:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642731#M38955</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-02-16T17:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: EzPort enter sequence</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642732#M38956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;Hi Mark,&lt;/P&gt;&lt;P&gt;Thanks for your fast response! I'll reprogram my KV31 ezport enable bit in the firmware and test it again.&lt;/P&gt;&lt;P&gt;CS-&amp;gt;0x6-&amp;gt;CS__CS-&amp;gt;0x05-0x00(dummy byte)-&amp;gt;CS Am I right to expect read non-zero answer after write a dummy bit if everything is ok with ezport?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: Checked FOPT security register-both EzPort and bulk erase allowed. Also tested connection point to pins connections one more time. Tomorrow I'll try to change polarity of SPI...dont belive a lot but will give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 17:44:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642732#M38956</guid>
      <dc:creator>alexeyusoltsev</dc:creator>
      <dc:date>2017-02-16T17:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: EzPort enter sequence</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642733#M38957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry but I don't remember the details but the complete code is available in the uTasker project (including a command line interface for testing) if you want to use or copy a working solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 18:02:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642733#M38957</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-02-16T18:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: EzPort enter sequence</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642734#M38958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like there are some steps missing to enter into EzPort mode, please kindly refer to the following for details.&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/15312iAFFAFF01FFD326D1/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;and you may refer to page 91 of &lt;A class="link-titled" href="http://cache.nxp.com/assets/documents/data/en/quick-start-guide/KQRUG.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1" title="http://cache.nxp.com/assets/documents/data/en/quick-start-guide/KQRUG.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1"&gt;http://cache.nxp.com/assets/documents/data/en/quick-start-guide/KQRUG.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1&lt;/A&gt;&amp;nbsp; for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 05:57:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642734#M38958</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2017-02-17T05:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: EzPort enter sequence</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642735#M38959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;Hello Kan_Li,&lt;/P&gt;&lt;P&gt;thanks for your response! I've read that pdf.&amp;nbsp; Well I can't see difference with my late logic analyzer screenshot:&lt;/P&gt;&lt;P&gt;it contains SPI+reset signal(chanell 4). Check it up. May be I still have some misunderstanding about cs-reset-cs sequence.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 08:51:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642735#M38959</guid>
      <dc:creator>alexeyusoltsev</dc:creator>
      <dc:date>2017-02-18T08:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: EzPort enter sequence</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642736#M38960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like SPI+RESET signals are not enough, the recommended process also polls the RSTOUT pin for determining when to enter the EzPort mode. Please kindly refer to the above code for details.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 05:05:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642736#M38960</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2017-02-20T05:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: EzPort enter sequence</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642737#M38961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;&amp;nbsp;&lt;STRONG&gt;EzPort entrance debug sequence:&lt;/STRONG&gt;&lt;/H1&gt;&lt;P&gt;&lt;STRONG&gt;-You need to connect following pins: &lt;/STRONG&gt;CS-&amp;gt;EzPORT_CS_b; MISO-&amp;gt;EZP_DO;MOSI-&amp;gt;EZP_DI;SCK-&amp;gt;EZP_CLK;GND-&amp;gt;GND;GPIO-&amp;gt;RESET(!!!same reset as in SWD);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-SPI settings:&lt;/STRONG&gt; As it mentioned in the RefMan CPOL=0, CPHA=0 or CPOL=1, CPHA=1 &lt;STRONG&gt;it does mean that it wil work only with CPOL=0, CPHA=0 or if CPU will not answer change it to CPOL=1, CPHA=1(&lt;/STRONG&gt;in my case 0-0 was not the case and it worked out &lt;STRONG&gt;only with 1-1&lt;/STRONG&gt;, watch attached file)&lt;/P&gt;&lt;P&gt;(code example: SPI1_C1|=SPI_C1_SPE(1)|SPI_C1_MSTR(1)|SPI_C1_SPIE(1)|SPI_C1_CPHA(0)|SPI_C1_CPOL(0); for 0-0 or SPI1_C1|=SPI_C1_SPE(1)|SPI_C1_MSTR(1)|SPI_C1_SPIE(1)|SPI_C1_CPHA(1)|SPI_C1_CPOL(1); for 1-1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Ezport entrance sequence is the following: CS_LOW-&amp;gt;RESET_LOW-&amp;gt;wait few uS-&amp;gt;REST_HIGH-&amp;gt;wait few uS-&amp;gt;CS_HIGH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check whether you succeed you have to send "write enable" command(0x06) followed by "read status register"(0x05). Watch attached file. If not answer-&amp;gt;change polarity of SPI. If not answer again-&amp;gt;check connection and FOPT register of target CPU(EzPort could be disabled but by default from manufaturer it is enabled)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;Check attached file.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 10:50:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/EzPort-enter-sequence/m-p/642737#M38961</guid>
      <dc:creator>alexeyusoltsev</dc:creator>
      <dc:date>2017-02-20T10:50:56Z</dc:date>
    </item>
  </channel>
</rss>

