Search found 7 matches

by JackMorrison
19 Nov 2018 01:16
Forum: Libstock Discussion
Topic: CDC Class added to USB Device Library!
Replies: 71
Views: 606829

Re: CDC Class added to USB Device Library!

Followup in case anyone is interested: #1 In the VCP_Descriptor setup in the PIC code, be sure to keep wMaxPacketSize as 64 (0x40) for Bulk In and Out endpoints, even if your application doesn' t need that much. Linux and OSX will not work right otherwise, at least with default drivers. Changing tha...
by JackMorrison
01 Nov 2018 19:31
Forum: Libstock Discussion
Topic: CDC Class added to USB Device Library!
Replies: 71
Views: 606829

Re: CDC Class added to USB Device Library!

I'm trying it on a Linux system now... it creates a /dev/ttyACM0 port okay, and I can write to the port ok (and see that the PIC board receives ok based on blinky light activity), but can't read anything back. Does that suggest anything to try?
by JackMorrison
15 Oct 2018 05:34
Forum: Libstock Discussion
Topic: CDC Class added to USB Device Library!
Replies: 71
Views: 606829

Re: CDC Class added to USB Device Library!

Apologies for waking up/hijacking an old topic. I have a PIC Clicker app using this library, which works fine communicating with a Windows (10) host. A friend is trying to use it connected to a Mac running OS-X 10.9.5. It seems to show up on the Mac as a /dev/tty.usbmodemNNNN device, but trying to o...
by JackMorrison
28 Apr 2015 00:33
Forum: mikroC PRO for PIC General
Topic: postincrement - bad code generation
Replies: 1
Views: 1041

postincrement - bad code generation

I hope this is the right place to report an apparent bug in MikroC PRO for PIC 6.5.0. Here's sample source code: char buf1[8]; char buf2[8]; void foo() { char i; char *ptr = buf1; for (i=0; i<4; i++) { //char c = *ptr++; // bad char c; // ok c = *ptr++; if (c == ' ') break; buf2[i] = c; } buf2[i] = ...
by JackMorrison
11 Apr 2015 05:46
Forum: Libstock Discussion
Topic: CDC Class added to USB Device Library!
Replies: 71
Views: 606829

Re: CDC Class added to USB Device Library!

Following up: it turns out that the flash erase timing was not the problem. I configured the USB IN/OUT descriptors for max 40 bytes. Under Win7 and Linux, if I write 66 bytes it works fine (splitting into two transfers presumably). But writing 66 bytes hoses the Win8 driver. If I keep individual wr...
by JackMorrison
07 Apr 2015 01:10
Forum: Libstock Discussion
Topic: CDC Class added to USB Device Library!
Replies: 71
Views: 606829

Re: CDC Class added to USB Device Library!

In theory, after "reset" host PC recognizes disconnection of the PIC and Windows invalidate current device handle of the CDC device. The PC application has to close the handle once and then application acquires new device handle for re-connected CDC device. If you're suggesting the PC close the COM...
by JackMorrison
05 Apr 2015 23:08
Forum: Libstock Discussion
Topic: CDC Class added to USB Device Library!
Replies: 71
Views: 606829

Re: CDC Class added to USB Device Library!

I'm using the CDC Class on a PIC Clicker (PIC18F47J53) board, and it works fine, except on some machines when my PIC application does a flash erase - then the COM port goes into a bad state where it doesn't respond until a board reset. The PIC datasheet says the flash erase can stall the CPU for 33m...

Go to advanced search