CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Application of "ex_usb_bootloader.c"

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
lokken



Joined: 21 Feb 2010
Posts: 17

View user's profile Send private message

Application of "ex_usb_bootloader.c"
PostPosted: Fri Feb 25, 2011 9:39 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Feb 27, 2011 5:14 am     Reply with quote

Is it related with schematic or my codes?
Could you propose anything?
lokken



Joined: 21 Feb 2010
Posts: 17

View user's profile Send private message

PostPosted: Thu Mar 03, 2011 5:13 am     Reply with quote

Is there anyone who uses USB bootloader with CCS?
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

View user's profile Send private message Send e-mail

PostPosted: Thu Mar 03, 2011 8:31 am     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Mar 03, 2011 9:32 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Mar 03, 2011 4:08 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Mar 03, 2011 4:22 pm     Reply with quote

Quote:

Do I program the bootloader, then bootload a prototype, pull the hex off with the programmer ?

See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=38730
sseidman



Joined: 14 Mar 2005
Posts: 159

View user's profile Send private message

PostPosted: Thu Mar 03, 2011 5:39 pm     Reply with quote

Thanks PCM!!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group