Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
Bootloader for FTDI FT245 write_program_memory timeout
Posted: Fri Feb 13, 2009 2:16 pm
16F877 v3.249
I'm making a bootloader based on ccs example.
It is for the FTDI chip FT245.
I took the example and made custom getc and putc functions.
after the #seperate and #org of loader.c I have defined
It seems like I'm hanging in the write_program_memory()
The addresses ect for write_program_memory() seem ok so I figure it should program.
Any ideas why it would hang?
Last edited by treitmey on Tue Feb 17, 2009 5:24 pm; edited 1 time in total
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
Posted: Mon Feb 16, 2009 10:33 am
I think I figured it out.. I'll update the post after testing
. . .
Wells its the fact that the FTDI245 isn't Full-Duplex. The bootloader
expects a XOFF while it tries to send all the info.
If it doesn't get it, the software times out.
I'll now make a PC app to send one pic.hex line at a time
and wait for ACKLOD, before continuing. FIXED
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