Page 1 of 1

problems with USB bootloader and

Posted: Thu May 22, 2014 1:02 pm
by gooss007
Hello All,

What is a good USB bootloader to use with swordfish?
I tried some bootloaders but they do not work on my Win8.1 system.

Thanks in advance.

Gerard

Re: problems with USB bootloader and

Posted: Fri May 23, 2014 7:28 am
by Ralph
Hi Gerard,

I use Jerry Messina's USB library (v1.42 I think is the latest) with the Microchip HID Bootloader and confirm that it runs quite happily on my system under Windows 8.1

You can get it here: http://www.sfcompiler.co.uk/wiki/pmwiki ... USBLibrary

It is an excellent library and is well worth considering - also well documented and I found it quite easy to implement. When I downloaded it a while back, it also included the PC software source, enabling me to create my own custom bootloader application using a free version of Microsoft Visual C++ Studio Express. I had never used C++ before, but it was quite a straightforward process to achieve a first class result.

Cheers,
Ralph

Re: problems with USB bootloader and

Posted: Sat May 24, 2014 6:52 am
by gooss007
Hello Ralph,

Thank you for pointing me to this file.

I have downloaded the file and thought it would include also the compiled file.
Is there a compiled version available for the PIC18F2550 or do I need to alter the HIDBootloader18F.bas to be working with my PIC18F.

Gerard

Re: problems with USB bootloader and

Posted: Sat May 24, 2014 3:05 pm
by Ralph
I've taken a look back at my working project that uses this library and yes, I simply edited the HIDbootloader18F.bas in accordance with the instructions to customise to my hardware (a PIC18F4550 @ 48MHz in my case), added my own PID and VID details, then compiled and programmed the hex file onto the PIC. Works a treat!

Re: problems with USB bootloader and

Posted: Sat May 24, 2014 4:58 pm
by Jerry Messina
The bootloader source in that package is a port of the Microchip HID bootloader from C to Swordfish.

If you really need a pre-built hex file you can get one in the original Microchip Libraries for Applications (MLA) download
available at http://www.microchip.com/pagehandler/en ... tools/mla/

If you go that route, I'd suggest you pick one of the older versions from the "Legacy MLA" page, and not the current one.
Be aware: it's a BIG download since it has tons of other libraries included and not just USB.

Try Ralph's suggestions first... unless you know C and MPLAB it's a lot easier in the end, and you'll have a bootloader you can customize if needed.