View previous topic :: View next topic |
Author |
Message |
lokken
Joined: 21 Feb 2010 Posts: 17
|
Application of "ex_usb_bootloader.c" |
Posted: Fri Feb 25, 2011 9:39 am |
|
|
I couldn't use this example for 18f14k50.
First of all I load this program using a device programmer.("ex_usb_bootloader.hex")
Than I added just these lines to my simple program;
Code: |
#define _bootloader
#include <usb_bootloader.h>
|
Than I tried to load this program via SIOW.exe and Microchip USB HID bootloader program. But I couldn't succeed.
Could you propose anything?
Here is my schematic:
|
|
|
lokken
Joined: 21 Feb 2010 Posts: 17
|
|
Posted: Sun Feb 27, 2011 5:14 am |
|
|
Is it related with schematic or my codes?
Could you propose anything? |
|
|
lokken
Joined: 21 Feb 2010 Posts: 17
|
|
Posted: Thu Mar 03, 2011 5:13 am |
|
|
Is there anyone who uses USB bootloader with CCS? |
|
|
Darren Rook
Joined: 06 Sep 2003 Posts: 287 Location: Milwaukee, WI
|
|
Posted: Thu Mar 03, 2011 8:31 am |
|
|
The CCS USB bootloader uses SIOW, not the Microchip HID software.
#include <usb_bootloader.h> simply re-arranges your HEX file to be compatible with the CCS USB CDC bootloader.
You first need to load your PIC with the actual bootloader, which is ex_usb_bootloader.c. Compile and load ex_usb_bootloader.c onto your PIC, the use SIOW to load your application (which has included usb_bootloader.h)
Read the documentation above ex_usb_bootloader.c for more help. _________________ I came, I saw, I compiled. |
|
|
dbotkin
Joined: 08 Sep 2003 Posts: 197 Location: Omaha NE USA
|
|
Posted: Thu Mar 03, 2011 9:32 am |
|
|
I am using the USB bootloader on a couple of projects now. It works as it should if you (carefully) read and follow the documentation Darren mentioned. The only thing I have seen is that about 20% of the time, the load will stop and you have to start it again... I suspect it's flow control or something. When you're just sending an ASCII file, there's no error checking or correction like there would be with even a simple protocol like XMODEM. I haven't decided yet whether to just live with it, or try to implement XMODEM or a similar protocol. |
|
|
sseidman
Joined: 14 Mar 2005 Posts: 159
|
|
Posted: Thu Mar 03, 2011 4:08 pm |
|
|
I've been meaning to ask this, and as long as we're into the very basics of bootloading here, this seems as good a place as any.
I'd like to deploy something in quantity. I'd like a bootloader, but I also want to send firmware v1.0 to Microchip to get the bulk order preloaded, and I don't want to have to load everything myself.
What do I do?? Do I program the bootloader, then bootload a prototype, pull the hex off with the programmer, and send that hex file off to Microchip?
Sorry for the idiot question. I've got time put aside to try this on Saturday, but thought I'd float the question first as long as the thread was going this way. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
sseidman
Joined: 14 Mar 2005 Posts: 159
|
|
Posted: Thu Mar 03, 2011 5:39 pm |
|
|
Thanks PCM!!! |
|
|
|