<?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>MQX Software SolutionsのトピックRe: MQX_INVALID_POINTER task error set when closing a USB device handle after USB disconnection</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-INVALID-POINTER-task-error-set-when-closing-a-USB-device/m-p/327713#M10438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan Kubiznak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check the MFS_USB example?&lt;/P&gt;&lt;P&gt;The example illustrates the usage of USB host, MFS and Shell API to deal with the USB memory stick. The application example allows user to perform a set of commands with USB memory stick through the terminal output. This including creating and deleting files, writing to and read reading from files as well as manipulation of directory.&lt;/P&gt;&lt;P&gt;This example is located at the path: C:\Freescale\Freescale_MQX_4_1\mfs\examples\mfs_usb&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol&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 Oct 2014 21:14:48 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2014-10-20T21:14:48Z</dc:date>
    <item>
      <title>MQX_INVALID_POINTER task error set when closing a USB device handle after USB disconnection</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-INVALID-POINTER-task-error-set-when-closing-a-USB-device/m-p/327712#M10437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I'd like to report a problem with the USB MSD umount proces. Generally I'm completely able to install and uninstall MFS on USB devices and also to access their file systems. However on every USB device disconnection a task error &lt;STRONG&gt;MQX_INVALID_POINTER&lt;/STRONG&gt; is set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MQX version: 4.1.1&lt;/P&gt;&lt;P&gt;HW: Kinetis70&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For installation and uninstallation of MFS on USB I followed the steps described here:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="http://cache.freescale.com/files/32bit/doc/app_note/AN3907.pdf"&gt;http://cache.freescale.com/files/32bit/doc/app_note/AN3907.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So - when I detect, that a device was attached, then I:&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1. Install USB-MFS device driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2. Open the USB-MFS device driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3. Install the file system driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 4. Open the file system driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I detect, that it was detached, then I:&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1. Close the file system driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2. Uninstall the file system driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3. Close the USB-MFS device driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 4. Uninstall the USB-MFS device driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the error comes at the point (3) of the uninstallation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the call stack:&lt;/P&gt;&lt;P&gt;&amp;nbsp; _task_set_error(MQX_INVALID_POINTER)&lt;/P&gt;&lt;P&gt;&amp;nbsp; _lwmem_free&lt;/P&gt;&lt;P&gt;&amp;nbsp; _io_usb_mfs_close&lt;/P&gt;&lt;P&gt;&amp;nbsp; _io_fclose&lt;/P&gt;&lt;P&gt;&amp;nbsp; fclose (hUsbDevice)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here the error detail:&lt;/P&gt;&lt;P&gt;"_mem_free(fd_ptr-&amp;gt;DEV_DATA_PTR);" is called from _io_usb_mfs_close(...), but my &lt;STRONG&gt;DEV_DATA_PTR&lt;/STRONG&gt; is NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I do something wrong? Or is it an MQX USB error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 18:30:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-INVALID-POINTER-task-error-set-when-closing-a-USB-device/m-p/327712#M10437</guid>
      <dc:creator>JanKubiznak</dc:creator>
      <dc:date>2014-10-15T18:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: MQX_INVALID_POINTER task error set when closing a USB device handle after USB disconnection</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-INVALID-POINTER-task-error-set-when-closing-a-USB-device/m-p/327713#M10438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan Kubiznak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check the MFS_USB example?&lt;/P&gt;&lt;P&gt;The example illustrates the usage of USB host, MFS and Shell API to deal with the USB memory stick. The application example allows user to perform a set of commands with USB memory stick through the terminal output. This including creating and deleting files, writing to and read reading from files as well as manipulation of directory.&lt;/P&gt;&lt;P&gt;This example is located at the path: C:\Freescale\Freescale_MQX_4_1\mfs\examples\mfs_usb&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol&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 Oct 2014 21:14:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-INVALID-POINTER-task-error-set-when-closing-a-USB-device/m-p/327713#M10438</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2014-10-20T21:14:48Z</dc:date>
    </item>
  </channel>
</rss>

