problems with USB bootloader and

Discuss PIC and electronic related things

Moderators: David Barker, Jerry Messina

Post Reply
gooss007
Posts: 5
Joined: Wed May 21, 2014 8:21 pm

problems with USB bootloader and

Post by gooss007 » Thu May 22, 2014 1:02 pm

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
=> Take a look at my NEW Kickstarter Project at: http://goo.gl/jmIQxJ :idea:

Follow us on twitter:@broedsels
Like us on facebook: facebook.com/ping25xx

Ralph
Posts: 15
Joined: Tue Apr 01, 2008 3:15 am
Location: Melbourne, Australia

Re: problems with USB bootloader and

Post by Ralph » Fri May 23, 2014 7:28 am

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

gooss007
Posts: 5
Joined: Wed May 21, 2014 8:21 pm

Re: problems with USB bootloader and

Post by gooss007 » Sat May 24, 2014 6:52 am

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
=> Take a look at my NEW Kickstarter Project at: http://goo.gl/jmIQxJ :idea:

Follow us on twitter:@broedsels
Like us on facebook: facebook.com/ping25xx

Ralph
Posts: 15
Joined: Tue Apr 01, 2008 3:15 am
Location: Melbourne, Australia

Re: problems with USB bootloader and

Post by Ralph » Sat May 24, 2014 3:05 pm

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!

Jerry Messina
Swordfish Developer
Posts: 1469
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: problems with USB bootloader and

Post by Jerry Messina » Sat May 24, 2014 4:58 pm

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.

Post Reply