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

bootloading via USB

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







bootloading via USB
PostPosted: Mon Oct 24, 2005 4:10 pm     Reply with quote

Hello,

Has anyone been able to bootload code to a PIC 18f4550 through the chips internal USB transceiver? If so, I would be very greatful if you could please give me an overview of how this is done.

Thanks,

Alec
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

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

PostPosted: Mon Oct 24, 2005 6:39 pm     Reply with quote

Microchip have a bootloader for this chip on their site under USB solutions. Have you had a look at that one.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
alecms
Guest







PostPosted: Mon Oct 24, 2005 10:29 pm     Reply with quote

Thanks for the info. I looked at this but it seems as though this bootloader prevents one from using the USB port for anything besides updating firmware. I wonder if there are any more flexible solutions out there.
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

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

PostPosted: Mon Oct 24, 2005 11:10 pm     Reply with quote

Well if you need it to do something else then you are not really looking for a bootloader. Once the bootloader has loaded a program it passes control to the user program and it can do what it likes with the USB port.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
alec



Joined: 12 Oct 2005
Posts: 7

View user's profile Send private message

PostPosted: Tue Oct 25, 2005 3:20 am     Reply with quote

Have you been able to make this work? I suspect the difficulty would lie on the PC side. I don't see how you would switch from the dedicated bootloader USB driver provided by Microchip to another driver while the device is plugged in.
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

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

PostPosted: Tue Oct 25, 2005 6:10 am     Reply with quote

alec wrote:
Have you been able to make this work? I suspect the difficulty would lie on the PC side. I don't see how you would switch from the dedicated bootloader USB driver provided by Microchip to another driver while the device is plugged in.


I have not tried Microchip's implementation but cannot see a problem. It enumerates initialise as device X for the bootloading process, then at the end of the bootloading process it disconnects from the bus (optional) then reconnects and enumerates as a totally different device.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
alec



Joined: 12 Oct 2005
Posts: 7

View user's profile Send private message

PostPosted: Tue Oct 25, 2005 11:54 am     Reply with quote

Thank for your help.

Alec
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