<?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: USB K22 flash  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-K22-flash/m-p/740942#M45152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must give the USB master the correct Flash access privilege - see the &lt;STRONG&gt;FMC_PFAPR&lt;/STRONG&gt; (&amp;nbsp;Flash Access Protection Register) .&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;BR /&gt;&lt;EM style="color: #3366ff;"&gt;uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="color: #3366ff;"&gt;&lt;SPAN&gt;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%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2018 20:27:01 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2018-05-31T20:27:01Z</dc:date>
    <item>
      <title>USB K22 flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-K22-flash/m-p/740941#M45151</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'm sending some data&amp;nbsp;via USB on&amp;nbsp;MK22FN512 by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USB_DeviceSendRequest(handle, ep, buffer, length);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If buffer is pointing to chip's flash area then the other doesn't receive correct data. If I move buffer to SRAM, then correct data passes through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything I have to do to be able to send data from flash via USB?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 19:31:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-K22-flash/m-p/740941#M45151</guid>
      <dc:creator>martindusek</dc:creator>
      <dc:date>2018-05-31T19:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: USB K22 flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-K22-flash/m-p/740942#M45152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must give the USB master the correct Flash access privilege - see the &lt;STRONG&gt;FMC_PFAPR&lt;/STRONG&gt; (&amp;nbsp;Flash Access Protection Register) .&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;BR /&gt;&lt;EM style="color: #3366ff;"&gt;uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="color: #3366ff;"&gt;&lt;SPAN&gt;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%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 20:27:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-K22-flash/m-p/740942#M45152</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-05-31T20:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: USB K22 flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-K22-flash/m-p/740943#M45153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;thanks. I can see that privileges can be set for Master 0, 1 and 2 in PFAPR on &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;MK22FN512&lt;/SPAN&gt;. But USB is Master 4. So it is still unclear for me what to set...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 08:33:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-K22-flash/m-p/740943#M45153</guid>
      <dc:creator>martindusek</dc:creator>
      <dc:date>2018-06-01T08:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: USB K22 flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-K22-flash/m-p/740944#M45154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your device you need&lt;/P&gt;&lt;P&gt;FMC_PFAPR |= FMC_PFAPR_M4AP_RD;&lt;BR /&gt;which is&lt;/P&gt;&lt;P&gt;FMC_PFAPR |= 0x00000100;&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>Fri, 01 Jun 2018 11:50:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-K22-flash/m-p/740944#M45154</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-06-01T11:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: USB K22 flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-K22-flash/m-p/740945#M45155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, thanks. Then, there is a mistake in&amp;nbsp;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/reference-manual/K22P121M120SF7RM.pdf" title="https://www.nxp.com/docs/en/reference-manual/K22P121M120SF7RM.pdf"&gt;https://www.nxp.com/docs/en/reference-manual/K22P121M120SF7RM.pdf&lt;/A&gt;&amp;nbsp;, page 600. M4AP field is not there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 19:15:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-K22-flash/m-p/740945#M45155</guid>
      <dc:creator>martindusek</dc:creator>
      <dc:date>2018-06-01T19:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: USB K22 flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-K22-flash/m-p/740946#M45156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have always worked with Rev. 3, 7/2014 version which shows it:&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/61507iADF18B32ADBEA025/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;The NXP version Rev. 4, 8/2016&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/61510iB135692B4C517023/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;removes the fields to control masters 3 and above.&lt;/P&gt;&lt;P&gt;There are masters 0, 1, 2 and &lt;STRONG&gt;4&lt;/STRONG&gt; according to the latest Crossbar switch diagram:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61511iCBE8353FB64BC347/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and so I believe that it is a documentation error. Probably the flags were cleaned up since there are no M3, M5, M6 or M7 masters but the M4 master was also &lt;SPAN style="text-decoration: underline;"&gt;deleted by mistake&lt;/SPAN&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 20:43:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-K22-flash/m-p/740946#M45156</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-06-01T20:43:46Z</dc:date>
    </item>
  </channel>
</rss>

