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

bootloader application RCALL gets changed to GOTO

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



Joined: 15 Sep 2003
Posts: 226

View user's profile Send private message

bootloader application RCALL gets changed to GOTO
PostPosted: Sat Sep 22, 2007 6:48 pm     Reply with quote

Using the CCS ex_bootloader the last line of code in the hex file looks like this:

:04070000FFD7000C13 // from the LST this is a RCALL 0700

The loaded applications first line of code in the hex file looks like this

:04070000E6EFDFF051 // from lst file is GOTO 1BFCC (main() of application)


When the bootloader loads the application it overwrites the line at address 0700 with the line of code from the loaded application.

This changes the instruction at 0700 from RCALL to GOTO

Is it the intention to make the boot loader do a GOTO main() ?
Which I think it should as it needs to not push the stack at that point.

Also not sure what state the stack is in at that point ! It all seems to work and I've exercised my application code to use the worst case stack push / pops, and nothing failed (yet)

Everything works so seems OK. I would just like to understand it.
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