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

SIOW download software

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



Joined: 27 Oct 2003
Posts: 126

View user's profile Send private message

SIOW download software
PostPosted: Sat May 08, 2004 3:59 pm     Reply with quote

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
Kasper



Joined: 14 Jan 2004
Posts: 88
Location: Aurora, Ontario, Canada

View user's profile Send private message Visit poster's website

PostPosted: Wed May 12, 2004 7:37 am     Reply with quote

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"
SteveS



Joined: 27 Oct 2003
Posts: 126

View user's profile Send private message

PostPosted: Wed May 12, 2004 11:22 am     Reply with quote

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
Kasper



Joined: 14 Jan 2004
Posts: 88
Location: Aurora, Ontario, Canada

View user's profile Send private message Visit poster's website

PostPosted: Wed May 12, 2004 1:08 pm     Reply with quote

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
SteveS



Joined: 27 Oct 2003
Posts: 126

View user's profile Send private message

PostPosted: Thu May 13, 2004 7:01 am     Reply with quote

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
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Thu May 13, 2004 8:30 am     Reply with quote

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.
SteveS



Joined: 27 Oct 2003
Posts: 126

View user's profile Send private message

PostPosted: Fri May 14, 2004 6:41 am     Reply with quote

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
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