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

bootloader

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



Joined: 18 Nov 2013
Posts: 160

View user's profile Send private message

bootloader
PostPosted: Mon Jun 03, 2019 10:02 am     Reply with quote

I'm using the bootloader example program from a few years ago on a new project, and it works fine. So I took a look at the same program in the current release (5.085) to see if there were any changes I needed to be aware of. And I noticed is a difference in the #org statement for the application function. In the older version, application is given 2-bytes of memory, while the v5.085 version is given 1-byte. Is that correct?

Old version:
Code:

#org LOADER_END+2, LOADER_END+4
void application(void) {
  while(TRUE);
}

New version:
Code:

#org LOADER_END+1,LOADER_END+2
void application(void) {
  while(TRUE);
}
temtronic



Joined: 01 Jul 2010
Posts: 9163
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Jun 03, 2019 10:47 am     Reply with quote

while I don't use them, I think it's based on which PIC series you're using....

Jay
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jun 03, 2019 12:29 pm     Reply with quote

See this thread. Notice the #if and #elif:
http://www.ccsinfo.com/forum/viewtopic.php?t=57983
SeeCwriter



Joined: 18 Nov 2013
Posts: 160

View user's profile Send private message

PostPosted: Mon Jun 03, 2019 2:41 pm     Reply with quote

That post was helpful. It's interesting that the example program as installed does not have that #if..#else statement to set #org. And neither did the version of the example file that the poster posted in his message. If I were using a PIC16, I would have gotten a compiler error and been asking the same questions as the poster.
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