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 support@ccsinfo.com

Bootloader through a FTDI USB/Serial Interface?

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



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

Bootloader through a FTDI USB/Serial Interface?
PostPosted: Thu Dec 07, 2006 1:18 pm     Reply with quote

Hello All,

I was wondering if anyone has implemented a 'typical' serial type bootloader (tinybld, CCS, Microchip, etc.) through a FTDI USB interface?

It would be nice to be able to bootload via USB with an off-the-shelf bootloader. At the moment I'm trying to decide whether to move to USB or stick with serial.

Any comments, suggestions, experience, or wisdom would be appreciated.

Thanks,

John
Ttelmah
Guest







PostPosted: Thu Dec 07, 2006 3:41 pm     Reply with quote

There is nothing much to this. The FTDI chips/modules, are the core of many of the USB-serial converter cables on the market. A far as the PIC is concerened, it only sees normal serial (with the advantage of not needing a MAX232, since the chips give 'logic level' serial, with the right polarity to directlyinterface to the PIC's UART. As far as the PC end is concerened, this is just seen as a USB serial port, and functions exactly like any other serial port.
I have half a dozen different things that use these modules, and a couple implement bootloaders. In one case, the FTDI chip is optional, and can be replaced by a RS232 connector and interface chip. As far as the code at both ends is concerned behaviour is identical whichever interface is used.
If you want to go 'custom', FTDI, will supply small blocks of USB addresses, and using these (and reprogramming the ROM on the interface), allows the unit to be seen with a custom 'name', and if required to hide it's simple serial nature.

Best Wishes
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Thu Dec 07, 2006 4:45 pm     Reply with quote

RJ,

Thanks. That's what I was hoping and had cautiously assumed. I think I'll give it a go.

John
jma_1



Joined: 08 Feb 2005
Posts: 147
Location: Wisconsin

View user's profile Send private message

PostPosted: Thu Dec 07, 2006 5:15 pm     Reply with quote

Greetings,

Ttelmah is correct.

I'm presently using an FTDI chip in a project and have not had any issues. On a side note, try to pick one of the newer chips by FTDI or Silicon Labs. Some of the newer chips have built in EEPROM and might not need a separate oscillator. The new Vinculum chip by FTDI can even by a USB host or slave.

Cheers,
JMA
Martin Berriman



Joined: 08 Dec 2005
Posts: 66
Location: UK

View user's profile Send private message

PostPosted: Sat Dec 09, 2006 10:27 am     Reply with quote

jma_1 wrote:
Some of the newer chips have built in EEPROM and might not need a separate oscillator. The new Vinculum chip by FTDI can even by a USB host or slave.


The latest FT232R does indeed not require an external crystal, EEPROM or USB impedance matching resistors - well worth changing over to.

I am currently experimenting with a Vinculum device. Idea is to have the PIC check the USB flash disk for a certain file at boot up and if found then perform a firmware upgrade. This is quite a lot to stuff into a bootloader though so needs one of the bigger devices...
ratgod



Joined: 27 Jan 2006
Posts: 69
Location: Manchester, England

View user's profile Send private message

PostPosted: Tue Dec 12, 2006 10:48 am     Reply with quote

@martin

many thanks for this tidbit, im going to to switch over completely on my next project
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