constant segment size

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

constant segment size

1,735 Views
cris2pher
Contributor I
I'm currently using an HCS08AW32 microprocessor.
In the code are so many constants defined.
When compiling/linking the project, there was no problem.
When it is loaded to the lauterbach debugger, there was a problem.
There's a memory error.
The cause of this is the high number of constants.
If the constants segment used is only up to 2KB, there is no problem, I can load the software to the debbuger.
Is the size of const for this type of microcontroller 2KB only?
Is there a way for me to increase the size of consts segment?
Also, is there an option on the lauterbach debugger to increase the const range?
Thank you.
Labels (1)
0 Kudos
Reply
1 Reply

659 Views
CompilerGuru
NXP Employee
NXP Employee
The HC08/S08 Architecture are Von Neumann Architectures, it does not matter if you place code or constant's into the 32k Flash of your AW32.
Without exacly knowing what error message you get from which tool, its hard to help more,
I could imagine for example that you defined some memory in the linker memory configuration file which does not exist on a AW32, then I would expect lauterbach to complain while loading.

Daniel
0 Kudos
Reply