View previous topic :: View next topic |
Author |
Message |
SteveS
Joined: 27 Oct 2003 Posts: 126
|
SIOW download software |
Posted: Sat May 08, 2004 3:59 pm |
|
|
I'm working with the bootloader (loader.c) that comes with CCS. It basically works and I can download via Hyperterm. However, when I try to use SIOW and the Download Software command it doesn't work. I select the hex file and after that a window comes up, progress bar shows one line has downloaded, and then I get a timeout error. If I log the session it does show one line transferred and the 'ACK' reply from the PIC; and that's it.
Search of the archive seems to indicate a few people have used it successfully; any ideas?
Thanks,
SteveS |
|
![](templates/subSilver/images/spacer.gif) |
Kasper
Joined: 14 Jan 2004 Posts: 88 Location: Aurora, Ontario, Canada
|
|
Posted: Wed May 12, 2004 7:37 am |
|
|
if you did not include the bootloader.h file, then your hex file may overwrite parts of the bootloader, if it is not write protected.. at least that seemed to be to blame when I was toying with it first.
Quote: | #include "bootloader.h" |
|
|
![](templates/subSilver/images/spacer.gif) |
SteveS
Joined: 27 Oct 2003 Posts: 126
|
|
Posted: Wed May 12, 2004 11:22 am |
|
|
I can't seem to locate a "bootloader.h".
The "ex_load.c" doesn't seem to include anything else. Am I missing something?
- Steve |
|
![](templates/subSilver/images/spacer.gif) |
Kasper
Joined: 14 Jan 2004 Posts: 88 Location: Aurora, Ontario, Canada
|
|
Posted: Wed May 12, 2004 1:08 pm |
|
|
I hope CCS does not give me too much trouble for posting the content here
Code: |
#define LOADER_END 0x4FF
#define LOADER_SIZE 0x3FF
#ifndef _bootloader
#build(reset=LOADER_END+2, interrupt=LOADER_END+8)
#org 0, LOADER_END {}
#endif
|
include this in your project file and it should be OK |
|
![](templates/subSilver/images/spacer.gif) |
SteveS
Joined: 27 Oct 2003 Posts: 126
|
|
Posted: Thu May 13, 2004 7:01 am |
|
|
Thanks - I'll give that a try. Still don't understand why I don't have that code already - I'm at V3.182.
- Steve |
|
![](templates/subSilver/images/spacer.gif) |
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
|
|
Posted: Thu May 13, 2004 8:30 am |
|
|
And I remember in Loader.C it mentions something about setting your buffers to the lowest possible values or some byte may be missed. This may be related to the problem you are seeing. |
|
![](templates/subSilver/images/spacer.gif) |
SteveS
Joined: 27 Oct 2003 Posts: 126
|
|
Posted: Fri May 14, 2004 6:41 am |
|
|
Actually it worked with Hyperterm (and w/o changing the buffers). SIOW doesn't appear to have a buffer setup option.
In any case, I haven't had a chnace to try any sugsetions yet. I realized last night that loader.c puts code at the top of flash. On the 18F parts don't we want to use the bottom of flash so we can take advantage of the boot block protect? So I'm altering loader.c to do that.
Stay tuned...
- SteveS |
|
![](templates/subSilver/images/spacer.gif) |
|