<?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>Kinetis MicrocontrollersのトピックRe: K81/82 USB accessing Flash area</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K81-82-USB-accessing-Flash-area/m-p/658829#M40403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohamed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just need to set your access, I don't see anything that is missing.&amp;nbsp; I set String descriptors in flash and I enable the flash read access to USB, and it works in my side but maybe the error is in the descriptors, how you set them in flash? could you verify that they are property set in this are?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;APP_init&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cdc_config_struct_t cdc_config&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FMC&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;PFAPR &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;FMC_PFAPR_M3AP&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x03&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cdc_config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;cdc_application_callback&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;callback &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; USB_App_Device_Callback&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cdc_config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;cdc_application_callback&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arg &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;g_app_handle&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2017 23:35:28 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2017-02-06T23:35:28Z</dc:date>
    <item>
      <title>K81/82 USB accessing Flash area</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K81-82-USB-accessing-Flash-area/m-p/658826#M40400</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;I am using K81 / K82 MCUs and got the USB CCID interface working. If I move the USB descriptors to flash area, then USB enumeration fails. I have tried the following but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Disable MPU. All accesses from all bus masters are allowed now. */&lt;BR /&gt; MPU_CESR = (0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Set read access for USB master #3&lt;/P&gt;&lt;P&gt;FMC_PFAPR |= FMC_PFAPR_M3AP(01); &amp;nbsp; // USB is master #3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// USB master 3 is trusted for read access&lt;/P&gt;&lt;P&gt;AIPS0_MPRA |= AIPS_MPRA_MTR3(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything I am missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Ismail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 15:49:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K81-82-USB-accessing-Flash-area/m-p/658826#M40400</guid>
      <dc:creator>izmile</dc:creator>
      <dc:date>2017-01-31T15:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: K81/82 USB accessing Flash area</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K81-82-USB-accessing-Flash-area/m-p/658827#M40401</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;Verify that &lt;STRONG&gt;FMC_PFAPR_M3AP(01); &amp;nbsp; // USB is master #3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;gives &lt;STRONG&gt;0x00000040&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro is not transparent and so the value may be incorrect (?)&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>Tue, 31 Jan 2017 21:41:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K81-82-USB-accessing-Flash-area/m-p/658827#M40401</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-31T21:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: K81/82 USB accessing Flash area</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K81-82-USB-accessing-Flash-area/m-p/658828#M40402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the macro&amp;nbsp;FMC_PFAPR_M3AP(01) set the bits properly.&amp;nbsp;I do some more digging around.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 16:30:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K81-82-USB-accessing-Flash-area/m-p/658828#M40402</guid>
      <dc:creator>izmile</dc:creator>
      <dc:date>2017-02-01T16:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: K81/82 USB accessing Flash area</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K81-82-USB-accessing-Flash-area/m-p/658829#M40403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohamed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just need to set your access, I don't see anything that is missing.&amp;nbsp; I set String descriptors in flash and I enable the flash read access to USB, and it works in my side but maybe the error is in the descriptors, how you set them in flash? could you verify that they are property set in this are?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;APP_init&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cdc_config_struct_t cdc_config&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FMC&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;PFAPR &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;FMC_PFAPR_M3AP&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x03&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cdc_config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;cdc_application_callback&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;callback &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; USB_App_Device_Callback&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cdc_config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;cdc_application_callback&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;arg &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;g_app_handle&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 23:35:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K81-82-USB-accessing-Flash-area/m-p/658829#M40403</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2017-02-06T23:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: K81/82 USB accessing Flash area</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K81-82-USB-accessing-Flash-area/m-p/658830#M40404</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;I confirm that I didn't see any problem with the settings; they are the same as used in the uTasker K80 USB stack, which always has the descriptors in Flash.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is a USB-MSD loader for the K82 at &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%2FFRDM-K82F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K82F.html&lt;/A&gt;&lt;SPAN&gt; and with a debugger it should be possible to compare settings in the peripherals to be sure (as well as verifying that the operation with descriptors in Flash are OK).&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>Tue, 07 Feb 2017 03:19:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K81-82-USB-accessing-Flash-area/m-p/658830#M40404</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-02-07T03:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: K81/82 USB accessing Flash area</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K81-82-USB-accessing-Flash-area/m-p/658831#M40405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replies. I am sure this would be a silly mistake in the code.&amp;nbsp;I will update my findings shortly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Tossed around on another project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:12:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K81-82-USB-accessing-Flash-area/m-p/658831#M40405</guid>
      <dc:creator>izmile</dc:creator>
      <dc:date>2017-02-07T10:12:48Z</dc:date>
    </item>
  </channel>
</rss>

