![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
olo76
Joined: 26 Aug 2010 Posts: 1
|
#reserved 0x7F |
Posted: Thu Aug 26, 2010 1:26 am |
|
|
Hello,
My bootloader (pic16f887) use ram address 0x7F (for save PCLATH register), and if the interrupt in ccs compiler 4.099 use address 0x7F (for save W register). Directive #reserved 0x7F not working, why?
Regards, Olek |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19365
|
|
Posted: Thu Aug 26, 2010 2:57 am |
|
|
Various comments:
1) Why worry?. After the main code has loaded, the bootloader is no longer involved in running, so why does it matter?.
2) The 'reason', is that CCS has already reserved this byte, as 'not used' by C. It is flagged as non available, specifically for the interrupt handler, so 'reserving' it has no effect. Unlike the scratch area (which is similarly reserved), which can be relocated by the device editor, this byte seems to be 'fixed'.
3) Given '2', I'd personally play it simple, and if the main code overwriting the byte does matter, alter to bootloader to use 0x70.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
|
|
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
|