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

16F88 bootloader problem

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



Joined: 15 Jan 2004
Posts: 10

View user's profile Send private message

16F88 bootloader problem
PostPosted: Thu Oct 13, 2005 8:27 am     Reply with quote

I have looked at a selection of bootloaders (SparkFun Screamer, Tinybootloader, MicroCode Loader etc) all requiring the first 4 bytes to be a long jump to the start of my code. These all work fine when downloading nice little programs but unfortunately my program isn't!

I think my problem is that the start of my code is not on the first page. Because I am using part of my ROM as RAM and have some interrupt code.

Below is the top of my list file. (main() is actually at 0x0B3D)
Code:

0000:  MOVLW  08
0001:  MOVWF  0A
0002:  GOTO   33D


One solution I thought of was to jump to a location in the first page which then jumps to the start of my code. However I don't know how to implement this.

I've got a bit bogged down by this and would appreciate any suggestions.

I'm using the 16F88 with the latest CCS compiler.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Oct 14, 2005 1:52 pm     Reply with quote

Look at the last two posts in this thread on the Sparkfun forum.
It's something to try.
http://www.sparkfun.com/cgi-bin/phpbb/viewtopic.php?t=413&highlight=ccs
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