<?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: PC usb driver for M5222X and M5221X in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164213#M5516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thank you for your answers.&lt;BR /&gt;&lt;BR /&gt;The solution "WinUSB" looks nice for my requirement.&lt;BR /&gt;The source code in the demo program "C:\CMXUSB_LITE\usb-peripheral\pc-side\hid-led-demo" seems to be clear.&lt;BR /&gt;The DOC file "WinUsb_HowTo.docx" is clear as well.&lt;BR /&gt;&lt;BR /&gt;I am actually downloading the "WDK" (WDK_6001_18001.iso) from Microsoft web site.&lt;BR /&gt;I still have to wait for a couple of hours before end of downloading.&lt;BR /&gt;&lt;BR /&gt;Afterwards i could make more tests.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2008 23:12:16 GMT</pubDate>
    <dc:creator>efk</dc:creator>
    <dc:date>2008-06-13T23:12:16Z</dc:date>
    <item>
      <title>PC usb driver for M5222X and M5221X</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164210#M5513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read several posts in this forum, but i do not have the answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For those who have already some experience of communication between the PC and this processor, what usb driver would you suggest to use ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked "CMXUSB_LITE" and i found some interesting code in this folder: C:\CMXUSB_LITE\usb-peripheral\pc-side\hid-led-demo . But i did not find the corresponding INF and SYS files !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, this code looks a bit "generic". I guess there must be some more specific tools ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 01:33:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164210#M5513</guid>
      <dc:creator>efk</dc:creator>
      <dc:date>2008-06-13T01:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: PC usb driver for M5222X and M5221X</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164211#M5514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;If you use generic hid you do not need an inf or sys file . It is built in to windows. There should also be a pc side directory that has a sample VS studio project that talks to the card.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 02:51:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164211#M5514</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-06-13T02:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: PC usb driver for M5222X and M5221X</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164212#M5515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What kind of communication do you want to do between the PC and the 522[12]x?&amp;nbsp; I assume you want a Windows PC since you're talking about INF files.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've used libusb to easily talk directly to the USB endpoints of&amp;nbsp;my target device:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &lt;A href="http://libusb-win32.sourceforge.net/" rel="nofollow" target="_blank"&gt;http://libusb-win32.sourceforge.net/&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And there is also winusb from Microsoft:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &lt;A href="http://www.microsoft.com/whdc/connect/usb/winusb_howto.mspx" rel="nofollow" target="_blank"&gt;http://www.microsoft.com/whdc/connect/usb/winusb_howto.mspx&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &lt;A href="http://msdn.microsoft.com/en-us/library/aa476426.aspx" rel="nofollow" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/aa476426.aspx&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;One page implies it isn't available for XP and one does -- I haven't tried it though.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However, if you're creating (or emulating) a "standard" USB device, you might not need to write a driver at all.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I actually emulate an existing device and use its driver instead...&amp;nbsp; (I emulate an FTDI serial port, since I want to communicate with a terminal emulator, but now I find myself wondering if I could emulate a real USB Communications Class device instead...)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-- Rich&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 02:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164212#M5515</guid>
      <dc:creator>RichTestardi</dc:creator>
      <dc:date>2008-06-13T02:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: PC usb driver for M5222X and M5221X</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164213#M5516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thank you for your answers.&lt;BR /&gt;&lt;BR /&gt;The solution "WinUSB" looks nice for my requirement.&lt;BR /&gt;The source code in the demo program "C:\CMXUSB_LITE\usb-peripheral\pc-side\hid-led-demo" seems to be clear.&lt;BR /&gt;The DOC file "WinUsb_HowTo.docx" is clear as well.&lt;BR /&gt;&lt;BR /&gt;I am actually downloading the "WDK" (WDK_6001_18001.iso) from Microsoft web site.&lt;BR /&gt;I still have to wait for a couple of hours before end of downloading.&lt;BR /&gt;&lt;BR /&gt;Afterwards i could make more tests.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 23:12:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164213#M5516</guid>
      <dc:creator>efk</dc:creator>
      <dc:date>2008-06-13T23:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: PC usb driver for M5222X and M5221X</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164214#M5517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;If you are going to use the Generic Hid, you will have no need for WinUSB or libusb.&lt;BR /&gt;&lt;BR /&gt;I know for a fact that WinUSB will require that you install the device driver on XP (if it is not already there - I have tons on USB stuff on my XP box, and it was not on my box), and although it is a microsoft driver, they seem unwilling to sign it so you will have to either have your user accept "Unsigned Driver"&amp;nbsp; or sign it yourself (at least as best I could figure it).&lt;BR /&gt;&lt;BR /&gt;Also, there are bugs in that document. It did not work and I finally figured out that it was missing a blank [ClassInstall32] section, but it took me quite a while to figure this out. I happened to have the sample device, it was not my own device - after I got the install to work, I left it at that. I did not go any further, as I need to install on XP boxs ( still 90% of all boxes are XP), and did not what to design the msi (at this time) to do this.&lt;BR /&gt;&lt;BR /&gt;I will give you another hint - don't bother looking for winusb.sys, as it is contained in on of the coinstaller dlls and gets spit out during the install. I had supposed "experts" tell me it was right in there in the WDK.&lt;BR /&gt;&lt;BR /&gt;Also, if you do this you will not need anything from the WDK for generic hid:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;// Pointer to functions for exporting//BOOLEAN ( __stdcall *_HidD_FreePreparsedData)(      IN    PHIDP_PREPARSED_DATA PreparsedData      );BOOLEAN (__stdcall* _HidD_GetAttributes) (     IN  HANDLE              HidDeviceObject,     OUT PHIDD_ATTRIBUTES    Attributes     );void (__stdcall* _HidD_GetHidGuid) (     OUT   LPGUID   HidGuid     );BOOLEAN (__stdcall* _HidD_GetPreparsedData) (        IN    HANDLE                  HidDeviceObject,        OUT   PHIDP_PREPARSED_DATA  * PreparsedData        );NTSTATUS (__stdcall* _HidP_GetCaps) (     IN      PHIDP_PREPARSED_DATA      PreparsedData,     OUT     PHIDP_CAPS                Capabilities     );BOOLEAN  (__stdcall* _HidD_GetProductString) (        IN    HANDLE   HidDeviceObject,        OUT   PVOID    Buffer,        IN    ULONG    BufferLength        );BOOLEAN (__stdcall* _HidD_GetIndexedString) (        IN    HANDLE   HidDeviceObject,        IN    ULONG    StringIndex,        OUT   PVOID    Buffer,        IN    ULONG    BufferLength        );BOOLEAN (__stdcall* _HidD_GetSerialNumberString) (       IN    HANDLE   HidDeviceObject,       OUT   PVOID    Buffer,       IN    ULONG    BufferLength       );BOOLEAN (__stdcall* _HidD_GetManufacturerString) (       IN    HANDLE   HidDeviceObject,       OUT   PVOID    Buffer,       IN    ULONG    BufferLength       );Then in your initialization code: HMODULE hMod =::LoadLibrary(_T("hid.dll")); // get the functions we need. *((FARPROC*)&amp;amp;_HidD_FreePreparsedData) = ::GetProcAddress(hMod, "HidD_FreePreparsedData"); *((FARPROC*)&amp;amp;_HidD_GetAttributes) = ::GetProcAddress(hMod, "HidD_GetAttributes"); *((FARPROC*)&amp;amp;_HidD_GetHidGuid) = ::GetProcAddress(hMod, "HidD_GetHidGuid"); *((FARPROC*)&amp;amp;_HidD_GetPreparsedData) = ::GetProcAddress(hMod, "HidD_GetPreparsedData"); *((FARPROC*)&amp;amp;_HidP_GetCaps) = ::GetProcAddress(hMod, "HidP_GetCaps"); *((FARPROC*)&amp;amp;_HidD_GetManufacturerString) = ::GetProcAddress(hMod, "HidD_GetManufacturerString"); *((FARPROC*)&amp;amp;_HidD_GetSerialNumberString) = ::GetProcAddress(hMod, "HidD_GetSerialNumberString"); *((FARPROC*)&amp;amp;_HidD_GetProductString) = ::GetProcAddress(hMod, "HidD_GetProductString"); *((FARPROC*)&amp;amp;_HidD_GetIndexedString) = ::GetProcAddress(hMod, "HidD_GetIndexedString");}

 To use the function pointers:

    _HidD_FreePreparsedData(hpd);
&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:10:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164214#M5517</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2020-10-29T09:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: PC usb driver for M5222X and M5221X</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164215#M5518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Freeshas some new USB stuff for Felxis that will &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=S08JM&amp;amp;tab=Design_Support_Tab" rel="nofollow" target="_blank"&gt;serve to show how to install and&lt;/A&gt; use the WinUSB code.with a GUI, There is a DLL that we need to get the API for,&lt;BR /&gt;&lt;BR /&gt;The also and app note the show how to use the &lt;A href="http://www.freescale.com/files/32bit/doc/app_note/AN3530.pdf" rel="nofollow" target="_blank"&gt;sample bulk drive&lt;/A&gt;r&amp;nbsp; code that comes&amp;nbsp; with WDK - AN3530.&lt;BR /&gt;This runs on mfc222x - the zip file with code has gone missing by I have a service request in to get it.&lt;BR /&gt;It will talk to the bulkdriver which is in the src/usb/bulkdriver&amp;nbsp; folder of the WDK, And the board and app code to talk to it.&lt;BR /&gt;This is the real deal - you will be abel to get very fast transfers with this - like 600K BYTES /second.&lt;BR /&gt;&lt;BR /&gt;Down load the WDK from the &lt;A href="https://connect.microsoft.com/Downloads/Downloads.aspx?SiteID=148" rel="nofollow" target="_blank"&gt;microsoft connect sit e&lt;/A&gt; - just need a "passport" to log in. It is a 650M iso image of the CD.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jun 2008 10:58:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164215#M5518</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-06-15T10:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: PC usb driver for M5222X and M5221X</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164216#M5519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thank you for all these tips.&lt;BR /&gt;I have downloaded and installed everything.&lt;BR /&gt;So now i have around 1Gbytes of infos to analyze.&lt;BR /&gt;For now, i am a bit lost.&lt;BR /&gt;&lt;BR /&gt;In the other side, i ordered the M52211EVB kit.&lt;BR /&gt;I will wait to receive it, in order to analyze the cd-rom which is supplied within the kit (we usually find a lot of useful things in these kinds of CD-Rom).&lt;BR /&gt;I guess i will find a SYS file + an INF file for this kit ?&lt;BR /&gt;And may be there is some c++ code to communicate with the SYS file ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 23:07:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PC-usb-driver-for-M5222X-and-M5221X/m-p/164216#M5519</guid>
      <dc:creator>efk</dc:creator>
      <dc:date>2008-06-17T23:07:40Z</dc:date>
    </item>
  </channel>
</rss>

