Now with CMSIS FreeRTOS I could get software enumerating USB Serial Device (COM Portx) in Device manager. I verified the Vendor ID and Product ID which matches with Hardware IDs in driver properties and it is exactly the same I configured in Software file "USBD_Config_0.c" under device settings 1. VendorID and 2. Product ID.
Now I took the INF file and two other cat files (x64.cat and x86.cat).
Two changes that I made in INF file was, (1) included Vendor ID and Product IDs,
(2) In Class = Modem instead of class =Ports (For Virtual com port).
After this change, when I tried to update the driver, I get the following error,
"Windows encountered a problem installing the drivers for your device" and
"The hash for the file is not present in the specified catalog file. The file is likely corrupt or the victim of tampering".
What to do with cat files, or what is the error, please help me.
You'll have to delete the .CAT file if you modify the .INF, as you don't have the signing key to authenticate the file.
Windows 10 introduced digital signatures for USB drivers. You can read more about it here:
You might be able to test sign the driver:
View all questions in Keil forum