Page 4 of 4

Re: New USB Device Library Released!

Posted: 02 May 2013 06:59
by Const50
Who has run the sample program HIDDevice_Custom?

I can't overcome the line

Code: Select all

While (USBDev_GetdeviceState() <> _USB_DEV_STATE_CONFIGURED)
wend
The program hangs-up on this line.

The device is been detected and determined properly by Windows' Devices and Printers and by USBlizer...

Re: New USB Device Library Released!

Posted: 02 May 2013 07:59
by pwdixon
Const50 wrote:Who has run the sample program HIDDevice_Custom?

I can't overcome the line

Code: Select all

While (USBDev_GetdeviceState() <> _USB_DEV_STATE_CONFIGURED)
wend
The program hangs-up on this line.

The device is been detected and determined properly by Windows' Devices and Printers and by USBlizer...
Have you posted to the correct forum? Sorry I see you have, somehow I've ended up getting posts to the basic forum which I never use, I never had that happen before.

Re: New USB Device Library Released!

Posted: 02 May 2013 08:19
by Const50
My problems concern "New USB Device Library Released!" topic, because I apply to this theme. What another one do you propose?

Re: New USB Device Library Released!

Posted: 05 Jan 2014 11:08
by Ghassen.Halleb
Is there any example about VCP for STMF407VG the one in the libstock dosn't work

Re: New USB Device Library Released!

Posted: 05 Jan 2014 14:21
by Toley

Re: New USB Device Library Released!

Posted: 05 Jan 2015 04:39
by kb501x
Hello Members;

I am not sure what I am doing wrong. I am trying to use "USB device library" with 18f4550 but could not pass enumeration? Tried both hardware and using isis gave same result.
I successfully used legacy HID class without issues both hardware and with Proteus.
This is with MiroC Pro and Vista 64bit.
Note: I just used the Hex provided with the library, file "HIDDevice_Custom.hex" with the circuit below.
2 screen captures: 1 with legacy HID library, everything passes, 2nd with USB device library, fails enumeration.
Thanks for the help,

Re: New USB Device Library Released!

Posted: 15 Oct 2015 10:42
by Peeter
Hi everibody!

Tx DATA SIZE

I'm a newbie about MikroC CDC.
I try to send more than 64 bytes of packet size.
But the USB transmit hangs up.
I try to modify the wMaxPacketSize in descriptor file, without success.
Which is the right way to use bigger packets i.e. 128 bytes?

Thanks:
Peter

Re: New USB Device Library Released!

Posted: 18 Oct 2015 19:57
by biljana.nedeljkovic
Hello,

Unfortunately, the USB device library was written to be used with the maximum packet size of 64 bytes, as defined in the USB specification.
Library is not tested with a packet whose size is larger than 64 bytes.
It's possible the larger packets can be send without any loss, but it simply can't be guaranteed within the specification, and that is the reason we haven't tested it in special cases beyond the specification.

Best regards,
Biljana

Re: New USB Device Library Released!

Posted: 24 Mar 2016 12:06
by ThailandTshirts
Looks Supercool :)

Re: New USB Device Library Released!

Posted: 05 Aug 2016 08:00
by ilferrari
Hi ME, does this library support PIC32MZ? If not, any idea when? Thanks

Re: New USB Device Library Released!

Posted: 05 Aug 2016 12:51
by lana.arsic
Hi,

Unfortunately, at this moment USB Device library doesn't support PIC32MZ,
but I have passed to our development team to add support.

When I have more information when will be added support, I will post it here.

Best regards,
Lana

Re: New USB Device Library Released!

Posted: 24 Nov 2016 14:10
by renew
Hello
I tryed to use this library with the PIC24FJ128GB202 (204).

CDC class works good but have only one problem - each 3-4 minutes i hear from Windows sound like USB device disconected and terminal programm needs to restart. Device in list of devices always.

What can to do with this ? Have any differents bettween PIC24FJ128FB202 USB modules and other PIC ?

Re: New USB Device Library Released!

Posted: 25 Nov 2016 11:42
by renew
Sorry, was enabled a WDT :roll:

So, with the PIC24FJ128GB202 (204) works perfect.

PIC init

Code: Select all

// Setting output frequency to 32MHz
  OSCCON = 0x0000;   // FRC ON
  CLKDIV = 0x0000;       // prescaler OFF
  STEN_bit = 1;    // USB correction ON
  STSRC_bit = 1;


// Enable USB device interrupt
  USB1IE_bit = 1;
  USB1IP0_bit = 1;
  USB1IP1_bit = 1;
  USB1IP2_bit = 1;

Only one desire - buffer size up to 256
In current version the maximum packet length only 63 bytes (not 64).

Thank you.

Re: New USB Device Library Released!

Posted: 26 Nov 2016 11:04
by lana.arsic
Hi renew,

Welcome to the MikroE forum.

Please check if you have turned off watchdog timer in Project Settings.

Best regards,
Lana

Re: New USB Device Library Released!

Posted: 12 Oct 2017 12:33
by vergilium
Hi. I`m use USB lib for pic18f2550 mcu. It works well, but on some PC in particular with USB 3.0 the device is not detected and responds "USB device not recognize". I'm not sure I understand why that would be a problem. :cry: