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

Starting program at 0x04

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







Starting program at 0x04
PostPosted: Tue Dec 21, 2004 1:21 pm     Reply with quote

Hello,

I'm trying to use Bloader from Sparkfun to load CCS C generated code. The readme file says the program must start at memory location 0x0004 and the interrupt vector will still operate properly from the same location. How can I change the program to do this? The only thing I could find on this was to use: #build (reset = 0x1, interrupt = 0x05)
#org 0x0f00,0x0fff{}

I'm throughly confused by this and would appreciate any suggestions!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Dec 21, 2004 3:33 pm     Reply with quote

What PIC are you using it for ?

If it's the 16F877 or a related PIC, then use the bootloader from
http://www.microchipc.com/PIC16bootload/

It doesn't have any restrictions on putting code at adresses 0 to 3.
They also tell you how to use it with CCS:
http://www.microchipc.com/PIC16bootload/PIC_bootloader_FAQ.htm#reserve256_CCS_C

It's strange that Sparkfun wrote their bootloader in CCS,
but don't offer instructions on how to use it with CCS.
RodP
Guest







Thanks for response
PostPosted: Wed Dec 22, 2004 9:12 am     Reply with quote

Thanks to PCM Programmer. I was wanting to use this with a 16F88 and it appears that isn't an option. Maybe CCS will sell a reasonably priced bootloader for use with their compiler that's able to work with MPLAB as the ICD.
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