I have beening reading the manual and trying to figure out how the #org works. I assumed from the manual that the #org would place code in memory at specific addresses like:
#org 0x0F800, 0x0FFFF
UBYTE func1()
{
...
}
UBYTE func2()
{
......
}
#org default
UBYTE func3()
{
....
}
From what I can figure out func1() and func2() should be in the 0x0F800-0x0FFFF memory range, however func2() automagically goes back to the default memory range. So how do I get func2() to follow func1() with out know the excate size of func1() and using another #org?
Trampas
Trampas
Joined: 04 Sep 2004 Posts: 89 Location: NC
Posted: Mon Oct 25, 2004 7:26 am
I found that CCS requires the #org 0x0F800 on func2()
The #org really sucks as it's implementation depends on the compiler order of files. That is I have my code in several .c files, the #org is pain as the "link" order of the .c files is critical to operation.
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