Hello Everybody
I’m working with a licensed CodeWarrior ver. 5.9 and Processor expert and my MCU is MC9S12E128QFP80
I have a problem with the IntFlash bean in processor expert
I added the bean to my program and when I try to compile it I'm getting each time this error from compiler.
{{{
+IFsh1
+ERROR: Compiler option -CpPPAGE=0x30 (address of PPAGE register) or -CpPPAGE=RUNTIME must be set to compile the generated code correctly
(current target settings, Compiler for HC12, Options, Code Generation tab, PPAGE register is used for paging). After compiler option change,
run Code design to apply the change in Processor Expert. For details, see Help of the bean.
}}}
I m trying just use this bean in a simple programming such as
IFsh1_SetByteFlash(0x7000,28);
IFsh1_GetByteFlash(0x7000,&data) ;
I was wondering if anybody can help me
Thank you
已解决! 转到解答。
Hello
In order to add option -CpPPAGE=RUNTIME to your project:
- Open Target Settings dialog
- Switch to Panel "Compiler for HC12"
- in the command line field add -CpPPAGE=RUNTIME.
- Close OK to close the dialog and re-build your application.
"
CrasyCat
Finally I have succeeded to solve the problem but I have still had another problem:
I use the following routine for writing data in my program with IntFlash bean:
Fsh1_SetByteFlash(0x7000,28);
IFsh1_GetByteFlash(0x7000,&data) ;
Problem is when I check the "data" there is nothing inside it.
So I believe there is a protection for flash memory.
Please let me know how I can solve this?
Thanks