Page 1 of 1

new USB library v1.4.3

Posted: Sat Feb 07, 2015 2:43 pm
by Jerry Messina
I've updated the wiki USB library with a new v1.4.3 release

v1.4.3 Highlights:
- support for K50 and J94 families
- add SF protected region support, allowing full use of device ram (no more EXTENDED_RAM)
- easier customization. Most custom changes can be done in separate files now w/out editing libraries (ie clock setup, HID reports)
- more target examples and samples (2553, 14K50, 47J53, 87J94, and 45K50)
- updated HID bootloader and PC application (x64 version now included)
- incorporates previous bug fixes

I've tried to ensure all of the examples and targets compile and work ok, but if anything pops up post it here... there are just too many different scenarios to test them all.

Re: new USB library v1.4.3

Posted: Sat Feb 07, 2015 3:09 pm
by David Barker
Thanks for the USB library update Jerry!

Re: new USB library v1.4.3

Posted: Sat Feb 07, 2015 8:19 pm
by Jerry Messina
For users of the existing v142 lib, I tried to keep any changes you might need to make to a minimum.

The exception is anyone currently using HID Reports and/or EXTENDED_RAM. You should be able to get rid of the 'absolute' definitions and just declare things normally.
For HID reports, you will have to move the report structures into a new file, but that's (hopefully) about it. See the examples in the UserHIDReports directory.

There are several examples in each of the main_HID.bas and main_CDC.bas files which you can select from.

If you're using the HIDbootloader, there are a few example files in the 'SF HIDbootloader143' directory (testprogram.bas, test_HID.bas, and program_template.bas) that show how to structure your main app for use w/the bootloader.

If you're porting from the old version and you run across anything that doesn't work let me know.

Re: new USB library v1.4.3

Posted: Sat Feb 07, 2015 9:36 pm
by octal
Exellent work Jerry. Thank you for sharing this great work and for all the time you spent adding support for all devices.
I'll test all that during next week.
Thx :D

Re: new USB library v1.4.3

Posted: Tue Feb 17, 2015 4:22 am
by Jon Chandler
Thank you sir! Appreciate all you've done to help make Swordfish great.

Re: new USB library v1.4.3

Posted: Tue Feb 17, 2015 1:18 pm
by richardb
Thanks for this Jerry,
not wanting to fork your thread but does anyone have problems with 64bit windows and usb virtual comport?

We didn't really notice when this first happened because all the systems we ship have 32bit windows due to legacy issues. But when we run our software or real terminal it doesn't work properly. It shows up in device manager and works with teraterm, but in real term it just gives the error "the parameter is incorrect"

HID seems to work without problems.

Does anyone else have this issue?

is there any way to fix this?

Re: new USB library v1.4.3

Posted: Tue Feb 17, 2015 2:48 pm
by Jerry Messina
I just installed Realterm 2.0.0.70 and it seems to work ok for me here w/win7 x64.

It sounds like it might be a driver issue, but you say Device Manager is happy with it?

Re: new USB library v1.4.3

Posted: Tue Feb 17, 2015 4:16 pm
by David Barker
I use version 1.4.2 of the USB library on win7 x64 without any problems (it also work fine with win8). As Jerry said, it may be a driver issue or perhaps the CDC *.inf file you use?

Re: new USB library v1.4.3

Posted: Tue Feb 17, 2015 4:43 pm
by Jerry Messina
Here's a copy of the cdc driver I'm using. It's signed, so it should even install on win8/8.1 w/out having to jump through any hoops.
It uses the standard Mecanique VID and PID used by the demos.

https://www.dropbox.com/s/0ntchwye89u6o ... r.zip?dl=0

Perhaps see if that works better?

Re: new USB library v1.4.3

Posted: Wed Feb 18, 2015 7:18 am
by richardb
thanks for the reply's,

I'll have to try burning a pic with a standard config and use Jerry's driver as ours is setup with our name,, I think, as its been ages since I originally did the usb work.

good to know it works though.


Thanks again.

Richard

Re: new USB library v1.4.3

Posted: Wed Mar 18, 2015 11:47 am
by Ralph
Just a quick note to let others know that I (finally) got the opportunity to upgrade two of my product designs to incorporate Jerry's new USB 1.4.3 library. It works great Jerry!! Both my projects previously used 1.4.2 (which was also functioning perfectly), and the transition across to the new 1.4.3 lib was quite straightforward.

My application for these two projects uses HID with the bootloader as well as the CDC class for a VDP connection to the PIC18F4550 from Win8.1 64bit. As I say, it works brilliantly and thank you so very much Jerry for all your effort in providing the SF community with such valuable solution. Your blood is worth bottling!

Warmest regards,
Ralph