constant segment size

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

constant segment size

1,738 次查看
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.
标签 (1)
0 项奖励
回复
1 回复

662 次查看
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 项奖励
回复